Lines Matching refs:kcontrol

343 static int mixart_analog_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)  in mixart_analog_vol_info()  argument
347 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_info()
357 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_get() argument
359 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_get()
361 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_get()
372 static int mixart_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_put() argument
374 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_put()
379 is_capture = (kcontrol->private_value != 0); in mixart_analog_vol_put()
421 static int mixart_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_audio_sw_get() argument
423 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_get()
432 static int mixart_audio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_audio_sw_put() argument
434 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_put()
822 static int mixart_digital_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in mixart_digital_vol_info() argument
834 static int mixart_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_pcm_vol_get() argument
836 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_vol_get()
837 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_vol_get()
839 int is_capture = kcontrol->private_value & MIXART_VOL_REC_MASK; in mixart_pcm_vol_get()
840 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_vol_get()
856 static int mixart_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_pcm_vol_put() argument
858 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_vol_put()
859 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_vol_put()
861 int is_capture = kcontrol->private_value & MIXART_VOL_REC_MASK; in mixart_pcm_vol_put()
862 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_vol_put()
914 static int mixart_pcm_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_pcm_sw_get() argument
916 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_sw_get()
917 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_sw_get()
920 if(kcontrol->private_value & MIXART_VOL_AES_MASK) /* AES playback */ in mixart_pcm_sw_get()
928 static int mixart_pcm_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_pcm_sw_put() argument
930 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_sw_put()
932 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_sw_put()
933 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ in mixart_pcm_sw_put()
998 static int mixart_monitor_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in mixart_monitor_vol_get() argument
1000 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_monitor_vol_get()
1008 static int mixart_monitor_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in mixart_monitor_vol_put() argument
1010 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_monitor_vol_put()
1042 static int mixart_monitor_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_monitor_sw_get() argument
1044 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_monitor_sw_get()
1052 static int mixart_monitor_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_monitor_sw_put() argument
1054 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_monitor_sw_put()