Lines Matching refs:kcontrol
79 static int snd_ak4531_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ak4531_info_single() argument
81 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_single()
90 static int snd_ak4531_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_get_single() argument
92 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_get_single()
93 int reg = kcontrol->private_value & 0xff; in snd_ak4531_get_single()
94 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_single()
95 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_get_single()
96 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_single()
109 static int snd_ak4531_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_single() argument
111 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_single()
112 int reg = kcontrol->private_value & 0xff; in snd_ak4531_put_single()
113 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_put_single()
114 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_put_single()
115 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_put_single()
146 static int snd_ak4531_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ak4531_info_double() argument
148 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_double()
157 static int snd_ak4531_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_get_double() argument
159 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_get_double()
160 int left_reg = kcontrol->private_value & 0xff; in snd_ak4531_get_double()
161 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_ak4531_get_double()
162 int left_shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_double()
163 int right_shift = (kcontrol->private_value >> 19) & 0x07; in snd_ak4531_get_double()
164 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_get_double()
165 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_double()
181 static int snd_ak4531_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_double() argument
183 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_double()
184 int left_reg = kcontrol->private_value & 0xff; in snd_ak4531_put_double()
185 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_ak4531_put_double()
186 int left_shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_put_double()
187 int right_shift = (kcontrol->private_value >> 19) & 0x07; in snd_ak4531_put_double()
188 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_put_double()
189 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_put_double()
223 static int snd_ak4531_info_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ak4531_info_input_sw() argument
232 static int snd_ak4531_get_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontr… in snd_ak4531_get_input_sw() argument
234 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_get_input_sw()
235 int reg1 = kcontrol->private_value & 0xff; in snd_ak4531_get_input_sw()
236 int reg2 = (kcontrol->private_value >> 8) & 0xff; in snd_ak4531_get_input_sw()
237 int left_shift = (kcontrol->private_value >> 16) & 0x0f; in snd_ak4531_get_input_sw()
238 int right_shift = (kcontrol->private_value >> 24) & 0x0f; in snd_ak4531_get_input_sw()
249 static int snd_ak4531_put_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontr… in snd_ak4531_put_input_sw() argument
251 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_input_sw()
252 int reg1 = kcontrol->private_value & 0xff; in snd_ak4531_put_input_sw()
253 int reg2 = (kcontrol->private_value >> 8) & 0xff; in snd_ak4531_put_input_sw()
254 int left_shift = (kcontrol->private_value >> 16) & 0x0f; in snd_ak4531_put_input_sw()
255 int right_shift = (kcontrol->private_value >> 24) & 0x0f; in snd_ak4531_put_input_sw()