Lines Matching refs:kcontrol
462 static int snd_ac97_info_enum_double(struct snd_kcontrol *kcontrol, in snd_ac97_info_enum_double() argument
465 struct ac97_enum *e = (struct ac97_enum *)kcontrol->private_value; in snd_ac97_info_enum_double()
471 static int snd_ac97_get_enum_double(struct snd_kcontrol *kcontrol, in snd_ac97_get_enum_double() argument
474 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_get_enum_double()
475 struct ac97_enum *e = (struct ac97_enum *)kcontrol->private_value; in snd_ac97_get_enum_double()
488 static int snd_ac97_put_enum_double(struct snd_kcontrol *kcontrol, in snd_ac97_put_enum_double() argument
491 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_put_enum_double()
492 struct ac97_enum *e = (struct ac97_enum *)kcontrol->private_value; in snd_ac97_put_enum_double()
512 static int snd_ac97_page_save(struct snd_ac97 *ac97, int reg, struct snd_kcontrol *kcontrol) in snd_ac97_page_save() argument
515 if ((kcontrol->private_value & (1<<25)) && in snd_ac97_page_save()
518 unsigned short page = (kcontrol->private_value >> 26) & 0x0f; in snd_ac97_page_save()
535 static int snd_ac97_info_volsw(struct snd_kcontrol *kcontrol, in snd_ac97_info_volsw() argument
538 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ac97_info_volsw()
539 int shift = (kcontrol->private_value >> 8) & 0x0f; in snd_ac97_info_volsw()
540 int rshift = (kcontrol->private_value >> 12) & 0x0f; in snd_ac97_info_volsw()
549 static int snd_ac97_get_volsw(struct snd_kcontrol *kcontrol, in snd_ac97_get_volsw() argument
552 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_get_volsw()
553 int reg = kcontrol->private_value & 0xff; in snd_ac97_get_volsw()
554 int shift = (kcontrol->private_value >> 8) & 0x0f; in snd_ac97_get_volsw()
555 int rshift = (kcontrol->private_value >> 12) & 0x0f; in snd_ac97_get_volsw()
556 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ac97_get_volsw()
557 int invert = (kcontrol->private_value >> 24) & 0x01; in snd_ac97_get_volsw()
560 page_save = snd_ac97_page_save(ac97, reg, kcontrol); in snd_ac97_get_volsw()
573 static int snd_ac97_put_volsw(struct snd_kcontrol *kcontrol, in snd_ac97_put_volsw() argument
576 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_put_volsw()
577 int reg = kcontrol->private_value & 0xff; in snd_ac97_put_volsw()
578 int shift = (kcontrol->private_value >> 8) & 0x0f; in snd_ac97_put_volsw()
579 int rshift = (kcontrol->private_value >> 12) & 0x0f; in snd_ac97_put_volsw()
580 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ac97_put_volsw()
581 int invert = (kcontrol->private_value >> 24) & 0x01; in snd_ac97_put_volsw()
585 page_save = snd_ac97_page_save(ac97, reg, kcontrol); in snd_ac97_put_volsw()
603 (kcontrol->private_value & (1<<30))) { in snd_ac97_put_volsw()
707 static int snd_ac97_spdif_mask_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ac97_spdif_mask_info() argument
714 static int snd_ac97_spdif_cmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucont… in snd_ac97_spdif_cmask_get() argument
726 static int snd_ac97_spdif_pmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucont… in snd_ac97_spdif_pmask_get() argument
736 static int snd_ac97_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uco… in snd_ac97_spdif_default_get() argument
738 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_spdif_default_get()
749 static int snd_ac97_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uco… in snd_ac97_spdif_default_put() argument
751 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_spdif_default_put()
823 static int snd_ac97_put_spsa(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ac97_put_spsa() argument
825 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_put_spsa()
826 int reg = kcontrol->private_value & 0xff; in snd_ac97_put_spsa()
827 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_ac97_put_spsa()
828 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ac97_put_spsa()
892 static int snd_ac97_ad18xx_pcm_info_bits(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *u… in snd_ac97_ad18xx_pcm_info_bits() argument
894 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad18xx_pcm_info_bits()
895 int mask = (kcontrol->private_value >> 16) & 0x0f; in snd_ac97_ad18xx_pcm_info_bits()
896 int lshift = (kcontrol->private_value >> 8) & 0x0f; in snd_ac97_ad18xx_pcm_info_bits()
897 int rshift = (kcontrol->private_value >> 12) & 0x0f; in snd_ac97_ad18xx_pcm_info_bits()
909 static int snd_ac97_ad18xx_pcm_get_bits(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *u… in snd_ac97_ad18xx_pcm_get_bits() argument
911 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad18xx_pcm_get_bits()
912 int codec = kcontrol->private_value & 3; in snd_ac97_ad18xx_pcm_get_bits()
913 int lshift = (kcontrol->private_value >> 8) & 0x0f; in snd_ac97_ad18xx_pcm_get_bits()
914 int rshift = (kcontrol->private_value >> 12) & 0x0f; in snd_ac97_ad18xx_pcm_get_bits()
915 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ac97_ad18xx_pcm_get_bits()
923 static int snd_ac97_ad18xx_pcm_put_bits(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *u… in snd_ac97_ad18xx_pcm_put_bits() argument
925 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad18xx_pcm_put_bits()
926 int codec = kcontrol->private_value & 3; in snd_ac97_ad18xx_pcm_put_bits()
927 int lshift = (kcontrol->private_value >> 8) & 0x0f; in snd_ac97_ad18xx_pcm_put_bits()
928 int rshift = (kcontrol->private_value >> 12) & 0x0f; in snd_ac97_ad18xx_pcm_put_bits()
929 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ac97_ad18xx_pcm_put_bits()
946 static int snd_ac97_ad18xx_pcm_info_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info … in snd_ac97_ad18xx_pcm_info_volume() argument
955 static int snd_ac97_ad18xx_pcm_get_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value … in snd_ac97_ad18xx_pcm_get_volume() argument
957 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad18xx_pcm_get_volume()
958 int codec = kcontrol->private_value & 3; in snd_ac97_ad18xx_pcm_get_volume()
967 static int snd_ac97_ad18xx_pcm_put_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value … in snd_ac97_ad18xx_pcm_put_volume() argument
969 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_ad18xx_pcm_put_volume()
970 int codec = kcontrol->private_value & 3; in snd_ac97_ad18xx_pcm_put_volume()
2673 static int bind_hp_volsw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in bind_hp_volsw_put() argument
2675 int err = snd_ac97_put_volsw(kcontrol, ucontrol); in bind_hp_volsw_put()
2677 unsigned long priv_saved = kcontrol->private_value; in bind_hp_volsw_put()
2678 kcontrol->private_value = (kcontrol->private_value & ~0xff) | AC97_HEADPHONE; in bind_hp_volsw_put()
2679 snd_ac97_put_volsw(kcontrol, ucontrol); in bind_hp_volsw_put()
2680 kcontrol->private_value = priv_saved; in bind_hp_volsw_put()
2773 static int master_mute_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in master_mute_sw_put() argument
2775 int err = snd_ac97_put_volsw(kcontrol, ucontrol); in master_mute_sw_put()
2777 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in master_mute_sw_put()
2778 int shift = (kcontrol->private_value >> 8) & 0x0f; in master_mute_sw_put()
2779 int rshift = (kcontrol->private_value >> 12) & 0x0f; in master_mute_sw_put()
2808 static int hp_master_mute_sw_put(struct snd_kcontrol *kcontrol, in hp_master_mute_sw_put() argument
2811 int err = bind_hp_volsw_put(kcontrol, ucontrol); in hp_master_mute_sw_put()
2813 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in hp_master_mute_sw_put()
2814 int shift = (kcontrol->private_value >> 8) & 0x0f; in hp_master_mute_sw_put()
2815 int rshift = (kcontrol->private_value >> 12) & 0x0f; in hp_master_mute_sw_put()