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()
195 static int upmix_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in upmix_put() argument
197 struct oxygen *chip = ctl->private_data; in upmix_put()
213 static int spdif_switch_get(struct snd_kcontrol *ctl, in spdif_switch_get() argument
216 struct oxygen *chip = ctl->private_data; in spdif_switch_get()
288 static int spdif_switch_put(struct snd_kcontrol *ctl, in spdif_switch_put() argument
291 struct oxygen *chip = ctl->private_data; in spdif_switch_put()
306 static int spdif_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info) in spdif_info() argument
346 static int spdif_default_get(struct snd_kcontrol *ctl, in spdif_default_get() argument
349 struct oxygen *chip = ctl->private_data; in spdif_default_get()
357 static int spdif_default_put(struct snd_kcontrol *ctl, in spdif_default_put() argument
360 struct oxygen *chip = ctl->private_data; in spdif_default_put()
376 static int spdif_mask_get(struct snd_kcontrol *ctl, in spdif_mask_get() argument
386 static int spdif_pcm_get(struct snd_kcontrol *ctl, in spdif_pcm_get() argument
389 struct oxygen *chip = ctl->private_data; in spdif_pcm_get()
397 static int spdif_pcm_put(struct snd_kcontrol *ctl, in spdif_pcm_put() argument
400 struct oxygen *chip = ctl->private_data; in spdif_pcm_put()
416 static int spdif_input_mask_get(struct snd_kcontrol *ctl, in spdif_input_mask_get() argument
426 static int spdif_input_default_get(struct snd_kcontrol *ctl, in spdif_input_default_get() argument
429 struct oxygen *chip = ctl->private_data; in spdif_input_default_get()
440 static int spdif_bit_switch_get(struct snd_kcontrol *ctl, in spdif_bit_switch_get() argument
443 struct oxygen *chip = ctl->private_data; in spdif_bit_switch_get()
444 u32 bit = ctl->private_value; in spdif_bit_switch_get()
451 static int spdif_bit_switch_put(struct snd_kcontrol *ctl, in spdif_bit_switch_put() argument
454 struct oxygen *chip = ctl->private_data; in spdif_bit_switch_put()
455 u32 bit = ctl->private_value; in spdif_bit_switch_put()
472 static int monitor_volume_info(struct snd_kcontrol *ctl, in monitor_volume_info() argument
482 static int monitor_get(struct snd_kcontrol *ctl, in monitor_get() argument
485 struct oxygen *chip = ctl->private_data; in monitor_get()
486 u8 bit = ctl->private_value; in monitor_get()
487 int invert = ctl->private_value & (1 << 8); in monitor_get()
494 static int monitor_put(struct snd_kcontrol *ctl, in monitor_put() argument
497 struct oxygen *chip = ctl->private_data; in monitor_put()
498 u8 bit = ctl->private_value; in monitor_put()
499 int invert = ctl->private_value & (1 << 8); in monitor_put()
516 static int ac97_switch_get(struct snd_kcontrol *ctl, in ac97_switch_get() argument
519 struct oxygen *chip = ctl->private_data; in ac97_switch_get()
520 unsigned int codec = (ctl->private_value >> 24) & 1; in ac97_switch_get()
521 unsigned int index = ctl->private_value & 0xff; in ac97_switch_get()
522 unsigned int bitnr = (ctl->private_value >> 8) & 0xff; in ac97_switch_get()
523 int invert = ctl->private_value & (1 << 16); in ac97_switch_get()
554 static int ac97_switch_put(struct snd_kcontrol *ctl, in ac97_switch_put() argument
557 struct oxygen *chip = ctl->private_data; in ac97_switch_put()
558 unsigned int codec = (ctl->private_value >> 24) & 1; in ac97_switch_put()
559 unsigned int index = ctl->private_value & 0xff; in ac97_switch_put()
560 unsigned int bitnr = (ctl->private_value >> 8) & 0xff; in ac97_switch_put()
561 int invert = ctl->private_value & (1 << 16); in ac97_switch_put()
598 static int ac97_volume_info(struct snd_kcontrol *ctl, in ac97_volume_info() argument
601 int stereo = (ctl->private_value >> 16) & 1; in ac97_volume_info()
610 static int ac97_volume_get(struct snd_kcontrol *ctl, in ac97_volume_get() argument
613 struct oxygen *chip = ctl->private_data; in ac97_volume_get()
614 unsigned int codec = (ctl->private_value >> 24) & 1; in ac97_volume_get()
615 int stereo = (ctl->private_value >> 16) & 1; in ac97_volume_get()
616 unsigned int index = ctl->private_value & 0xff; in ac97_volume_get()
631 static int ac97_volume_put(struct snd_kcontrol *ctl, in ac97_volume_put() argument
634 struct oxygen *chip = ctl->private_data; in ac97_volume_put()
635 unsigned int codec = (ctl->private_value >> 24) & 1; in ac97_volume_put()
636 int stereo = (ctl->private_value >> 16) & 1; in ac97_volume_put()
637 unsigned int index = ctl->private_value & 0xff; in ac97_volume_put()
658 static int mic_fmic_source_info(struct snd_kcontrol *ctl, in mic_fmic_source_info() argument
666 static int mic_fmic_source_get(struct snd_kcontrol *ctl, in mic_fmic_source_get() argument
669 struct oxygen *chip = ctl->private_data; in mic_fmic_source_get()
678 static int mic_fmic_source_put(struct snd_kcontrol *ctl, in mic_fmic_source_put() argument
681 struct oxygen *chip = ctl->private_data; in mic_fmic_source_put()
698 static int ac97_fp_rec_volume_info(struct snd_kcontrol *ctl, in ac97_fp_rec_volume_info() argument
708 static int ac97_fp_rec_volume_get(struct snd_kcontrol *ctl, in ac97_fp_rec_volume_get() argument
711 struct oxygen *chip = ctl->private_data; in ac97_fp_rec_volume_get()
722 static int ac97_fp_rec_volume_put(struct snd_kcontrol *ctl, in ac97_fp_rec_volume_put() argument
725 struct oxygen *chip = ctl->private_data; in ac97_fp_rec_volume_put()
1031 static void oxygen_any_ctl_free(struct snd_kcontrol *ctl) in oxygen_any_ctl_free() argument
1033 struct oxygen *chip = ctl->private_data; in oxygen_any_ctl_free()
1057 struct snd_kcontrol *ctl; in add_controls() local
1083 ctl = snd_ctl_new1(&template, chip); in add_controls()
1084 if (!ctl) in add_controls()
1086 err = snd_ctl_add(chip->card, ctl); in add_controls()
1090 if (!strcmp(ctl->id.name, known_ctl_names[j])) { in add_controls()
1091 chip->controls[j] = ctl; in add_controls()
1092 ctl->private_free = oxygen_any_ctl_free; in add_controls()