Home
last modified time | relevance | path

Searched refs:adc_info (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.10/drivers/iio/adc/
Dpalmas_gpadc.c106 struct palmas_gpadc_info *adc_info; member
296 int x1 = adc->adc_info[adc_chan].x1; in palmas_gpadc_calibrate()
297 int x2 = adc->adc_info[adc_chan].x2; in palmas_gpadc_calibrate()
298 int v1 = adc->adc_info[adc_chan].v1; in palmas_gpadc_calibrate()
299 int v2 = adc->adc_info[adc_chan].v2; in palmas_gpadc_calibrate()
302 adc->adc_info[adc_chan].trim1_reg, &d1); in palmas_gpadc_calibrate()
309 adc->adc_info[adc_chan].trim2_reg, &d2); in palmas_gpadc_calibrate()
321 adc->adc_info[adc_chan].gain_error = k; in palmas_gpadc_calibrate()
322 adc->adc_info[adc_chan].gain = gain; in palmas_gpadc_calibrate()
324 adc->adc_info[adc_chan].offset = (d1 * 1000) - ((k - 1000) * x1); in palmas_gpadc_calibrate()
[all …]
Dstm32-adc.c162 const struct stm32_adc_info *adc_info; member
1667 res = adc->cfg->adc_info->resolutions[0]; in stm32_adc_of_get_resolution()
1669 for (i = 0; i < adc->cfg->adc_info->num_res; i++) in stm32_adc_of_get_resolution()
1670 if (res == adc->cfg->adc_info->resolutions[i]) in stm32_adc_of_get_resolution()
1672 if (i >= adc->cfg->adc_info->num_res) { in stm32_adc_of_get_resolution()
1724 chan->scan_type.realbits = adc->cfg->adc_info->resolutions[adc->res]; in stm32_adc_chan_init_one()
1742 const struct stm32_adc_info *adc_info = adc->cfg->adc_info; in stm32_adc_chan_of_init() local
1751 if (ret > adc_info->max_channels) { in stm32_adc_chan_of_init()
1760 if (ret > adc_info->max_channels) { in stm32_adc_chan_of_init()
1792 if (val >= adc_info->max_channels) { in stm32_adc_chan_of_init()
[all …]
/Linux-v5.10/sound/i2c/other/
Dak4xxx-adda.c540 input_names = ak->adc_info[mixer_ch].input_names; in ak4xxx_capture_num_inputs()
558 ak->adc_info[mixer_ch].input_names); in ak4xxx_capture_source_info()
724 if (! ak->adc_info || ! ak->adc_info[mixer_ch].name) { in build_adc_controls()
729 knew.name = ak->adc_info[mixer_ch].name; in build_adc_controls()
730 num_stereo = ak->adc_info[mixer_ch].num_channels; in build_adc_controls()
759 if (! ak->adc_info || in build_adc_controls()
760 ! ak->adc_info[mixer_ch].switch_name) { in build_adc_controls()
764 knew.name = ak->adc_info[mixer_ch].switch_name; in build_adc_controls()
778 if (!ak->adc_info || in build_adc_controls()
779 !ak->adc_info[mixer_ch].selector_name) { in build_adc_controls()
[all …]
/Linux-v5.10/include/sound/
Dak4xxx-adda.h62 const struct snd_akm4xxx_adc_channel *adc_info; member
/Linux-v5.10/Documentation/driver-api/iio/
Dhw-consumer.rst26 static const struct iio_info adc_info = {
/Linux-v5.10/sound/pci/ctxfi/
Dcthw20k2.c2122 struct adc_conf adc_info = {0}; in hw_card_init() local
2182 adc_info.msr = info->msr; in hw_card_init()
2183 adc_info.input = ADC_LINEIN; in hw_card_init()
2184 adc_info.mic20db = 0; in hw_card_init()
2185 err = hw_adc_init(hw, &adc_info); in hw_card_init()
Dcthw20k1.c1994 struct adc_conf adc_info = {0}; in hw_card_init() local
2060 adc_info.msr = info->msr; in hw_card_init()
2061 adc_info.input = ADC_LINEIN; in hw_card_init()
2062 adc_info.mic20db = 0; in hw_card_init()
2063 err = hw_adc_init(hw, &adc_info); in hw_card_init()
/Linux-v5.10/sound/pci/ice1712/
Drevo.c291 .adc_info = revo51_adc,
Dquartet.c386 .adc_info = qtet_adc,