Lines Matching refs:left_shift

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()
198 #define AK4531_INPUT_SW(xname, xindex, reg1, reg2, left_shift, right_shift) \ argument
202 .private_value = reg1 | (reg2 << 8) | (left_shift << 16) | (right_shift << 24) }
218 int left_shift = (kcontrol->private_value >> 16) & 0x0f; in snd_ak4531_get_input_sw() local
222 ucontrol->value.integer.value[0] = (ak4531->regs[reg1] >> left_shift) & 1; in snd_ak4531_get_input_sw()
223 ucontrol->value.integer.value[1] = (ak4531->regs[reg2] >> left_shift) & 1; in snd_ak4531_get_input_sw()
235 int left_shift = (kcontrol->private_value >> 16) & 0x0f; in snd_ak4531_put_input_sw() local
241 val1 = ak4531->regs[reg1] & ~((1 << left_shift) | (1 << right_shift)); in snd_ak4531_put_input_sw()
242 val2 = ak4531->regs[reg2] & ~((1 << left_shift) | (1 << right_shift)); in snd_ak4531_put_input_sw()
243 val1 |= (ucontrol->value.integer.value[0] & 1) << left_shift; in snd_ak4531_put_input_sw()
244 val2 |= (ucontrol->value.integer.value[1] & 1) << left_shift; in snd_ak4531_put_input_sw()