Home
last modified time | relevance | path

Searched refs:sel (Results 1 – 15 of 15) 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()
1429 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local
1439 sel = cdata->eq_sel; in max98088_setup_eq1()
1444 if (strcmp(pdata->eq_cfg[i].name, max98088->eq_texts[sel]) == 0 && in max98088_setup_eq1()
1459 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.c397 unsigned int sel; in max98090_put_enab_tlv() local
419 sel = sel_unchecked; in max98090_put_enab_tlv()
421 *select = sel; in max98090_put_enab_tlv()
425 sel = sel + 1; in max98090_put_enab_tlv()
428 sel = val; in max98090_put_enab_tlv()
433 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()
Dwcd934x.c2447 int sel; in wcd934x_compander_set() local
2453 sel = value ? WCD934X_HPH_GAIN_SRC_SEL_COMPANDER : in wcd934x_compander_set()
2462 sel); in wcd934x_compander_set()
2467 sel); in wcd934x_compander_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.c366 unsigned long sel; in au1xpsc_ac97_drvprobe() local
395 sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; in au1xpsc_ac97_drvprobe()
400 __raw_writel(PSC_SEL_PS_AC97MODE | sel, PSC_SEL(wd)); in au1xpsc_ac97_drvprobe()
/sound/pci/hda/
Dpatch_ca0132.c5687 int sel = ucontrol->value.enumerated.item[0]; in ca0132_alt_mic_boost_put() local
5690 if (sel >= items) in ca0132_alt_mic_boost_put()
5694 sel); in ca0132_alt_mic_boost_put()
5696 spec->mic_boost_enum_val = sel; in ca0132_alt_mic_boost_put()
5741 int sel = ucontrol->value.enumerated.item[0]; in ae5_headphone_gain_put() local
5744 if (sel >= items) in ae5_headphone_gain_put()
5748 sel); in ae5_headphone_gain_put()
5750 spec->ae5_headphone_gain_val = sel; in ae5_headphone_gain_put()
5794 int sel = ucontrol->value.enumerated.item[0]; in ae5_sound_filter_put() local
5797 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()