Home
last modified time | relevance | path

Searched refs:sel (Results 1 – 14 of 14) sorted by relevance

/sound/soc/codecs/
Dmax98088.c385 unsigned int sel = ucontrol->value.integer.value[0]; in max98088_mic1pre_set() local
387 max98088->mic1pre = sel; in max98088_mic1pre_set()
389 (1+sel)<<M98088_MICPRE_SHIFT); in max98088_mic1pre_set()
409 unsigned int sel = ucontrol->value.integer.value[0]; in max98088_mic2pre_set() local
411 max98088->mic2pre = sel; in max98088_mic2pre_set()
413 (1+sel)<<M98088_MICPRE_SHIFT); in max98088_mic2pre_set()
1425 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local
1435 sel = cdata->eq_sel; in max98088_setup_eq1()
1440 if (strcmp(pdata->eq_cfg[i].name, max98088->eq_texts[sel]) == 0 && in max98088_setup_eq1()
1455 coef_set = &pdata->eq_cfg[sel]; in max98088_setup_eq1()
[all …]
Dmax98095.c355 unsigned int sel = ucontrol->value.integer.value[0]; in max98095_mic1pre_set() local
357 max98095->mic1pre = sel; in max98095_mic1pre_set()
359 (1+sel)<<M98095_MICPRE_SHIFT); in max98095_mic1pre_set()
379 unsigned int sel = ucontrol->value.integer.value[0]; in max98095_mic2pre_set() local
381 max98095->mic2pre = sel; in max98095_mic2pre_set()
383 (1+sel)<<M98095_MICPRE_SHIFT); in max98095_mic2pre_set()
1499 unsigned int sel = ucontrol->value.enumerated.item[0]; in max98095_put_eq_enum() local
1510 if (sel >= pdata->eq_cfgcnt) in max98095_put_eq_enum()
1514 cdata->eq_sel = sel; in max98095_put_eq_enum()
1521 if (strcmp(pdata->eq_cfg[i].name, max98095->eq_texts[sel]) == 0 && in max98095_put_eq_enum()
[all …]
Dwm8580.c755 int ret, sel, sel_mask, sel_shift; in wm8580_set_sysclk() local
777 sel = 0 << sel_shift; in wm8580_set_sysclk()
780 sel = 1 << sel_shift; in wm8580_set_sysclk()
783 sel = 2 << sel_shift; in wm8580_set_sysclk()
786 sel = 3 << sel_shift; in wm8580_set_sysclk()
796 ret = snd_soc_component_update_bits(component, WM8580_CLKSEL, sel_mask, sel); in wm8580_set_sysclk()
Dtas5720.c524 unsigned int sel = ucontrol->value.integer.value[0]; in tas5722_volume_set() local
526 snd_soc_component_write(component, TAS5720_VOLUME_CTRL_REG, sel >> 1); in tas5722_volume_set()
528 TAS5722_VOL_CONTROL_LSB, sel); in tas5722_volume_set()
Dmax98090.c396 unsigned int sel = ucontrol->value.integer.value[0]; in max98090_put_enab_tlv() local
416 if (sel < 0 || sel > mc->max) in max98090_put_enab_tlv()
419 *select = sel; in max98090_put_enab_tlv()
423 sel = sel + 1; in max98090_put_enab_tlv()
426 sel = val; in max98090_put_enab_tlv()
431 sel << mc->shift); in max98090_put_enab_tlv()
Dwcd9335.c1477 unsigned int val, reg, sel; in wcd9335_put_dec_enum() local
1514 sel = val ? WCD9335_CDC_TX_ADC_AMIC_SEL : WCD9335_CDC_TX_ADC_DMIC_SEL; in wcd9335_put_dec_enum()
1517 sel); in wcd9335_put_dec_enum()
2192 int sel; in wcd9335_set_compander() local
2195 sel = value ? WCD9335_HPH_GAIN_SRC_SEL_COMPANDER : in wcd9335_set_compander()
2203 WCD9335_HPH_GAIN_SRC_SEL_MASK, sel); in wcd9335_set_compander()
2207 WCD9335_HPH_GAIN_SRC_SEL_MASK, sel); in wcd9335_set_compander()
2211 WCD9335_HPH_GAIN_SRC_SEL_MASK, sel); in wcd9335_set_compander()
2215 WCD9335_HPH_GAIN_SRC_SEL_MASK, sel); in wcd9335_set_compander()
Dda732x.c334 unsigned int sel = ucontrol->value.enumerated.item[0]; in da732x_hpf_set() local
337 switch (sel) { in da732x_hpf_set()
/sound/soc/sh/rcar/
Dadg.c114 int idx, sel, div, step; in __rsnd_adg_get_timesel_ratio() local
128 for (sel = 0; sel < ARRAY_SIZE(sel_rate); sel++) { in __rsnd_adg_get_timesel_ratio()
132 if (!sel_rate[sel]) in __rsnd_adg_get_timesel_ratio()
136 diff = abs(target_rate - sel_rate[sel] / div); in __rsnd_adg_get_timesel_ratio()
138 val = (sel << 8) | idx; in __rsnd_adg_get_timesel_ratio()
140 en = 1 << (sel + 1); /* fixme */ in __rsnd_adg_get_timesel_ratio()
/sound/pci/ice1712/
Dmaya44.c355 int sel; in maya_rec_src_get() local
358 sel = 1; in maya_rec_src_get()
360 sel = 0; in maya_rec_src_get()
361 ucontrol->value.enumerated.item[0] = sel; in maya_rec_src_get()
369 int sel = ucontrol->value.enumerated.item[0]; in maya_rec_src_put() local
374 sel ? (1 << GPIO_MIC_RELAY) : 0); in maya_rec_src_put()
375 wm8776_select_input(chip, 0, sel ? MAYA_MIC_IN : MAYA_LINE_IN); in maya_rec_src_put()
Dse.c246 unsigned int sel) in se200pci_WM8776_set_input_selector() argument
252 if (sel > 4) in se200pci_WM8776_set_input_selector()
253 sel = 4; in se200pci_WM8776_set_input_selector()
254 se200pci_WM8776_write(ice, 0x15, vals[sel]); in se200pci_WM8776_set_input_selector()
/sound/soc/au1x/
Dpsc-i2s.c295 unsigned long sel; in au1xpsc_i2s_drvprobe() local
320 sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; in au1xpsc_i2s_drvprobe()
323 __raw_writel(PSC_SEL_PS_I2SMODE | sel, PSC_SEL(wd)); in au1xpsc_i2s_drvprobe()
Dpsc-ac97.c367 unsigned long sel; in au1xpsc_ac97_drvprobe() local
396 sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; in au1xpsc_ac97_drvprobe()
401 __raw_writel(PSC_SEL_PS_AC97MODE | sel, PSC_SEL(wd)); in au1xpsc_ac97_drvprobe()
/sound/pci/hda/
Dpatch_ca0132.c5335 int sel = ucontrol->value.enumerated.item[0]; in ca0132_alt_mic_boost_put() local
5338 if (sel >= items) in ca0132_alt_mic_boost_put()
5342 sel); in ca0132_alt_mic_boost_put()
5344 spec->mic_boost_enum_val = sel; in ca0132_alt_mic_boost_put()
5389 int sel = ucontrol->value.enumerated.item[0]; in ae5_headphone_gain_put() local
5392 if (sel >= items) in ae5_headphone_gain_put()
5396 sel); in ae5_headphone_gain_put()
5398 spec->ae5_headphone_gain_val = sel; in ae5_headphone_gain_put()
5442 int sel = ucontrol->value.enumerated.item[0]; in ae5_sound_filter_put() local
5445 if (sel >= items) in ae5_sound_filter_put()
[all …]
/sound/soc/bcm/
Dcygnus-ssp.c718 int sel; in cygnus_ssp_set_sysclk() local
725 sel = pll_configure_mclk(cygaud, freq, aio); in cygnus_ssp_set_sysclk()
726 if (sel < 0) { in cygnus_ssp_set_sysclk()
734 dev_dbg(aio->cygaud->dev, "%s Setting MCLKSEL to %d\n", __func__, sel); in cygnus_ssp_set_sysclk()
737 value |= (sel << I2S_OUT_PLLCLKSEL_SHIFT); in cygnus_ssp_set_sysclk()