Searched refs:lshift (Results 1 – 3 of 3) sorted by relevance
/sound/ppc/ |
D | awacs.c | 150 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_get_volume() local 156 vol[0] = (chip->awacs_reg[reg] >> lshift) & 0xf; in snd_pmac_awacs_get_volume() 173 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_put_volume() local 191 val = oldval & ~(0xf | (0xf << lshift)); in snd_pmac_awacs_put_volume() 192 val |= vol[0] << lshift; in snd_pmac_awacs_put_volume()
|
/sound/pci/ac97/ |
D | ac97_codec.c | 892 #define AD18XX_PCM_BITS(xname, codec, lshift, rshift, mask) \ argument 895 .private_value = (codec) | ((lshift) << 8) | ((rshift) << 12) | ((mask) << 16) } 901 int lshift = (kcontrol->private_value >> 8) & 0x0f; in snd_ac97_ad18xx_pcm_info_bits() local 905 if (lshift != rshift && (ac97->flags & AC97_STEREO_MUTES)) in snd_ac97_ad18xx_pcm_info_bits() 918 int lshift = (kcontrol->private_value >> 8) & 0x0f; in snd_ac97_ad18xx_pcm_get_bits() local 922 ucontrol->value.integer.value[0] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> lshift) & mask); in snd_ac97_ad18xx_pcm_get_bits() 923 if (lshift != rshift && (ac97->flags & AC97_STEREO_MUTES)) in snd_ac97_ad18xx_pcm_get_bits() 932 int lshift = (kcontrol->private_value >> 8) & 0x0f; in snd_ac97_ad18xx_pcm_put_bits() local 937 val = (mask - (ucontrol->value.integer.value[0] & mask)) << lshift; in snd_ac97_ad18xx_pcm_put_bits() 938 valmask = mask << lshift; in snd_ac97_ad18xx_pcm_put_bits() [all …]
|
/sound/pci/ |
D | cmipci.c | 2009 #define COMPOSE_SB_REG(lreg,rreg,lshift,rshift,mask,invert,stereo) \ argument 2010 …((lreg) | ((rreg) << 8) | (lshift << 16) | (rshift << 19) | (mask << 24) | (invert << 22) | (stere… 2021 #define CMIPCI_SB_SW_STEREO(xname,lshift,rshift) CMIPCI_DOUBLE(xname, SB_DSP4_OUTPUT_SW, SB_DSP4_OU… argument 2178 #define CMIPCI_MIXER_SW_STEREO(xname, reg, lshift, rshift, invert) \ argument 2182 .private_value = COMPOSE_SB_REG(reg, reg, lshift, rshift, 1, invert, 1), \ 2192 #define CMIPCI_MIXER_VOL_STEREO(xname, reg, lshift, rshift, mask) \ argument 2196 .private_value = COMPOSE_SB_REG(reg, reg, lshift, rshift, mask, 0, 1), \
|