Searched refs:adc_info (Results 1 – 9 of 9) sorted by relevance
112 struct palmas_gpadc_info *adc_info; member303 int x1 = adc->adc_info[adc_chan].x1; in palmas_gpadc_calibrate()304 int x2 = adc->adc_info[adc_chan].x2; in palmas_gpadc_calibrate()305 int v1 = adc->adc_info[adc_chan].v1; in palmas_gpadc_calibrate()306 int v2 = adc->adc_info[adc_chan].v2; in palmas_gpadc_calibrate()309 adc->adc_info[adc_chan].trim1_reg, &d1); in palmas_gpadc_calibrate()316 adc->adc_info[adc_chan].trim2_reg, &d2); in palmas_gpadc_calibrate()328 adc->adc_info[adc_chan].gain_error = k; in palmas_gpadc_calibrate()329 adc->adc_info[adc_chan].gain = gain; in palmas_gpadc_calibrate()331 adc->adc_info[adc_chan].offset = (d1 * 1000) - ((k - 1000) * x1); in palmas_gpadc_calibrate()[all …]
205 const struct stm32_adc_info *adc_info; member1785 res = adc->cfg->adc_info->resolutions[0]; in stm32_adc_fw_get_resolution()1787 for (i = 0; i < adc->cfg->adc_info->num_res; i++) in stm32_adc_fw_get_resolution()1788 if (res == adc->cfg->adc_info->resolutions[i]) in stm32_adc_fw_get_resolution()1790 if (i >= adc->cfg->adc_info->num_res) { in stm32_adc_fw_get_resolution()1852 chan->scan_type.realbits = adc->cfg->adc_info->resolutions[adc->res]; in stm32_adc_chan_init_one()1869 const struct stm32_adc_info *adc_info = adc->cfg->adc_info; in stm32_adc_get_legacy_chan_count() local1873 if (ret > adc_info->max_channels) { in stm32_adc_get_legacy_chan_count()1889 if (ret > adc_info->max_channels) { in stm32_adc_get_legacy_chan_count()1912 const struct stm32_adc_info *adc_info = adc->cfg->adc_info; in stm32_adc_legacy_chan_init() local[all …]
540 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 …]
62 const struct snd_akm4xxx_adc_channel *adc_info; member
26 static const struct iio_info adc_info = {
2118 struct adc_conf adc_info = {0}; in hw_card_init() local2178 adc_info.msr = info->msr; in hw_card_init()2179 adc_info.input = ADC_LINEIN; in hw_card_init()2180 adc_info.mic20db = 0; in hw_card_init()2181 err = hw_adc_init(hw, &adc_info); in hw_card_init()
1990 struct adc_conf adc_info = {0}; in hw_card_init() local2056 adc_info.msr = info->msr; in hw_card_init()2057 adc_info.input = ADC_LINEIN; in hw_card_init()2058 adc_info.mic20db = 0; in hw_card_init()2059 err = hw_adc_init(hw, &adc_info); in hw_card_init()
291 .adc_info = revo51_adc,
386 .adc_info = qtet_adc,