Lines Matching refs:kcontrol
341 static int mixart_analog_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in mixart_analog_vol_info() argument
345 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_info()
355 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_get() argument
357 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_get()
359 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_get()
370 static int mixart_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_put() argument
372 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_put()
377 is_capture = (kcontrol->private_value != 0); in mixart_analog_vol_put()
419 static int mixart_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_audio_sw_get() argument
421 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_get()
430 static int mixart_audio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_audio_sw_put() argument
432 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_put()
816 static int mixart_digital_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in mixart_digital_vol_info() argument
828 static int mixart_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_pcm_vol_get() argument
830 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_vol_get()
831 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_vol_get()
833 int is_capture = kcontrol->private_value & MIXART_VOL_REC_MASK; in mixart_pcm_vol_get()
834 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_vol_get()
850 static int mixart_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_pcm_vol_put() argument
852 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_vol_put()
853 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_vol_put()
855 int is_capture = kcontrol->private_value & MIXART_VOL_REC_MASK; in mixart_pcm_vol_put()
856 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_vol_put()
908 static int mixart_pcm_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_pcm_sw_get() argument
910 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_sw_get()
911 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_sw_get()
914 if(kcontrol->private_value & MIXART_VOL_AES_MASK) /* AES playback */ in mixart_pcm_sw_get()
922 static int mixart_pcm_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_pcm_sw_put() argument
924 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_sw_put()
926 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_sw_put()
927 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_sw_put()
990 static int mixart_monitor_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in mixart_monitor_vol_get() argument
992 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_monitor_vol_get()
1000 static int mixart_monitor_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in mixart_monitor_vol_put() argument
1002 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_monitor_vol_put()
1034 static int mixart_monitor_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_monitor_sw_get() argument
1036 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_monitor_sw_get()
1044 static int mixart_monitor_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_monitor_sw_put() argument
1046 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_monitor_sw_put()