Lines Matching refs:kcontrol

961 static int hda_gen_mixer_mute_put(struct snd_kcontrol *kcontrol,
963 static int hda_gen_bind_mute_put(struct snd_kcontrol *kcontrol,
1095 static void sync_auto_mute_bits(struct snd_kcontrol *kcontrol, in sync_auto_mute_bits() argument
1098 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in sync_auto_mute_bits()
1102 hda_nid_t nid = get_amp_nid(kcontrol); in sync_auto_mute_bits()
1109 static int hda_gen_mixer_mute_put(struct snd_kcontrol *kcontrol, in hda_gen_mixer_mute_put() argument
1112 sync_auto_mute_bits(kcontrol, ucontrol); in hda_gen_mixer_mute_put()
1113 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in hda_gen_mixer_mute_put()
1116 static int hda_gen_bind_mute_put(struct snd_kcontrol *kcontrol, in hda_gen_bind_mute_put() argument
1119 sync_auto_mute_bits(kcontrol, ucontrol); in hda_gen_bind_mute_put()
1120 return snd_hda_mixer_bind_switch_put(kcontrol, ucontrol); in hda_gen_bind_mute_put()
2180 static int indep_hp_info(struct snd_kcontrol *kcontrol, in indep_hp_info() argument
2183 return snd_hda_enum_bool_helper_info(kcontrol, uinfo); in indep_hp_info()
2186 static int indep_hp_get(struct snd_kcontrol *kcontrol, in indep_hp_get() argument
2189 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in indep_hp_get()
2199 static int indep_hp_put(struct snd_kcontrol *kcontrol, in indep_hp_put() argument
2202 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in indep_hp_put()
2284 static int ch_mode_info(struct snd_kcontrol *kcontrol, in ch_mode_info() argument
2287 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_info()
2301 static int ch_mode_get(struct snd_kcontrol *kcontrol, in ch_mode_get() argument
2304 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_get()
2359 static int ch_mode_put(struct snd_kcontrol *kcontrol, in ch_mode_put() argument
2362 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ch_mode_put()
2406 static int loopback_mixing_get(struct snd_kcontrol *kcontrol, in loopback_mixing_get() argument
2409 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in loopback_mixing_get()
2461 static int loopback_mixing_put(struct snd_kcontrol *kcontrol, in loopback_mixing_put() argument
2464 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in loopback_mixing_put()
2627 static int out_jack_mode_info(struct snd_kcontrol *kcontrol, in out_jack_mode_info() argument
2630 return snd_hda_enum_helper_info(kcontrol, uinfo, 2, out_jack_texts); in out_jack_mode_info()
2633 static int out_jack_mode_get(struct snd_kcontrol *kcontrol, in out_jack_mode_get() argument
2636 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in out_jack_mode_get()
2637 hda_nid_t nid = kcontrol->private_value; in out_jack_mode_get()
2645 static int out_jack_mode_put(struct snd_kcontrol *kcontrol, in out_jack_mode_put() argument
2648 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in out_jack_mode_put()
2649 hda_nid_t nid = kcontrol->private_value; in out_jack_mode_put()
2780 static int in_jack_mode_info(struct snd_kcontrol *kcontrol, in in_jack_mode_info() argument
2783 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_info()
2784 hda_nid_t nid = kcontrol->private_value; in in_jack_mode_info()
2787 snd_hda_enum_helper_info(kcontrol, uinfo, hweight32(vref_caps), in in_jack_mode_info()
2795 static int in_jack_mode_get(struct snd_kcontrol *kcontrol, in in_jack_mode_get() argument
2798 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_get()
2799 hda_nid_t nid = kcontrol->private_value; in in_jack_mode_get()
2808 static int in_jack_mode_put(struct snd_kcontrol *kcontrol, in in_jack_mode_put() argument
2811 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in in_jack_mode_put()
2812 hda_nid_t nid = kcontrol->private_value; in in_jack_mode_put()
2873 static int hp_mic_jack_mode_info(struct snd_kcontrol *kcontrol, in hp_mic_jack_mode_info() argument
2876 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_info()
2877 hda_nid_t nid = kcontrol->private_value; in hp_mic_jack_mode_info()
2928 static int hp_mic_jack_mode_get(struct snd_kcontrol *kcontrol, in hp_mic_jack_mode_get() argument
2931 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_get()
2932 hda_nid_t nid = kcontrol->private_value; in hp_mic_jack_mode_get()
2938 static int hp_mic_jack_mode_put(struct snd_kcontrol *kcontrol, in hp_mic_jack_mode_put() argument
2941 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hp_mic_jack_mode_put()
2942 hda_nid_t nid = kcontrol->private_value; in hp_mic_jack_mode_put()
3379 static int mux_enum_info(struct snd_kcontrol *kcontrol, in mux_enum_info() argument
3382 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_info()
3387 static int mux_enum_get(struct snd_kcontrol *kcontrol, in mux_enum_get() argument
3390 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_get()
3393 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in mux_enum_get()
3399 static int mux_enum_put(struct snd_kcontrol *kcontrol, in mux_enum_put() argument
3402 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in mux_enum_put()
3403 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in mux_enum_put()
3420 typedef int (*put_call_t)(struct snd_kcontrol *kcontrol,
3424 static int cap_put_caller(struct snd_kcontrol *kcontrol, in cap_put_caller() argument
3428 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cap_put_caller()
3435 adc_idx = kcontrol->id.index; in cap_put_caller()
3441 kcontrol->private_value = path->ctls[type]; in cap_put_caller()
3442 err = func(kcontrol, ucontrol); in cap_put_caller()
3448 spec->cap_sync_hook(codec, kcontrol, ucontrol); in cap_put_caller()
3457 static int cap_vol_put(struct snd_kcontrol *kcontrol, in cap_vol_put() argument
3460 return cap_put_caller(kcontrol, ucontrol, in cap_vol_put()
3481 static int cap_sw_put(struct snd_kcontrol *kcontrol, in cap_sw_put() argument
3484 return cap_put_caller(kcontrol, ucontrol, in cap_sw_put()
3557 static int cap_single_sw_put(struct snd_kcontrol *kcontrol, in cap_single_sw_put() argument
3560 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cap_single_sw_put()
3564 ret = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in cap_single_sw_put()
3569 spec->cap_sync_hook(codec, kcontrol, ucontrol); in cap_single_sw_put()
4482 static int automute_mode_info(struct snd_kcontrol *kcontrol, in automute_mode_info() argument
4485 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_info()
4492 return snd_hda_enum_helper_info(kcontrol, uinfo, 3, texts3); in automute_mode_info()
4493 return snd_hda_enum_bool_helper_info(kcontrol, uinfo); in automute_mode_info()
4496 static int automute_mode_get(struct snd_kcontrol *kcontrol, in automute_mode_get() argument
4499 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_get()
4511 static int automute_mode_put(struct snd_kcontrol *kcontrol, in automute_mode_put() argument
4514 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in automute_mode_put()