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