Lines Matching refs:kcontrol
963 static int hda_gen_mixer_mute_put(struct snd_kcontrol *kcontrol,
965 static int hda_gen_bind_mute_put(struct snd_kcontrol *kcontrol,
1097 static void sync_auto_mute_bits(struct snd_kcontrol *kcontrol, in sync_auto_mute_bits() argument
1100 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in sync_auto_mute_bits()
1104 hda_nid_t nid = get_amp_nid(kcontrol); in sync_auto_mute_bits()
1111 static int hda_gen_mixer_mute_put(struct snd_kcontrol *kcontrol, in hda_gen_mixer_mute_put() argument
1114 sync_auto_mute_bits(kcontrol, ucontrol); in hda_gen_mixer_mute_put()
1115 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in hda_gen_mixer_mute_put()
1118 static int hda_gen_bind_mute_put(struct snd_kcontrol *kcontrol, in hda_gen_bind_mute_put() argument
1121 sync_auto_mute_bits(kcontrol, ucontrol); in hda_gen_bind_mute_put()
1122 return snd_hda_mixer_bind_switch_put(kcontrol, ucontrol); in hda_gen_bind_mute_put()
2182 static int indep_hp_info(struct snd_kcontrol *kcontrol, in indep_hp_info() argument
2185 return snd_hda_enum_bool_helper_info(kcontrol, uinfo); in indep_hp_info()
2188 static int indep_hp_get(struct snd_kcontrol *kcontrol, in indep_hp_get() argument
2191 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in indep_hp_get()
2201 static int indep_hp_put(struct snd_kcontrol *kcontrol, in indep_hp_put() argument
2204 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in indep_hp_put()
2286 static int ch_mode_info(struct snd_kcontrol *kcontrol, in ch_mode_info() argument
2289 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_info()
2303 static int ch_mode_get(struct snd_kcontrol *kcontrol, in ch_mode_get() argument
2306 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_get()
2361 static int ch_mode_put(struct snd_kcontrol *kcontrol, in ch_mode_put() argument
2364 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_put()
2408 static int loopback_mixing_get(struct snd_kcontrol *kcontrol, in loopback_mixing_get() argument
2411 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in loopback_mixing_get()
2463 static int loopback_mixing_put(struct snd_kcontrol *kcontrol, in loopback_mixing_put() argument
2466 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in loopback_mixing_put()
2629 static int out_jack_mode_info(struct snd_kcontrol *kcontrol, in out_jack_mode_info() argument
2632 return snd_hda_enum_helper_info(kcontrol, uinfo, 2, out_jack_texts); in out_jack_mode_info()
2635 static int out_jack_mode_get(struct snd_kcontrol *kcontrol, in out_jack_mode_get() argument
2638 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in out_jack_mode_get()
2639 hda_nid_t nid = kcontrol->private_value; in out_jack_mode_get()
2647 static int out_jack_mode_put(struct snd_kcontrol *kcontrol, in out_jack_mode_put() argument
2650 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in out_jack_mode_put()
2651 hda_nid_t nid = kcontrol->private_value; in out_jack_mode_put()
2782 static int in_jack_mode_info(struct snd_kcontrol *kcontrol, in in_jack_mode_info() argument
2785 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_info()
2786 hda_nid_t nid = kcontrol->private_value; in in_jack_mode_info()
2789 snd_hda_enum_helper_info(kcontrol, uinfo, hweight32(vref_caps), in in_jack_mode_info()
2797 static int in_jack_mode_get(struct snd_kcontrol *kcontrol, in in_jack_mode_get() argument
2800 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_get()
2801 hda_nid_t nid = kcontrol->private_value; in in_jack_mode_get()
2810 static int in_jack_mode_put(struct snd_kcontrol *kcontrol, in in_jack_mode_put() argument
2813 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_put()
2814 hda_nid_t nid = kcontrol->private_value; in in_jack_mode_put()
2875 static int hp_mic_jack_mode_info(struct snd_kcontrol *kcontrol, in hp_mic_jack_mode_info() argument
2878 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_info()
2879 hda_nid_t nid = kcontrol->private_value; in hp_mic_jack_mode_info()
2930 static int hp_mic_jack_mode_get(struct snd_kcontrol *kcontrol, in hp_mic_jack_mode_get() argument
2933 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_get()
2934 hda_nid_t nid = kcontrol->private_value; in hp_mic_jack_mode_get()
2940 static int hp_mic_jack_mode_put(struct snd_kcontrol *kcontrol, in hp_mic_jack_mode_put() argument
2943 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_put()
2944 hda_nid_t nid = kcontrol->private_value; in hp_mic_jack_mode_put()
3381 static int mux_enum_info(struct snd_kcontrol *kcontrol, in mux_enum_info() argument
3384 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_info()
3389 static int mux_enum_get(struct snd_kcontrol *kcontrol, in mux_enum_get() argument
3392 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_get()
3395 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in mux_enum_get()
3401 static int mux_enum_put(struct snd_kcontrol *kcontrol, in mux_enum_put() argument
3404 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_put()
3405 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in mux_enum_put()
3422 typedef int (*put_call_t)(struct snd_kcontrol *kcontrol,
3426 static int cap_put_caller(struct snd_kcontrol *kcontrol, in cap_put_caller() argument
3430 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cap_put_caller()
3437 adc_idx = kcontrol->id.index; in cap_put_caller()
3443 kcontrol->private_value = path->ctls[type]; in cap_put_caller()
3444 err = func(kcontrol, ucontrol); in cap_put_caller()
3450 spec->cap_sync_hook(codec, kcontrol, ucontrol); in cap_put_caller()
3459 static int cap_vol_put(struct snd_kcontrol *kcontrol, in cap_vol_put() argument
3462 return cap_put_caller(kcontrol, ucontrol, in cap_vol_put()
3483 static int cap_sw_put(struct snd_kcontrol *kcontrol, in cap_sw_put() argument
3486 return cap_put_caller(kcontrol, ucontrol, in cap_sw_put()
3559 static int cap_single_sw_put(struct snd_kcontrol *kcontrol, in cap_single_sw_put() argument
3562 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cap_single_sw_put()
3566 ret = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in cap_single_sw_put()
3571 spec->cap_sync_hook(codec, kcontrol, ucontrol); in cap_single_sw_put()
4484 static int automute_mode_info(struct snd_kcontrol *kcontrol, in automute_mode_info() argument
4487 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_info()
4494 return snd_hda_enum_helper_info(kcontrol, uinfo, 3, texts3); in automute_mode_info()
4495 return snd_hda_enum_bool_helper_info(kcontrol, uinfo); in automute_mode_info()
4498 static int automute_mode_get(struct snd_kcontrol *kcontrol, in automute_mode_get() argument
4501 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_get()
4513 static int automute_mode_put(struct snd_kcontrol *kcontrol, in automute_mode_put() argument
4516 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_put()