Home
last modified time | relevance | path

Searched refs:adc (Results 1 – 7 of 7) sorted by relevance

/sound/mips/
Dhal2.c84 struct hal2_codec adc; member
307 if (hal2->adc.pbus.pbus->pbdma_ctrl & HPC3_PDMACTRL_INT) { in hal2_interrupt()
308 snd_pcm_period_elapsed(hal2->adc.substream); in hal2_interrupt()
346 unsigned int master = hal2->adc.master; in hal2_set_adc_rate()
347 int inc = hal2->adc.inc; in hal2_set_adc_rate()
348 int mod = hal2->adc.mod; in hal2_set_adc_rate()
391 struct hal2_pbus *pbus = &hal2->adc.pbus; in hal2_setup_adc()
393 sample_size = 2 * hal2->adc.voices; in hal2_setup_adc()
410 | (hal2->adc.voices << H2I_C1_DATAT_SHIFT)); in hal2_setup_adc()
425 struct hal2_pbus *pbus = &hal2->adc.pbus; in hal2_start_adc()
[all …]
/sound/soc/codecs/
Dtlv320aic23.c229 static unsigned get_score(int adc, int adc_l, int adc_h, int need_adc, in get_score() argument
232 if ((adc >= adc_l) && (adc <= adc_h) && in get_score()
234 int diff_adc = need_adc - adc; in get_score()
264 int adc; in find_rate() local
269 adc = base * sr_adc_mult_table[j]; in find_rate()
271 score = get_score(adc, adc_l, adc_h, need_adc, in find_rate()
279 score = get_score((adc >> 1), adc_l, adc_h, need_adc, in find_rate()
300 int adc = (val * sr_adc_mult_table[sr]) / SR_MULT; in get_current_sample_rates() local
303 adc >>= 1; in get_current_sample_rates()
306 *sample_rate_adc = adc; in get_current_sample_rates()
[all …]
Dwm8994.c1107 int adc; in aif1clk_ev() local
1132 adc = WM8994_AIF1ADC1R_ENA | WM8994_AIF1ADC2R_ENA; in aif1clk_ev()
1135 adc = WM8994_AIF1ADC1L_ENA | WM8994_AIF1ADC2L_ENA; in aif1clk_ev()
1137 adc = WM8994_AIF1ADC1R_ENA | WM8994_AIF1ADC2R_ENA | in aif1clk_ev()
1152 mask, adc); in aif1clk_ev()
1209 int adc; in aif2clk_ev() local
1221 adc = WM8994_AIF2ADCR_ENA; in aif2clk_ev()
1224 adc = WM8994_AIF2ADCL_ENA; in aif2clk_ev()
1226 adc = WM8994_AIF2ADCL_ENA | WM8994_AIF2ADCR_ENA; in aif2clk_ev()
1241 WM8994_AIF2ADCR_ENA, adc); in aif2clk_ev()
/sound/soc/samsung/
Daries_wm8994.c33 struct iio_channel *adc; member
97 int adc; in headset_det_irq_thread() local
117 ret = iio_read_channel_processed(priv->adc, &adc); in headset_det_irq_thread()
125 snd_soc_jack_get_type(&aries_headset, adc), in headset_det_irq_thread()
593 priv->adc = devm_iio_channel_get(dev, "headset-detect"); in aries_audio_probe()
594 if (IS_ERR(priv->adc)) in aries_audio_probe()
595 return dev_err_probe(dev, PTR_ERR(priv->adc), in aries_audio_probe()
598 if (priv->adc->channel->type != IIO_VOLTAGE) in aries_audio_probe()
/sound/pci/hda/
Dpatch_cirrus.c759 static void cs4208_fix_amp_caps(struct hda_codec *codec, hda_nid_t adc) in cs4208_fix_amp_caps() argument
763 caps = query_amp_caps(codec, adc, HDA_INPUT); in cs4208_fix_amp_caps()
766 snd_hda_override_amp_caps(codec, adc, HDA_INPUT, caps); in cs4208_fix_amp_caps()
Dpatch_ca0132.c7389 static void init_input(struct hda_codec *codec, hda_nid_t pin, hda_nid_t adc) in init_input() argument
7398 if (adc && (get_wcaps(codec, adc) & AC_WCAP_IN_AMP)) { in init_input()
7399 snd_hda_codec_write(codec, adc, 0, AC_VERB_SET_AMP_GAIN_MUTE, in init_input()
7403 snd_hda_codec_amp_stereo(codec, adc, HDA_INPUT, 0, in init_input()
7405 snd_hda_codec_amp_stereo(codec, adc, HDA_INPUT, 0, in init_input()
Dhda_generic.c3262 hda_nid_t adc = spec->adc_nids[c]; in parse_capture_source() local
3264 if (!is_reachable_path(codec, pin, adc)) in parse_capture_source()
3266 path = snd_hda_add_new_path(codec, pin, adc, anchor); in parse_capture_source()