/sound/soc/ |
D | soc-ops.c | 189 struct soc_mixer_control *mc = in snd_soc_info_volsw() local 193 if (!mc->platform_max) in snd_soc_info_volsw() 194 mc->platform_max = mc->max; in snd_soc_info_volsw() 195 platform_max = mc->platform_max; in snd_soc_info_volsw() 202 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw() 204 uinfo->value.integer.max = platform_max - mc->min; in snd_soc_info_volsw() 224 struct soc_mixer_control *mc = in snd_soc_info_volsw_sx() local 231 uinfo->value.integer.max += mc->min; in snd_soc_info_volsw_sx() 251 struct soc_mixer_control *mc = in snd_soc_get_volsw() local 253 unsigned int reg = mc->reg; in snd_soc_get_volsw() [all …]
|
D | soc-topology.c | 838 struct snd_soc_tplg_mixer_control *mc; in soc_tplg_dmixer_create() local 853 mc = (struct snd_soc_tplg_mixer_control *)tplg->pos; in soc_tplg_dmixer_create() 856 if (strnlen(mc->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_dmixer_create() 864 mc->priv.size); in soc_tplg_dmixer_create() 868 mc->hdr.name, mc->hdr.access); in soc_tplg_dmixer_create() 871 kc.name = mc->hdr.name; in soc_tplg_dmixer_create() 874 kc.access = mc->hdr.access; in soc_tplg_dmixer_create() 877 sm->reg = tplc_chan_get_reg(tplg, mc->channel, in soc_tplg_dmixer_create() 879 sm->rreg = tplc_chan_get_reg(tplg, mc->channel, in soc_tplg_dmixer_create() 881 sm->shift = tplc_chan_get_shift(tplg, mc->channel, in soc_tplg_dmixer_create() [all …]
|
D | soc-dapm.c | 340 struct soc_mixer_control *mc; in dapm_kcontrol_data_alloc() local 355 mc = (struct soc_mixer_control *)kcontrol->private_value; in dapm_kcontrol_data_alloc() 357 if (mc->autodisable && snd_soc_volsw_is_stereo(mc)) in dapm_kcontrol_data_alloc() 362 if (mc->autodisable) { in dapm_kcontrol_data_alloc() 373 template.reg = mc->reg; in dapm_kcontrol_data_alloc() 374 template.mask = (1 << fls(mc->max)) - 1; in dapm_kcontrol_data_alloc() 375 template.shift = mc->shift; in dapm_kcontrol_data_alloc() 376 if (mc->invert) in dapm_kcontrol_data_alloc() 377 template.off_val = mc->max; in dapm_kcontrol_data_alloc() 768 struct soc_mixer_control *mc = (struct soc_mixer_control *) in dapm_set_mixer_path_status() local [all …]
|
/sound/soc/intel/atom/ |
D | sst-atom-controls.c | 376 struct sst_gain_mixer_control *mc = (void *)kcontrol->private_value; in sst_gain_ctl_info() local 379 uinfo->count = mc->stereo ? 2 : 1; in sst_gain_ctl_info() 380 uinfo->value.integer.min = mc->min; in sst_gain_ctl_info() 381 uinfo->value.integer.max = mc->max; in sst_gain_ctl_info() 436 struct sst_gain_mixer_control *mc = (void *)kcontrol->private_value; in sst_gain_get() local 437 struct sst_gain_value *gv = mc->gain_val; in sst_gain_get() 439 switch (mc->type) { in sst_gain_get() 455 mc->type); in sst_gain_get() 468 struct sst_gain_mixer_control *mc = (void *)kcontrol->private_value; in sst_gain_put() local 469 struct sst_gain_value *gv = mc->gain_val; in sst_gain_put() [all …]
|
D | sst-mfld-platform.h | 168 struct soc_mixer_control mc; member
|
/sound/soc/fsl/ |
D | mx27vis-aic32x4.c | 83 struct soc_mixer_control *mc = in mx27vis_amp_set() local 86 unsigned int reg = mc->reg; in mx27vis_amp_set() 87 int max = mc->max; in mx27vis_amp_set() 110 struct soc_mixer_control *mc = in mx27vis_amp_get() local 112 unsigned int reg = mc->reg; in mx27vis_amp_get()
|
/sound/soc/codecs/ |
D | 88pm860x-codec.c | 273 struct soc_mixer_control *mc = in snd_soc_get_volsw_2r_st() local 276 unsigned int reg = mc->reg; in snd_soc_get_volsw_2r_st() 277 unsigned int reg2 = mc->rreg; in snd_soc_get_volsw_2r_st() 297 struct soc_mixer_control *mc = in snd_soc_put_volsw_2r_st() local 300 unsigned int reg = mc->reg; in snd_soc_put_volsw_2r_st() 301 unsigned int reg2 = mc->rreg; in snd_soc_put_volsw_2r_st() 330 struct soc_mixer_control *mc = in snd_soc_get_volsw_2r_out() local 333 unsigned int reg = mc->reg; in snd_soc_get_volsw_2r_out() 334 unsigned int reg2 = mc->rreg; in snd_soc_get_volsw_2r_out() 335 unsigned int shift = mc->shift; in snd_soc_get_volsw_2r_out() [all …]
|
D | twl4030.c | 844 struct soc_mixer_control *mc = in snd_soc_get_volsw_twl4030() local 847 unsigned int reg = mc->reg; in snd_soc_get_volsw_twl4030() 848 unsigned int shift = mc->shift; in snd_soc_get_volsw_twl4030() 849 unsigned int rshift = mc->rshift; in snd_soc_get_volsw_twl4030() 850 int max = mc->max; in snd_soc_get_volsw_twl4030() 873 struct soc_mixer_control *mc = in snd_soc_put_volsw_twl4030() local 876 unsigned int reg = mc->reg; in snd_soc_put_volsw_twl4030() 877 unsigned int shift = mc->shift; in snd_soc_put_volsw_twl4030() 878 unsigned int rshift = mc->rshift; in snd_soc_put_volsw_twl4030() 879 int max = mc->max; in snd_soc_put_volsw_twl4030() [all …]
|
D | wm9712.c | 222 struct soc_mixer_control *mc = in wm9712_hp_mixer_put() local 228 mixer = mc->shift >> 8; in wm9712_hp_mixer_put() 229 shift = mc->shift & 0xff; in wm9712_hp_mixer_put() 265 struct soc_mixer_control *mc = in wm9712_hp_mixer_get() local 269 mixer = mc->shift >> 8; in wm9712_hp_mixer_get() 270 shift = mc->shift & 0xff; in wm9712_hp_mixer_get()
|
D | max98090.c | 359 struct soc_mixer_control *mc = in max98090_get_enab_tlv() local 361 unsigned int mask = (1 << fls(mc->max)) - 1; in max98090_get_enab_tlv() 362 unsigned int val = snd_soc_read(codec, mc->reg); in max98090_get_enab_tlv() 365 switch (mc->reg) { in max98090_get_enab_tlv() 379 val = (val >> mc->shift) & mask; in max98090_get_enab_tlv() 399 struct soc_mixer_control *mc = in max98090_put_enab_tlv() local 401 unsigned int mask = (1 << fls(mc->max)) - 1; in max98090_put_enab_tlv() 403 unsigned int val = snd_soc_read(codec, mc->reg); in max98090_put_enab_tlv() 406 switch (mc->reg) { in max98090_put_enab_tlv() 420 val = (val >> mc->shift) & mask; in max98090_put_enab_tlv() [all …]
|
D | wm9713.c | 231 struct soc_mixer_control *mc = in wm9713_hp_mixer_put() local 237 mixer = mc->shift >> 8; in wm9713_hp_mixer_put() 238 shift = mc->shift & 0xff; in wm9713_hp_mixer_put() 274 struct soc_mixer_control *mc = in wm9713_hp_mixer_get() local 278 mixer = mc->shift >> 8; in wm9713_hp_mixer_get() 279 shift = mc->shift & 0xff; in wm9713_hp_mixer_get()
|
D | wm5110.c | 401 struct soc_mixer_control *mc = in wm5110_put_dre() local 404 unsigned int mask = (0x1 << mc->shift) | (0x1 << mc->rshift); in wm5110_put_dre() 405 unsigned int lnew = (!!ucontrol->value.integer.value[0]) << mc->shift; in wm5110_put_dre() 406 unsigned int rnew = (!!ucontrol->value.integer.value[1]) << mc->rshift; in wm5110_put_dre() 424 lold = dre & (1 << mc->shift); in wm5110_put_dre() 425 rold = dre & (1 << mc->rshift); in wm5110_put_dre() 427 lena = ena & (1 << mc->rshift); in wm5110_put_dre() 428 rena = ena & (1 << mc->shift); in wm5110_put_dre() 445 wm5110_clear_pga_volume(arizona, mc->shift); in wm5110_put_dre() 448 wm5110_clear_pga_volume(arizona, mc->rshift); in wm5110_put_dre()
|
D | wm8400.c | 95 struct soc_mixer_control *mc = in wm8400_outpga_put_volsw_vu() local 97 int reg = mc->reg; in wm8400_outpga_put_volsw_vu() 328 struct soc_mixer_control *mc = in outmixer_event() local 330 u32 reg_shift = mc->shift; in outmixer_event()
|
D | tlv320aic3x.c | 167 struct soc_mixer_control *mc = in snd_soc_dapm_put_volsw_aic3x() local 169 unsigned int reg = mc->reg; in snd_soc_dapm_put_volsw_aic3x() 170 unsigned int shift = mc->shift; in snd_soc_dapm_put_volsw_aic3x() 171 int max = mc->max; in snd_soc_dapm_put_volsw_aic3x() 173 unsigned int invert = mc->invert; in snd_soc_dapm_put_volsw_aic3x()
|
D | wm8580.c | 263 struct soc_mixer_control *mc = in wm8580_out_vu() local 267 unsigned int reg = mc->reg; in wm8580_out_vu() 268 unsigned int reg2 = mc->rreg; in wm8580_out_vu()
|
D | wm8350.c | 305 struct soc_mixer_control *mc = in wm8350_put_volsw_2r_vu() local 308 unsigned int reg = mc->reg; in wm8350_put_volsw_2r_vu() 349 struct soc_mixer_control *mc = in wm8350_get_volsw_2r() local 351 unsigned int reg = mc->reg; in wm8350_get_volsw_2r()
|
D | wm8990.c | 136 struct soc_mixer_control *mc = in wm899x_outpga_put_volsw_vu() local 138 int reg = mc->reg; in wm899x_outpga_put_volsw_vu()
|
D | da7218.c | 451 struct soc_mixer_control *mc = in da7218_alc_sw_put() local 457 unsigned int lshift = mc->shift; in da7218_alc_sw_put() 458 unsigned int rshift = mc->rshift; in da7218_alc_sw_put() 459 unsigned int mask = (mc->max << lshift) | (mc->max << rshift); in da7218_alc_sw_put()
|
D | wm8994.c | 301 struct soc_mixer_control *mc = in wm8994_put_drc_sw() local 307 if (mc->shift == WM8994_AIF1DAC1_DRC_ENA_SHIFT) in wm8994_put_drc_sw() 313 ret = snd_soc_read(codec, mc->reg); in wm8994_put_drc_sw()
|
D | wm_adsp.c | 2655 struct soc_mixer_control *mc = in wm_adsp2_preloader_put() local 2659 snprintf(preload, ARRAY_SIZE(preload), "DSP%u Preload", mc->shift); in wm_adsp2_preloader_put()
|
/sound/soc/omap/ |
D | omap-mcbsp.c | 655 struct soc_mixer_control *mc = in omap_mcbsp_st_info_volsw() local 657 int max = mc->max; in omap_mcbsp_st_info_volsw() 658 int min = mc->min; in omap_mcbsp_st_info_volsw() 674 struct soc_mixer_control *mc = \ 676 int max = mc->max; \ 677 int min = mc->min; \
|
/sound/soc/intel/haswell/ |
D | sst-haswell-pcm.c | 185 struct soc_mixer_control *mc = in hsw_stream_volume_put() local 194 dai = mod_map[mc->reg].dai_id; in hsw_stream_volume_put() 195 stream = mod_map[mc->reg].stream; in hsw_stream_volume_put() 234 struct soc_mixer_control *mc = in hsw_stream_volume_get() local 243 dai = mod_map[mc->reg].dai_id; in hsw_stream_volume_get() 244 stream = mod_map[mc->reg].stream; in hsw_stream_volume_get()
|
/sound/soc/atmel/ |
D | atmel-pdmic.c | 313 struct soc_mixer_control *mc = in pdmic_put_mic_volsw() local 316 int max = mc->max; in pdmic_put_mic_volsw()
|