/Linux-v5.10/sound/pci/ |
D | ak4531_codec.c | 113 #define AK4531_DOUBLE(xname, xindex, left_reg, right_reg, left_shift, right_shift, mask, invert) \ argument 117 ….private_value = left_reg | (right_reg << 8) | (left_shift << 16) | (right_shift << 19) | (mask <<… 118 #define AK4531_DOUBLE_TLV(xname, xindex, left_reg, right_reg, left_shift, right_shift, mask, invert… argument 124 ….private_value = left_reg | (right_reg << 8) | (left_shift << 16) | (right_shift << 19) | (mask <<… 143 int left_shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_double() local 150 left = (ak4531->regs[left_reg] >> left_shift) & mask; in snd_ak4531_get_double() 167 int left_shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_put_double() local 180 left <<= left_shift; in snd_ak4531_put_double() 184 left = (ak4531->regs[left_reg] & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_ak4531_put_double() 188 left = (ak4531->regs[left_reg] & ~(mask << left_shift)) | left; in snd_ak4531_put_double() [all …]
|
D | cmipci.c | 1969 unsigned int left_shift, right_shift; member 1978 #define CMIPCI_DOUBLE(xname, left_reg, right_reg, left_shift, right_shift, mask, invert, stereo) \ argument 1982 ….private_value = COMPOSE_SB_REG(left_reg, right_reg, left_shift, right_shift, mask, invert, stereo… 1994 r->left_shift = (val >> 16) & 0x07; in cmipci_sb_reg_decode() 2023 val = (snd_cmipci_mixer_read(cm, reg.left_reg) >> reg.left_shift) & reg.mask; in snd_cmipci_get_volume() 2049 left <<= reg.left_shift; in snd_cmipci_put_volume() 2059 left |= oleft & ~(reg.mask << reg.left_shift); in snd_cmipci_put_volume() 2079 #define CMIPCI_SB_INPUT_SW(xname, left_shift, right_shift) \ argument 2083 ….private_value = COMPOSE_SB_REG(SB_DSP4_INPUT_LEFT, SB_DSP4_INPUT_RIGHT, left_shift, right_shift, … 2108 ucontrol->value.integer.value[0] = (val1 >> reg.left_shift) & 1; in snd_cmipci_get_input_sw() [all …]
|
/Linux-v5.10/include/sound/ |
D | sb.h | 324 #define SB_MIXVAL_DOUBLE(left_reg, right_reg, left_shift, right_shift, mask) \ argument 325 ((left_reg) | ((right_reg) << 8) | ((left_shift) << 16) | ((right_shift) << 19) | ((mask) << 24)) 328 #define SB_MIXVAL_INPUT_SW(reg1, reg2, left_shift, right_shift) \ argument 329 ((reg1) | ((reg2) << 8) | ((left_shift) << 16) | ((right_shift) << 24)) 345 #define SB_DOUBLE(xname, left_reg, right_reg, left_shift, right_shift, mask) \ argument 348 .private_value = SB_MIXVAL_DOUBLE(left_reg, right_reg, left_shift, right_shift, mask) } 350 #define SB16_INPUT_SW(xname, reg1, reg2, left_shift, right_shift) \ argument 353 .private_value = SB_MIXVAL_INPUT_SW(reg1, reg2, left_shift, right_shift) }
|
/Linux-v5.10/sound/isa/sb/ |
D | sb_mixer.c | 114 int left_shift = (kcontrol->private_value >> 16) & 0x07; in snd_sbmixer_get_double() local 120 left = (snd_sbmixer_read(sb, left_reg) >> left_shift) & mask; in snd_sbmixer_get_double() 134 int left_shift = (kcontrol->private_value >> 16) & 0x07; in snd_sbmixer_put_double() local 140 left = (ucontrol->value.integer.value[0] & mask) << left_shift; in snd_sbmixer_put_double() 145 left = (oleft & ~((mask << left_shift) | (mask << right_shift))) | left | right; in snd_sbmixer_put_double() 152 left = (oleft & ~(mask << left_shift)) | left; in snd_sbmixer_put_double() 390 int left_shift = (kcontrol->private_value >> 16) & 0x0f; in snd_sb16mixer_get_input_sw() local 398 ucontrol->value.integer.value[0] = (val1 >> left_shift) & 0x01; in snd_sb16mixer_get_input_sw() 399 ucontrol->value.integer.value[1] = (val2 >> left_shift) & 0x01; in snd_sb16mixer_get_input_sw() 411 int left_shift = (kcontrol->private_value >> 16) & 0x0f; in snd_sb16mixer_put_input_sw() local [all …]
|
/Linux-v5.10/sound/parisc/ |
D | harmony.c | 668 int left_shift = (kc->private_value) & 0xff; in snd_harmony_mixercontrol_info() local 673 uinfo->count = left_shift == right_shift ? 1 : 2; in snd_harmony_mixercontrol_info() 793 #define HARMONY_VOLUME(xname, left_shift, right_shift, mask, invert) \ argument 797 .private_value = ((left_shift) | ((right_shift) << 8) | \
|