Lines Matching refs:kcontrol
2948 static int tuning_ctl_get(struct snd_kcontrol *kcontrol, in tuning_ctl_get() argument
2951 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in tuning_ctl_get()
2953 hda_nid_t nid = get_amp_nid(kcontrol); in tuning_ctl_get()
2961 static int voice_focus_ctl_info(struct snd_kcontrol *kcontrol, in voice_focus_ctl_info() argument
2964 int chs = get_amp_channels(kcontrol); in voice_focus_ctl_info()
2974 static int voice_focus_ctl_put(struct snd_kcontrol *kcontrol, in voice_focus_ctl_put() argument
2977 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in voice_focus_ctl_put()
2979 hda_nid_t nid = get_amp_nid(kcontrol); in voice_focus_ctl_put()
2996 static int mic_svm_ctl_info(struct snd_kcontrol *kcontrol, in mic_svm_ctl_info() argument
2999 int chs = get_amp_channels(kcontrol); in mic_svm_ctl_info()
3009 static int mic_svm_ctl_put(struct snd_kcontrol *kcontrol, in mic_svm_ctl_put() argument
3012 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mic_svm_ctl_put()
3014 hda_nid_t nid = get_amp_nid(kcontrol); in mic_svm_ctl_put()
3031 static int equalizer_ctl_info(struct snd_kcontrol *kcontrol, in equalizer_ctl_info() argument
3034 int chs = get_amp_channels(kcontrol); in equalizer_ctl_info()
3044 static int equalizer_ctl_put(struct snd_kcontrol *kcontrol, in equalizer_ctl_put() argument
3047 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in equalizer_ctl_put()
3049 hda_nid_t nid = get_amp_nid(kcontrol); in equalizer_ctl_put()
3544 static int ca0132_vnode_switch_set(struct snd_kcontrol *kcontrol, in ca0132_vnode_switch_set() argument
3547 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_vnode_switch_set()
3548 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_vnode_switch_set()
3584 int dir = get_amp_direction(kcontrol); in ca0132_vnode_switch_set()
3585 int ch = get_amp_channels(kcontrol); in ca0132_vnode_switch_set()
3589 pval = kcontrol->private_value; in ca0132_vnode_switch_set()
3590 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(shared_nid, ch, in ca0132_vnode_switch_set()
3592 ret = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in ca0132_vnode_switch_set()
3593 kcontrol->private_value = pval; in ca0132_vnode_switch_set()
3601 static int ca0132_voicefx_info(struct snd_kcontrol *kcontrol, in ca0132_voicefx_info() argument
3617 static int ca0132_voicefx_get(struct snd_kcontrol *kcontrol, in ca0132_voicefx_get() argument
3620 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_voicefx_get()
3627 static int ca0132_voicefx_put(struct snd_kcontrol *kcontrol, in ca0132_voicefx_put() argument
3630 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_voicefx_put()
3664 static int ca0132_switch_get(struct snd_kcontrol *kcontrol, in ca0132_switch_get() argument
3667 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_switch_get()
3669 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_switch_get()
3670 int ch = get_amp_channels(kcontrol); in ca0132_switch_get()
3701 static int ca0132_switch_put(struct snd_kcontrol *kcontrol, in ca0132_switch_put() argument
3704 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_switch_put()
3706 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_switch_put()
3707 int ch = get_amp_channels(kcontrol); in ca0132_switch_put()
3725 changed = ca0132_vnode_switch_set(kcontrol, ucontrol); in ca0132_switch_put()
3769 static int ca0132_volume_info(struct snd_kcontrol *kcontrol, in ca0132_volume_info() argument
3772 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_volume_info()
3774 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_volume_info()
3775 int ch = get_amp_channels(kcontrol); in ca0132_volume_info()
3776 int dir = get_amp_direction(kcontrol); in ca0132_volume_info()
3785 pval = kcontrol->private_value; in ca0132_volume_info()
3786 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); in ca0132_volume_info()
3787 err = snd_hda_mixer_amp_volume_info(kcontrol, uinfo); in ca0132_volume_info()
3788 kcontrol->private_value = pval; in ca0132_volume_info()
3795 pval = kcontrol->private_value; in ca0132_volume_info()
3796 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); in ca0132_volume_info()
3797 err = snd_hda_mixer_amp_volume_info(kcontrol, uinfo); in ca0132_volume_info()
3798 kcontrol->private_value = pval; in ca0132_volume_info()
3802 err = snd_hda_mixer_amp_volume_info(kcontrol, uinfo); in ca0132_volume_info()
3807 static int ca0132_volume_get(struct snd_kcontrol *kcontrol, in ca0132_volume_get() argument
3810 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_volume_get()
3812 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_volume_get()
3813 int ch = get_amp_channels(kcontrol); in ca0132_volume_get()
3828 static int ca0132_volume_put(struct snd_kcontrol *kcontrol, in ca0132_volume_put() argument
3831 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_volume_put()
3833 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_volume_put()
3834 int ch = get_amp_channels(kcontrol); in ca0132_volume_put()
3853 int dir = get_amp_direction(kcontrol); in ca0132_volume_put()
3858 pval = kcontrol->private_value; in ca0132_volume_put()
3859 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(shared_nid, ch, in ca0132_volume_put()
3861 changed = snd_hda_mixer_amp_volume_put(kcontrol, ucontrol); in ca0132_volume_put()
3862 kcontrol->private_value = pval; in ca0132_volume_put()
3870 static int ca0132_volume_tlv(struct snd_kcontrol *kcontrol, int op_flag, in ca0132_volume_tlv() argument
3873 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ca0132_volume_tlv()
3875 hda_nid_t nid = get_amp_nid(kcontrol); in ca0132_volume_tlv()
3876 int ch = get_amp_channels(kcontrol); in ca0132_volume_tlv()
3877 int dir = get_amp_direction(kcontrol); in ca0132_volume_tlv()
3886 pval = kcontrol->private_value; in ca0132_volume_tlv()
3887 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); in ca0132_volume_tlv()
3888 err = snd_hda_mixer_amp_tlv(kcontrol, op_flag, size, tlv); in ca0132_volume_tlv()
3889 kcontrol->private_value = pval; in ca0132_volume_tlv()
3896 pval = kcontrol->private_value; in ca0132_volume_tlv()
3897 kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); in ca0132_volume_tlv()
3898 err = snd_hda_mixer_amp_tlv(kcontrol, op_flag, size, tlv); in ca0132_volume_tlv()
3899 kcontrol->private_value = pval; in ca0132_volume_tlv()
3903 err = snd_hda_mixer_amp_tlv(kcontrol, op_flag, size, tlv); in ca0132_volume_tlv()