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