• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/oxygen/

Lines Matching defs:ctl

28 static int dac_volume_info(struct snd_kcontrol *ctl,
31 struct oxygen *chip = ctl->private_data;
40 static int dac_volume_get(struct snd_kcontrol *ctl,
43 struct oxygen *chip = ctl->private_data;
53 static int dac_volume_put(struct snd_kcontrol *ctl,
56 struct oxygen *chip = ctl->private_data;
73 static int dac_mute_get(struct snd_kcontrol *ctl,
76 struct oxygen *chip = ctl->private_data;
84 static int dac_mute_put(struct snd_kcontrol *ctl,
87 struct oxygen *chip = ctl->private_data;
100 static int upmix_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info)
109 struct oxygen *chip = ctl->private_data;
121 static int upmix_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value)
123 struct oxygen *chip = ctl->private_data;
188 static int upmix_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value)
190 struct oxygen *chip = ctl->private_data;
206 static int spdif_switch_get(struct snd_kcontrol *ctl,
209 struct oxygen *chip = ctl->private_data;
281 static int spdif_switch_put(struct snd_kcontrol *ctl,
284 struct oxygen *chip = ctl->private_data;
299 static int spdif_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info)
339 static int spdif_default_get(struct snd_kcontrol *ctl,
342 struct oxygen *chip = ctl->private_data;
350 static int spdif_default_put(struct snd_kcontrol *ctl,
353 struct oxygen *chip = ctl->private_data;
369 static int spdif_mask_get(struct snd_kcontrol *ctl,
379 static int spdif_pcm_get(struct snd_kcontrol *ctl,
382 struct oxygen *chip = ctl->private_data;
390 static int spdif_pcm_put(struct snd_kcontrol *ctl,
393 struct oxygen *chip = ctl->private_data;
409 static int spdif_input_mask_get(struct snd_kcontrol *ctl,
419 static int spdif_input_default_get(struct snd_kcontrol *ctl,
422 struct oxygen *chip = ctl->private_data;
433 static int spdif_loopback_get(struct snd_kcontrol *ctl,
436 struct oxygen *chip = ctl->private_data;
444 static int spdif_loopback_put(struct snd_kcontrol *ctl,
447 struct oxygen *chip = ctl->private_data;
464 static int monitor_volume_info(struct snd_kcontrol *ctl,
474 static int monitor_get(struct snd_kcontrol *ctl,
477 struct oxygen *chip = ctl->private_data;
478 u8 bit = ctl->private_value;
479 int invert = ctl->private_value & (1 << 8);
486 static int monitor_put(struct snd_kcontrol *ctl,
489 struct oxygen *chip = ctl->private_data;
490 u8 bit = ctl->private_value;
491 int invert = ctl->private_value & (1 << 8);
508 static int ac97_switch_get(struct snd_kcontrol *ctl,
511 struct oxygen *chip = ctl->private_data;
512 unsigned int codec = (ctl->private_value >> 24) & 1;
513 unsigned int index = ctl->private_value & 0xff;
514 unsigned int bitnr = (ctl->private_value >> 8) & 0xff;
515 int invert = ctl->private_value & (1 << 16);
546 static int ac97_switch_put(struct snd_kcontrol *ctl,
549 struct oxygen *chip = ctl->private_data;
550 unsigned int codec = (ctl->private_value >> 24) & 1;
551 unsigned int index = ctl->private_value & 0xff;
552 unsigned int bitnr = (ctl->private_value >> 8) & 0xff;
553 int invert = ctl->private_value & (1 << 16);
590 static int ac97_volume_info(struct snd_kcontrol *ctl,
593 int stereo = (ctl->private_value >> 16) & 1;
602 static int ac97_volume_get(struct snd_kcontrol *ctl,
605 struct oxygen *chip = ctl->private_data;
606 unsigned int codec = (ctl->private_value >> 24) & 1;
607 int stereo = (ctl->private_value >> 16) & 1;
608 unsigned int index = ctl->private_value & 0xff;
620 static int ac97_volume_put(struct snd_kcontrol *ctl,
623 struct oxygen *chip = ctl->private_data;
624 unsigned int codec = (ctl->private_value >> 24) & 1;
625 int stereo = (ctl->private_value >> 16) & 1;
626 unsigned int index = ctl->private_value & 0xff;
647 static int ac97_fp_rec_volume_info(struct snd_kcontrol *ctl,
657 static int ac97_fp_rec_volume_get(struct snd_kcontrol *ctl,
660 struct oxygen *chip = ctl->private_data;
671 static int ac97_fp_rec_volume_put(struct snd_kcontrol *ctl,
674 struct oxygen *chip = ctl->private_data;
934 static void oxygen_any_ctl_free(struct snd_kcontrol *ctl)
936 struct oxygen *chip = ctl->private_data;
960 struct snd_kcontrol *ctl;
980 ctl = snd_ctl_new1(&template, chip);
981 if (!ctl)
983 err = snd_ctl_add(chip->card, ctl);
987 if (!strcmp(ctl->id.name, known_ctl_names[j])) {
988 chip->controls[j] = ctl;
989 ctl->private_free = oxygen_any_ctl_free;