Lines Matching defs:ctl

16 static int dac_volume_info(struct snd_kcontrol *ctl,
19 struct oxygen *chip = ctl->private_data;
28 static int dac_volume_get(struct snd_kcontrol *ctl,
31 struct oxygen *chip = ctl->private_data;
41 static int dac_volume_put(struct snd_kcontrol *ctl,
44 struct oxygen *chip = ctl->private_data;
61 static int dac_mute_get(struct snd_kcontrol *ctl,
64 struct oxygen *chip = ctl->private_data;
72 static int dac_mute_put(struct snd_kcontrol *ctl,
75 struct oxygen *chip = ctl->private_data;
98 static int upmix_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info)
107 struct oxygen *chip = ctl->private_data;
113 static int upmix_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value)
115 struct oxygen *chip = ctl->private_data;
183 static int upmix_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value)
185 struct oxygen *chip = ctl->private_data;
201 static int spdif_switch_get(struct snd_kcontrol *ctl,
204 struct oxygen *chip = ctl->private_data;
276 static int spdif_switch_put(struct snd_kcontrol *ctl,
279 struct oxygen *chip = ctl->private_data;
294 static int spdif_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info)
334 static int spdif_default_get(struct snd_kcontrol *ctl,
337 struct oxygen *chip = ctl->private_data;
345 static int spdif_default_put(struct snd_kcontrol *ctl,
348 struct oxygen *chip = ctl->private_data;
364 static int spdif_mask_get(struct snd_kcontrol *ctl,
374 static int spdif_pcm_get(struct snd_kcontrol *ctl,
377 struct oxygen *chip = ctl->private_data;
385 static int spdif_pcm_put(struct snd_kcontrol *ctl,
388 struct oxygen *chip = ctl->private_data;
404 static int spdif_input_mask_get(struct snd_kcontrol *ctl,
414 static int spdif_input_default_get(struct snd_kcontrol *ctl,
417 struct oxygen *chip = ctl->private_data;
428 static int spdif_bit_switch_get(struct snd_kcontrol *ctl,
431 struct oxygen *chip = ctl->private_data;
432 u32 bit = ctl->private_value;
439 static int spdif_bit_switch_put(struct snd_kcontrol *ctl,
442 struct oxygen *chip = ctl->private_data;
443 u32 bit = ctl->private_value;
460 static int monitor_volume_info(struct snd_kcontrol *ctl,
470 static int monitor_get(struct snd_kcontrol *ctl,
473 struct oxygen *chip = ctl->private_data;
474 u8 bit = ctl->private_value;
475 int invert = ctl->private_value & (1 << 8);
482 static int monitor_put(struct snd_kcontrol *ctl,
485 struct oxygen *chip = ctl->private_data;
486 u8 bit = ctl->private_value;
487 int invert = ctl->private_value & (1 << 8);
504 static int ac97_switch_get(struct snd_kcontrol *ctl,
507 struct oxygen *chip = ctl->private_data;
508 unsigned int codec = (ctl->private_value >> 24) & 1;
509 unsigned int index = ctl->private_value & 0xff;
510 unsigned int bitnr = (ctl->private_value >> 8) & 0xff;
511 int invert = ctl->private_value & (1 << 16);
542 static int ac97_switch_put(struct snd_kcontrol *ctl,
545 struct oxygen *chip = ctl->private_data;
546 unsigned int codec = (ctl->private_value >> 24) & 1;
547 unsigned int index = ctl->private_value & 0xff;
548 unsigned int bitnr = (ctl->private_value >> 8) & 0xff;
549 int invert = ctl->private_value & (1 << 16);
586 static int ac97_volume_info(struct snd_kcontrol *ctl,
589 int stereo = (ctl->private_value >> 16) & 1;
598 static int ac97_volume_get(struct snd_kcontrol *ctl,
601 struct oxygen *chip = ctl->private_data;
602 unsigned int codec = (ctl->private_value >> 24) & 1;
603 int stereo = (ctl->private_value >> 16) & 1;
604 unsigned int index = ctl->private_value & 0xff;
619 static int ac97_volume_put(struct snd_kcontrol *ctl,
622 struct oxygen *chip = ctl->private_data;
623 unsigned int codec = (ctl->private_value >> 24) & 1;
624 int stereo = (ctl->private_value >> 16) & 1;
625 unsigned int index = ctl->private_value & 0xff;
646 static int mic_fmic_source_info(struct snd_kcontrol *ctl,
654 static int mic_fmic_source_get(struct snd_kcontrol *ctl,
657 struct oxygen *chip = ctl->private_data;
666 static int mic_fmic_source_put(struct snd_kcontrol *ctl,
669 struct oxygen *chip = ctl->private_data;
686 static int ac97_fp_rec_volume_info(struct snd_kcontrol *ctl,
696 static int ac97_fp_rec_volume_get(struct snd_kcontrol *ctl,
699 struct oxygen *chip = ctl->private_data;
710 static int ac97_fp_rec_volume_put(struct snd_kcontrol *ctl,
713 struct oxygen *chip = ctl->private_data;
1019 static void oxygen_any_ctl_free(struct snd_kcontrol *ctl)
1021 struct oxygen *chip = ctl->private_data;
1045 struct snd_kcontrol *ctl;
1071 ctl = snd_ctl_new1(&template, chip);
1072 if (!ctl)
1074 err = snd_ctl_add(chip->card, ctl);
1077 j = match_string(known_ctl_names, CONTROL_COUNT, ctl->id.name);
1079 chip->controls[j] = ctl;
1080 ctl->private_free = oxygen_any_ctl_free;