/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 | 759 struct snd_soc_tplg_mixer_control *mc; in soc_tplg_dmixer_create() local 774 mc = (struct snd_soc_tplg_mixer_control *)tplg->pos; in soc_tplg_dmixer_create() 777 if (strnlen(mc->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_dmixer_create() 785 mc->priv.size); in soc_tplg_dmixer_create() 789 mc->hdr.name, mc->hdr.access); in soc_tplg_dmixer_create() 792 kc.name = mc->hdr.name; in soc_tplg_dmixer_create() 795 kc.access = mc->hdr.access; in soc_tplg_dmixer_create() 798 sm->reg = tplc_chan_get_reg(tplg, mc->channel, in soc_tplg_dmixer_create() 800 sm->rreg = tplc_chan_get_reg(tplg, mc->channel, in soc_tplg_dmixer_create() 802 sm->shift = tplc_chan_get_shift(tplg, mc->channel, in soc_tplg_dmixer_create() [all …]
|
D | soc-dapm.c | 316 struct soc_mixer_control *mc; in dapm_kcontrol_data_alloc() local 331 mc = (struct soc_mixer_control *)kcontrol->private_value; in dapm_kcontrol_data_alloc() 333 if (mc->autodisable) { in dapm_kcontrol_data_alloc() 344 template.reg = mc->reg; in dapm_kcontrol_data_alloc() 345 template.mask = (1 << fls(mc->max)) - 1; in dapm_kcontrol_data_alloc() 346 template.shift = mc->shift; in dapm_kcontrol_data_alloc() 347 if (mc->invert) in dapm_kcontrol_data_alloc() 348 template.off_val = mc->max; in dapm_kcontrol_data_alloc() 752 struct soc_mixer_control *mc = (struct soc_mixer_control *) in dapm_set_mixer_path_status() local 754 unsigned int reg = mc->reg; in dapm_set_mixer_path_status() [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/codecs/ |
D | tpa6130a2.c | 194 struct soc_mixer_control *mc = in tpa6130a2_get_volsw() local 197 unsigned int reg = mc->reg; in tpa6130a2_get_volsw() 198 unsigned int shift = mc->shift; in tpa6130a2_get_volsw() 199 int max = mc->max; in tpa6130a2_get_volsw() 201 unsigned int invert = mc->invert; in tpa6130a2_get_volsw() 223 struct soc_mixer_control *mc = in tpa6130a2_put_volsw() local 226 unsigned int reg = mc->reg; in tpa6130a2_put_volsw() 227 unsigned int shift = mc->shift; in tpa6130a2_put_volsw() 228 int max = mc->max; in tpa6130a2_put_volsw() 230 unsigned int invert = mc->invert; in tpa6130a2_put_volsw()
|
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 | 187 struct soc_mixer_control *mc = in wm9712_hp_mixer_put() local 193 mixer = mc->shift >> 8; in wm9712_hp_mixer_put() 194 shift = mc->shift & 0xff; in wm9712_hp_mixer_put() 230 struct soc_mixer_control *mc = in wm9712_hp_mixer_get() local 234 mixer = mc->shift >> 8; in wm9712_hp_mixer_get() 235 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 | wm5110.c | 380 struct soc_mixer_control *mc = in wm5110_put_dre() local 383 unsigned int mask = (0x1 << mc->shift) | (0x1 << mc->rshift); in wm5110_put_dre() 384 unsigned int lnew = (!!ucontrol->value.integer.value[0]) << mc->shift; in wm5110_put_dre() 385 unsigned int rnew = (!!ucontrol->value.integer.value[1]) << mc->rshift; in wm5110_put_dre() 403 lold = dre & (1 << mc->shift); in wm5110_put_dre() 404 rold = dre & (1 << mc->rshift); in wm5110_put_dre() 406 lena = ena & (1 << mc->rshift); in wm5110_put_dre() 407 rena = ena & (1 << mc->shift); in wm5110_put_dre() 424 wm5110_clear_pga_volume(arizona, mc->shift); in wm5110_put_dre() 427 wm5110_clear_pga_volume(arizona, mc->rshift); in wm5110_put_dre()
|
D | wm9713.c | 261 struct soc_mixer_control *mc = in wm9713_hp_mixer_put() local 267 mixer = mc->shift >> 8; in wm9713_hp_mixer_put() 268 shift = mc->shift & 0xff; in wm9713_hp_mixer_put() 304 struct soc_mixer_control *mc = in wm9713_hp_mixer_get() local 308 mixer = mc->shift >> 8; in wm9713_hp_mixer_get() 309 shift = mc->shift & 0xff; in wm9713_hp_mixer_get()
|
D | wm8580.c | 253 struct soc_mixer_control *mc = in wm8580_out_vu() local 257 unsigned int reg = mc->reg; in wm8580_out_vu() 258 unsigned int reg2 = mc->rreg; in wm8580_out_vu()
|
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 | 165 struct soc_mixer_control *mc = in snd_soc_dapm_put_volsw_aic3x() local 167 unsigned int reg = mc->reg; in snd_soc_dapm_put_volsw_aic3x() 168 unsigned int shift = mc->shift; in snd_soc_dapm_put_volsw_aic3x() 169 int max = mc->max; in snd_soc_dapm_put_volsw_aic3x() 171 unsigned int invert = mc->invert; in snd_soc_dapm_put_volsw_aic3x()
|
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 | 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()
|
/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/omap/ |
D | omap-mcbsp.c | 612 struct soc_mixer_control *mc = in omap_mcbsp_st_info_volsw() local 614 int max = mc->max; in omap_mcbsp_st_info_volsw() 615 int min = mc->min; in omap_mcbsp_st_info_volsw() 631 struct soc_mixer_control *mc = \ 633 int max = mc->max; \ 634 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()
|