Lines Matching refs:kcontrol

2922 static int tuning_ctl_get(struct snd_kcontrol *kcontrol,  in tuning_ctl_get()  argument
2925 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in tuning_ctl_get()
2927 hda_nid_t nid = get_amp_nid(kcontrol); in tuning_ctl_get()
2935 static int voice_focus_ctl_info(struct snd_kcontrol *kcontrol, in voice_focus_ctl_info() argument
2938 int chs = get_amp_channels(kcontrol); in voice_focus_ctl_info()
2948 static int voice_focus_ctl_put(struct snd_kcontrol *kcontrol, in voice_focus_ctl_put() argument
2951 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in voice_focus_ctl_put()
2953 hda_nid_t nid = get_amp_nid(kcontrol); in voice_focus_ctl_put()
2970 static int mic_svm_ctl_info(struct snd_kcontrol *kcontrol, in mic_svm_ctl_info() argument
2973 int chs = get_amp_channels(kcontrol); in mic_svm_ctl_info()
2983 static int mic_svm_ctl_put(struct snd_kcontrol *kcontrol, in mic_svm_ctl_put() argument
2986 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mic_svm_ctl_put()
2988 hda_nid_t nid = get_amp_nid(kcontrol); in mic_svm_ctl_put()
3005 static int equalizer_ctl_info(struct snd_kcontrol *kcontrol, in equalizer_ctl_info() argument
3008 int chs = get_amp_channels(kcontrol); in equalizer_ctl_info()
3018 static int equalizer_ctl_put(struct snd_kcontrol *kcontrol, in equalizer_ctl_put() argument
3021 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in equalizer_ctl_put()
3023 hda_nid_t nid = get_amp_nid(kcontrol); in equalizer_ctl_put()
3518 static int ca0132_vnode_switch_set(struct snd_kcontrol *kcontrol, in ca0132_vnode_switch_set() argument
3521 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_vnode_switch_set()
3522 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_vnode_switch_set()
3558 int dir = get_amp_direction(kcontrol); in ca0132_vnode_switch_set()
3559 int ch = get_amp_channels(kcontrol); in ca0132_vnode_switch_set()
3563 pval = kcontrol->private_value; in ca0132_vnode_switch_set()
3564 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(shared_nid, ch, in ca0132_vnode_switch_set()
3566 ret = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in ca0132_vnode_switch_set()
3567 kcontrol->private_value = pval; in ca0132_vnode_switch_set()
3575 static int ca0132_voicefx_info(struct snd_kcontrol *kcontrol, in ca0132_voicefx_info() argument
3591 static int ca0132_voicefx_get(struct snd_kcontrol *kcontrol, in ca0132_voicefx_get() argument
3594 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_voicefx_get()
3601 static int ca0132_voicefx_put(struct snd_kcontrol *kcontrol, in ca0132_voicefx_put() argument
3604 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_voicefx_put()
3638 static int ca0132_switch_get(struct snd_kcontrol *kcontrol, in ca0132_switch_get() argument
3641 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_switch_get()
3643 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_switch_get()
3644 int ch = get_amp_channels(kcontrol); in ca0132_switch_get()
3675 static int ca0132_switch_put(struct snd_kcontrol *kcontrol, in ca0132_switch_put() argument
3678 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_switch_put()
3680 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_switch_put()
3681 int ch = get_amp_channels(kcontrol); in ca0132_switch_put()
3699 changed = ca0132_vnode_switch_set(kcontrol, ucontrol); in ca0132_switch_put()
3743 static int ca0132_volume_info(struct snd_kcontrol *kcontrol, in ca0132_volume_info() argument
3746 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_volume_info()
3748 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_volume_info()
3749 int ch = get_amp_channels(kcontrol); in ca0132_volume_info()
3750 int dir = get_amp_direction(kcontrol); in ca0132_volume_info()
3759 pval = kcontrol->private_value; in ca0132_volume_info()
3760 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); in ca0132_volume_info()
3761 err = snd_hda_mixer_amp_volume_info(kcontrol, uinfo); in ca0132_volume_info()
3762 kcontrol->private_value = pval; in ca0132_volume_info()
3769 pval = kcontrol->private_value; in ca0132_volume_info()
3770 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); in ca0132_volume_info()
3771 err = snd_hda_mixer_amp_volume_info(kcontrol, uinfo); in ca0132_volume_info()
3772 kcontrol->private_value = pval; in ca0132_volume_info()
3776 err = snd_hda_mixer_amp_volume_info(kcontrol, uinfo); in ca0132_volume_info()
3781 static int ca0132_volume_get(struct snd_kcontrol *kcontrol, in ca0132_volume_get() argument
3784 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_volume_get()
3786 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_volume_get()
3787 int ch = get_amp_channels(kcontrol); in ca0132_volume_get()
3802 static int ca0132_volume_put(struct snd_kcontrol *kcontrol, in ca0132_volume_put() argument
3805 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_volume_put()
3807 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_volume_put()
3808 int ch = get_amp_channels(kcontrol); in ca0132_volume_put()
3827 int dir = get_amp_direction(kcontrol); in ca0132_volume_put()
3832 pval = kcontrol->private_value; in ca0132_volume_put()
3833 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(shared_nid, ch, in ca0132_volume_put()
3835 changed = snd_hda_mixer_amp_volume_put(kcontrol, ucontrol); in ca0132_volume_put()
3836 kcontrol->private_value = pval; in ca0132_volume_put()
3844 static int ca0132_volume_tlv(struct snd_kcontrol *kcontrol, int op_flag, in ca0132_volume_tlv() argument
3847 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_volume_tlv()
3849 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_volume_tlv()
3850 int ch = get_amp_channels(kcontrol); in ca0132_volume_tlv()
3851 int dir = get_amp_direction(kcontrol); in ca0132_volume_tlv()
3860 pval = kcontrol->private_value; in ca0132_volume_tlv()
3861 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); in ca0132_volume_tlv()
3862 err = snd_hda_mixer_amp_tlv(kcontrol, op_flag, size, tlv); in ca0132_volume_tlv()
3863 kcontrol->private_value = pval; in ca0132_volume_tlv()
3870 pval = kcontrol->private_value; in ca0132_volume_tlv()
3871 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); in ca0132_volume_tlv()
3872 err = snd_hda_mixer_amp_tlv(kcontrol, op_flag, size, tlv); in ca0132_volume_tlv()
3873 kcontrol->private_value = pval; in ca0132_volume_tlv()
3877 err = snd_hda_mixer_amp_tlv(kcontrol, op_flag, size, tlv); in ca0132_volume_tlv()