Home
last modified time | relevance | path

Searched refs:rshift (Results 1 – 8 of 8) sorted by relevance

/sound/soc/
Dsoc-ops.c251 unsigned int rshift = mc->rshift; in snd_soc_get_volsw() local
274 ret = snd_soc_read_signed(component, reg, mask, rshift, in snd_soc_get_volsw()
311 unsigned int rshift = mc->rshift; in snd_soc_put_volsw() local
349 val_mask |= mask << rshift; in snd_soc_put_volsw()
350 val |= val2 << rshift; in snd_soc_put_volsw()
393 unsigned int rshift = mc->rshift; in snd_soc_get_volsw_sx() local
411 val = ((val >> rshift) - min) & mask; in snd_soc_get_volsw_sx()
438 unsigned int rshift = mc->rshift; in snd_soc_put_volsw_sx() local
468 val_mask = mask << rshift; in snd_soc_put_volsw_sx()
470 val2 = val2 << rshift; in snd_soc_put_volsw_sx()
Dsoc-dapm.c811 val = (val >> mc->rshift) & mask; in dapm_set_mixer_path_status()
3320 rval = (reg_val >> mc->rshift) & mask; in snd_soc_dapm_get_volsw()
3400 rval = rval << mc->rshift; in snd_soc_dapm_put_volsw()
3406 mask << mc->rshift, in snd_soc_dapm_put_volsw()
3415 update.mask2 = mask << mc->rshift; in snd_soc_dapm_put_volsw()
Dsoc-topology.c876 sm->rshift = tplc_chan_get_shift(tplg, mc->channel, in soc_tplg_dmixer_create()
1366 sm->rshift = tplc_chan_get_shift(tplg, mc->channel, in soc_tplg_dapm_widget_dmixer_create()
/sound/pci/ac97/
Dac97_codec.c525 int rshift = (kcontrol->private_value >> 12) & 0x0f; in snd_ac97_info_volsw() local
528 uinfo->count = shift == rshift ? 1 : 2; in snd_ac97_info_volsw()
540 int rshift = (kcontrol->private_value >> 12) & 0x0f; in snd_ac97_get_volsw() local
547 if (shift != rshift) in snd_ac97_get_volsw()
548 ucontrol->value.integer.value[1] = (snd_ac97_read_cache(ac97, reg) >> rshift) & mask; in snd_ac97_get_volsw()
551 if (shift != rshift) in snd_ac97_get_volsw()
564 int rshift = (kcontrol->private_value >> 12) & 0x0f; in snd_ac97_put_volsw() local
576 if (shift != rshift) { in snd_ac97_put_volsw()
580 val_mask |= mask << rshift; in snd_ac97_put_volsw()
581 val |= val2 << rshift; in snd_ac97_put_volsw()
[all …]
/sound/soc/codecs/
Dtwl4030.c834 unsigned int rshift = mc->rshift; in snd_soc_get_volsw_twl4030() local
844 if (shift != rshift) { in snd_soc_get_volsw_twl4030()
846 (twl4030_read(component, reg) >> rshift) & mask; in snd_soc_get_volsw_twl4030()
863 unsigned int rshift = mc->rshift; in snd_soc_put_volsw_twl4030() local
874 if (shift != rshift) { in snd_soc_put_volsw_twl4030()
876 val_mask |= mask << rshift; in snd_soc_put_volsw_twl4030()
879 val |= val2 << rshift; in snd_soc_put_volsw_twl4030()
Dda7218.c454 unsigned int rshift = mc->rshift; in da7218_alc_sw_put() local
455 unsigned int mask = (mc->max << lshift) | (mc->max << rshift); in da7218_alc_sw_put()
463 da7218->alc_en |= (lvalue << lshift) | (rvalue << rshift); in da7218_alc_sw_put()
523 unsigned int rshift = mixer_ctrl->rshift; in da7218_mic_lvl_det_sw_put() local
525 (mixer_ctrl->max << rshift); in da7218_mic_lvl_det_sw_put()
527 da7218->mic_lvl_det_en |= (lvalue << lshift) | (rvalue << rshift); in da7218_mic_lvl_det_sw_put()
548 unsigned int rshift = mixer_ctrl->rshift; in da7218_mic_lvl_det_sw_get() local
550 unsigned int rmask = (mixer_ctrl->max << rshift); in da7218_mic_lvl_det_sw_get()
555 (da7218->mic_lvl_det_en & rmask) >> rshift; in da7218_mic_lvl_det_sw_get()
Dwm5110.c411 unsigned int mask = (0x1 << mc->shift) | (0x1 << mc->rshift); in wm5110_put_dre()
413 unsigned int rnew = (!!ucontrol->value.integer.value[1]) << mc->rshift; in wm5110_put_dre()
433 rold = dre & (1 << mc->rshift); in wm5110_put_dre()
435 lena = ena & (1 << mc->rshift); in wm5110_put_dre()
456 wm5110_clear_pga_volume(arizona, mc->rshift); in wm5110_put_dre()
/sound/pci/
Dcmipci.c1995 #define COMPOSE_SB_REG(lreg,rreg,lshift,rshift,mask,invert,stereo) \ argument
1996 …((lreg) | ((rreg) << 8) | (lshift << 16) | (rshift << 19) | (mask << 24) | (invert << 22) | (stere…
2007 …ne CMIPCI_SB_SW_STEREO(xname,lshift,rshift) CMIPCI_DOUBLE(xname, SB_DSP4_OUTPUT_SW, SB_DSP4_OUTPUT… argument
2164 #define CMIPCI_MIXER_SW_STEREO(xname, reg, lshift, rshift, invert) \ argument
2168 .private_value = COMPOSE_SB_REG(reg, reg, lshift, rshift, 1, invert, 1), \
2178 #define CMIPCI_MIXER_VOL_STEREO(xname, reg, lshift, rshift, mask) \ argument
2182 .private_value = COMPOSE_SB_REG(reg, reg, lshift, rshift, mask, 0, 1), \