• Home
  • Raw
  • Download

Lines Matching refs:ctl

28 static int dac_volume_info(struct snd_kcontrol *ctl,  in dac_volume_info()  argument
31 struct oxygen *chip = ctl->private_data; in dac_volume_info()
40 static int dac_volume_get(struct snd_kcontrol *ctl, in dac_volume_get() argument
43 struct oxygen *chip = ctl->private_data; in dac_volume_get()
53 static int dac_volume_put(struct snd_kcontrol *ctl, in dac_volume_put() argument
56 struct oxygen *chip = ctl->private_data; in dac_volume_put()
73 static int dac_mute_get(struct snd_kcontrol *ctl, in dac_mute_get() argument
76 struct oxygen *chip = ctl->private_data; in dac_mute_get()
84 static int dac_mute_put(struct snd_kcontrol *ctl, in dac_mute_put() argument
87 struct oxygen *chip = ctl->private_data; in dac_mute_put()
110 static int upmix_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info) in upmix_info() argument
119 struct oxygen *chip = ctl->private_data; in upmix_info()
125 static int upmix_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in upmix_get() argument
127 struct oxygen *chip = ctl->private_data; in upmix_get()
194 static int upmix_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in upmix_put() argument
196 struct oxygen *chip = ctl->private_data; in upmix_put()
212 static int spdif_switch_get(struct snd_kcontrol *ctl, in spdif_switch_get() argument
215 struct oxygen *chip = ctl->private_data; in spdif_switch_get()
287 static int spdif_switch_put(struct snd_kcontrol *ctl, in spdif_switch_put() argument
290 struct oxygen *chip = ctl->private_data; in spdif_switch_put()
305 static int spdif_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info) in spdif_info() argument
345 static int spdif_default_get(struct snd_kcontrol *ctl, in spdif_default_get() argument
348 struct oxygen *chip = ctl->private_data; in spdif_default_get()
356 static int spdif_default_put(struct snd_kcontrol *ctl, in spdif_default_put() argument
359 struct oxygen *chip = ctl->private_data; in spdif_default_put()
375 static int spdif_mask_get(struct snd_kcontrol *ctl, in spdif_mask_get() argument
385 static int spdif_pcm_get(struct snd_kcontrol *ctl, in spdif_pcm_get() argument
388 struct oxygen *chip = ctl->private_data; in spdif_pcm_get()
396 static int spdif_pcm_put(struct snd_kcontrol *ctl, in spdif_pcm_put() argument
399 struct oxygen *chip = ctl->private_data; in spdif_pcm_put()
415 static int spdif_input_mask_get(struct snd_kcontrol *ctl, in spdif_input_mask_get() argument
425 static int spdif_input_default_get(struct snd_kcontrol *ctl, in spdif_input_default_get() argument
428 struct oxygen *chip = ctl->private_data; in spdif_input_default_get()
439 static int spdif_bit_switch_get(struct snd_kcontrol *ctl, in spdif_bit_switch_get() argument
442 struct oxygen *chip = ctl->private_data; in spdif_bit_switch_get()
443 u32 bit = ctl->private_value; in spdif_bit_switch_get()
450 static int spdif_bit_switch_put(struct snd_kcontrol *ctl, in spdif_bit_switch_put() argument
453 struct oxygen *chip = ctl->private_data; in spdif_bit_switch_put()
454 u32 bit = ctl->private_value; in spdif_bit_switch_put()
471 static int monitor_volume_info(struct snd_kcontrol *ctl, in monitor_volume_info() argument
481 static int monitor_get(struct snd_kcontrol *ctl, in monitor_get() argument
484 struct oxygen *chip = ctl->private_data; in monitor_get()
485 u8 bit = ctl->private_value; in monitor_get()
486 int invert = ctl->private_value & (1 << 8); in monitor_get()
493 static int monitor_put(struct snd_kcontrol *ctl, in monitor_put() argument
496 struct oxygen *chip = ctl->private_data; in monitor_put()
497 u8 bit = ctl->private_value; in monitor_put()
498 int invert = ctl->private_value & (1 << 8); in monitor_put()
515 static int ac97_switch_get(struct snd_kcontrol *ctl, in ac97_switch_get() argument
518 struct oxygen *chip = ctl->private_data; in ac97_switch_get()
519 unsigned int codec = (ctl->private_value >> 24) & 1; in ac97_switch_get()
520 unsigned int index = ctl->private_value & 0xff; in ac97_switch_get()
521 unsigned int bitnr = (ctl->private_value >> 8) & 0xff; in ac97_switch_get()
522 int invert = ctl->private_value & (1 << 16); in ac97_switch_get()
553 static int ac97_switch_put(struct snd_kcontrol *ctl, in ac97_switch_put() argument
556 struct oxygen *chip = ctl->private_data; in ac97_switch_put()
557 unsigned int codec = (ctl->private_value >> 24) & 1; in ac97_switch_put()
558 unsigned int index = ctl->private_value & 0xff; in ac97_switch_put()
559 unsigned int bitnr = (ctl->private_value >> 8) & 0xff; in ac97_switch_put()
560 int invert = ctl->private_value & (1 << 16); in ac97_switch_put()
597 static int ac97_volume_info(struct snd_kcontrol *ctl, in ac97_volume_info() argument
600 int stereo = (ctl->private_value >> 16) & 1; in ac97_volume_info()
609 static int ac97_volume_get(struct snd_kcontrol *ctl, in ac97_volume_get() argument
612 struct oxygen *chip = ctl->private_data; in ac97_volume_get()
613 unsigned int codec = (ctl->private_value >> 24) & 1; in ac97_volume_get()
614 int stereo = (ctl->private_value >> 16) & 1; in ac97_volume_get()
615 unsigned int index = ctl->private_value & 0xff; in ac97_volume_get()
630 static int ac97_volume_put(struct snd_kcontrol *ctl, in ac97_volume_put() argument
633 struct oxygen *chip = ctl->private_data; in ac97_volume_put()
634 unsigned int codec = (ctl->private_value >> 24) & 1; in ac97_volume_put()
635 int stereo = (ctl->private_value >> 16) & 1; in ac97_volume_put()
636 unsigned int index = ctl->private_value & 0xff; in ac97_volume_put()
657 static int mic_fmic_source_info(struct snd_kcontrol *ctl, in mic_fmic_source_info() argument
665 static int mic_fmic_source_get(struct snd_kcontrol *ctl, in mic_fmic_source_get() argument
668 struct oxygen *chip = ctl->private_data; in mic_fmic_source_get()
677 static int mic_fmic_source_put(struct snd_kcontrol *ctl, in mic_fmic_source_put() argument
680 struct oxygen *chip = ctl->private_data; in mic_fmic_source_put()
697 static int ac97_fp_rec_volume_info(struct snd_kcontrol *ctl, in ac97_fp_rec_volume_info() argument
707 static int ac97_fp_rec_volume_get(struct snd_kcontrol *ctl, in ac97_fp_rec_volume_get() argument
710 struct oxygen *chip = ctl->private_data; in ac97_fp_rec_volume_get()
721 static int ac97_fp_rec_volume_put(struct snd_kcontrol *ctl, in ac97_fp_rec_volume_put() argument
724 struct oxygen *chip = ctl->private_data; in ac97_fp_rec_volume_put()
1000 static void oxygen_any_ctl_free(struct snd_kcontrol *ctl) in oxygen_any_ctl_free() argument
1002 struct oxygen *chip = ctl->private_data; in oxygen_any_ctl_free()
1026 struct snd_kcontrol *ctl; in add_controls() local
1052 ctl = snd_ctl_new1(&template, chip); in add_controls()
1053 if (!ctl) in add_controls()
1055 err = snd_ctl_add(chip->card, ctl); in add_controls()
1059 if (!strcmp(ctl->id.name, known_ctl_names[j])) { in add_controls()
1060 chip->controls[j] = ctl; in add_controls()
1061 ctl->private_free = oxygen_any_ctl_free; in add_controls()