Lines Matching defs:kcontrol

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