Lines Matching defs:kcontrol
330 static int mixart_analog_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
334 if(kcontrol->private_value == 0) { /* playback */
344 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
346 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
348 if(kcontrol->private_value == 0) { /* playback */
359 static int mixart_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
361 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
366 is_capture = (kcontrol->private_value != 0);
408 static int mixart_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
410 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
419 static int mixart_audio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
421 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
809 static int mixart_digital_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
821 static int mixart_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
823 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
824 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */
826 int is_capture = kcontrol->private_value & MIXART_VOL_REC_MASK;
827 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK;
843 static int mixart_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
845 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
846 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */
848 int is_capture = kcontrol->private_value & MIXART_VOL_REC_MASK;
849 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK;
901 static int mixart_pcm_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
903 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
904 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */
907 if(kcontrol->private_value & MIXART_VOL_AES_MASK) /* AES playback */
915 static int mixart_pcm_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
917 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
919 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK;
920 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */
985 static int mixart_monitor_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
987 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
995 static int mixart_monitor_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
997 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
1029 static int mixart_monitor_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1031 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);
1039 static int mixart_monitor_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1041 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol);