Lines Matching refs:kcontrol
161 static int snd_pmac_burgundy_info_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_volume() argument
171 static int snd_pmac_burgundy_get_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_get_volume() argument
174 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_get_volume()
175 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume()
176 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_get_volume()
182 static int snd_pmac_burgundy_put_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_put_volume() argument
185 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_put_volume()
186 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume()
187 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_put_volume()
237 static int snd_pmac_burgundy_info_volume_2b(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_volume_2b() argument
247 static int snd_pmac_burgundy_get_volume_2b(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_get_volume_2b() argument
250 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_get_volume_2b()
251 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume_2b()
252 int off = kcontrol->private_value & 0x300; in snd_pmac_burgundy_get_volume_2b()
258 static int snd_pmac_burgundy_put_volume_2b(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_put_volume_2b() argument
261 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_put_volume_2b()
262 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume_2b()
263 int off = kcontrol->private_value & 0x300; in snd_pmac_burgundy_put_volume_2b()
283 static int snd_pmac_burgundy_info_gain(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_gain() argument
286 int stereo = (kcontrol->private_value >> 24) & 1; in snd_pmac_burgundy_info_gain()
294 static int snd_pmac_burgundy_get_gain(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_get_gain() argument
297 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_get_gain()
298 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_gain()
299 int stereo = (kcontrol->private_value >> 24) & 1; in snd_pmac_burgundy_get_gain()
300 int atten = (kcontrol->private_value >> 25) & 1; in snd_pmac_burgundy_get_gain()
312 static int snd_pmac_burgundy_put_gain(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_put_gain() argument
315 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_put_gain()
316 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_gain()
317 int stereo = (kcontrol->private_value >> 24) & 1; in snd_pmac_burgundy_put_gain()
318 int atten = (kcontrol->private_value >> 25) & 1; in snd_pmac_burgundy_put_gain()
345 static int snd_pmac_burgundy_info_switch_w(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_switch_w() argument
348 int stereo = (kcontrol->private_value >> 24) & 1; in snd_pmac_burgundy_info_switch_w()
356 static int snd_pmac_burgundy_get_switch_w(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_get_switch_w() argument
359 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_get_switch_w()
360 unsigned int addr = BASE2ADDR((kcontrol->private_value >> 16) & 0xff); in snd_pmac_burgundy_get_switch_w()
361 int lmask = 1 << (kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_switch_w()
362 int rmask = 1 << ((kcontrol->private_value >> 8) & 0xff); in snd_pmac_burgundy_get_switch_w()
363 int stereo = (kcontrol->private_value >> 24) & 1; in snd_pmac_burgundy_get_switch_w()
371 static int snd_pmac_burgundy_put_switch_w(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_put_switch_w() argument
374 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_put_switch_w()
375 unsigned int addr = BASE2ADDR((kcontrol->private_value >> 16) & 0xff); in snd_pmac_burgundy_put_switch_w()
376 int lmask = 1 << (kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_switch_w()
377 int rmask = 1 << ((kcontrol->private_value >> 8) & 0xff); in snd_pmac_burgundy_put_switch_w()
378 int stereo = (kcontrol->private_value >> 24) & 1; in snd_pmac_burgundy_put_switch_w()
401 static int snd_pmac_burgundy_info_switch_b(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_switch_b() argument
404 int stereo = (kcontrol->private_value >> 24) & 1; in snd_pmac_burgundy_info_switch_b()
412 static int snd_pmac_burgundy_get_switch_b(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_get_switch_b() argument
415 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_get_switch_b()
416 unsigned int addr = BASE2ADDR((kcontrol->private_value >> 16) & 0xff); in snd_pmac_burgundy_get_switch_b()
417 int lmask = kcontrol->private_value & 0xff; in snd_pmac_burgundy_get_switch_b()
418 int rmask = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_get_switch_b()
419 int stereo = (kcontrol->private_value >> 24) & 1; in snd_pmac_burgundy_get_switch_b()
427 static int snd_pmac_burgundy_put_switch_b(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_put_switch_b() argument
430 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_put_switch_b()
431 unsigned int addr = BASE2ADDR((kcontrol->private_value >> 16) & 0xff); in snd_pmac_burgundy_put_switch_b()
432 int lmask = kcontrol->private_value & 0xff; in snd_pmac_burgundy_put_switch_b()
433 int rmask = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_put_switch_b()
434 int stereo = (kcontrol->private_value >> 24) & 1; in snd_pmac_burgundy_put_switch_b()