Lines Matching refs:kcontrol
60 static int snd_ak4531_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ak4531_info_single() argument
62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_single()
71 static int snd_ak4531_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_get_single() argument
73 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_get_single()
74 int reg = kcontrol->private_value & 0xff; in snd_ak4531_get_single()
75 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_single()
76 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_get_single()
77 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_single()
90 static int snd_ak4531_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_single() argument
92 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_single()
93 int reg = kcontrol->private_value & 0xff; in snd_ak4531_put_single()
94 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_put_single()
95 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_put_single()
96 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_put_single()
127 static int snd_ak4531_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ak4531_info_double() argument
129 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_double()
138 static int snd_ak4531_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_get_double() argument
140 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_get_double()
141 int left_reg = kcontrol->private_value & 0xff; in snd_ak4531_get_double()
142 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_ak4531_get_double()
143 int left_shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_double()
144 int right_shift = (kcontrol->private_value >> 19) & 0x07; in snd_ak4531_get_double()
145 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_get_double()
146 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_double()
162 static int snd_ak4531_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_double() argument
164 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_double()
165 int left_reg = kcontrol->private_value & 0xff; in snd_ak4531_put_double()
166 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_ak4531_put_double()
167 int left_shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_put_double()
168 int right_shift = (kcontrol->private_value >> 19) & 0x07; in snd_ak4531_put_double()
169 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_put_double()
170 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_put_double()
204 static int snd_ak4531_info_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ak4531_info_input_sw() argument
213 static int snd_ak4531_get_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontr… in snd_ak4531_get_input_sw() argument
215 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_get_input_sw()
216 int reg1 = kcontrol->private_value & 0xff; in snd_ak4531_get_input_sw()
217 int reg2 = (kcontrol->private_value >> 8) & 0xff; in snd_ak4531_get_input_sw()
218 int left_shift = (kcontrol->private_value >> 16) & 0x0f; in snd_ak4531_get_input_sw()
219 int right_shift = (kcontrol->private_value >> 24) & 0x0f; in snd_ak4531_get_input_sw()
230 static int snd_ak4531_put_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontr… in snd_ak4531_put_input_sw() argument
232 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_input_sw()
233 int reg1 = kcontrol->private_value & 0xff; in snd_ak4531_put_input_sw()
234 int reg2 = (kcontrol->private_value >> 8) & 0xff; in snd_ak4531_put_input_sw()
235 int left_shift = (kcontrol->private_value >> 16) & 0x0f; in snd_ak4531_put_input_sw()
236 int right_shift = (kcontrol->private_value >> 24) & 0x0f; in snd_ak4531_put_input_sw()