Lines Matching defs:kcontrol
945 static int hda_gen_mixer_mute_put(struct snd_kcontrol *kcontrol,
947 static int hda_gen_bind_mute_get(struct snd_kcontrol *kcontrol,
949 static int hda_gen_bind_mute_put(struct snd_kcontrol *kcontrol,
1081 static void sync_auto_mute_bits(struct snd_kcontrol *kcontrol,
1084 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1088 hda_nid_t nid = get_amp_nid(kcontrol);
1095 static int hda_gen_mixer_mute_put(struct snd_kcontrol *kcontrol,
1098 sync_auto_mute_bits(kcontrol, ucontrol);
1099 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol);
1108 static int hda_gen_bind_mute_get(struct snd_kcontrol *kcontrol,
1111 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1116 pval = kcontrol->private_value;
1117 kcontrol->private_value = pval & ~AMP_VAL_IDX_MASK; /* index 0 */
1118 err = snd_hda_mixer_amp_switch_get(kcontrol, ucontrol);
1119 kcontrol->private_value = pval;
1124 static int hda_gen_bind_mute_put(struct snd_kcontrol *kcontrol,
1127 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1131 sync_auto_mute_bits(kcontrol, ucontrol);
1134 pval = kcontrol->private_value;
1137 kcontrol->private_value = (pval & ~AMP_VAL_IDX_MASK) |
1139 err = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol);
1144 kcontrol->private_value = pval;
2219 static int indep_hp_info(struct snd_kcontrol *kcontrol,
2222 return snd_hda_enum_bool_helper_info(kcontrol, uinfo);
2225 static int indep_hp_get(struct snd_kcontrol *kcontrol,
2228 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2238 static int indep_hp_put(struct snd_kcontrol *kcontrol,
2241 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2323 static int ch_mode_info(struct snd_kcontrol *kcontrol,
2326 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2340 static int ch_mode_get(struct snd_kcontrol *kcontrol,
2343 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2398 static int ch_mode_put(struct snd_kcontrol *kcontrol,
2401 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2445 static int loopback_mixing_get(struct snd_kcontrol *kcontrol,
2448 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2500 static int loopback_mixing_put(struct snd_kcontrol *kcontrol,
2503 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2662 static int out_jack_mode_info(struct snd_kcontrol *kcontrol,
2665 return snd_hda_enum_helper_info(kcontrol, uinfo, 2, out_jack_texts);
2668 static int out_jack_mode_get(struct snd_kcontrol *kcontrol,
2671 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2672 hda_nid_t nid = kcontrol->private_value;
2680 static int out_jack_mode_put(struct snd_kcontrol *kcontrol,
2683 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2684 hda_nid_t nid = kcontrol->private_value;
2815 static int in_jack_mode_info(struct snd_kcontrol *kcontrol,
2818 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2819 hda_nid_t nid = kcontrol->private_value;
2822 snd_hda_enum_helper_info(kcontrol, uinfo, hweight32(vref_caps),
2830 static int in_jack_mode_get(struct snd_kcontrol *kcontrol,
2833 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2834 hda_nid_t nid = kcontrol->private_value;
2843 static int in_jack_mode_put(struct snd_kcontrol *kcontrol,
2846 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2847 hda_nid_t nid = kcontrol->private_value;
2908 static int hp_mic_jack_mode_info(struct snd_kcontrol *kcontrol,
2911 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2912 hda_nid_t nid = kcontrol->private_value;
2963 static int hp_mic_jack_mode_get(struct snd_kcontrol *kcontrol,
2966 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2967 hda_nid_t nid = kcontrol->private_value;
2973 static int hp_mic_jack_mode_put(struct snd_kcontrol *kcontrol,
2976 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2977 hda_nid_t nid = kcontrol->private_value;
3415 static int mux_enum_info(struct snd_kcontrol *kcontrol,
3418 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
3423 static int mux_enum_get(struct snd_kcontrol *kcontrol,
3426 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
3429 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
3435 static int mux_enum_put(struct snd_kcontrol *kcontrol,
3438 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
3439 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
3456 typedef int (*put_call_t)(struct snd_kcontrol *kcontrol,
3460 static int cap_put_caller(struct snd_kcontrol *kcontrol,
3464 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
3471 adc_idx = kcontrol->id.index;
3477 kcontrol->private_value = path->ctls[type];
3478 ret = func(kcontrol, ucontrol);
3488 spec->cap_sync_hook(codec, kcontrol, ucontrol);
3497 static int cap_vol_put(struct snd_kcontrol *kcontrol,
3500 return cap_put_caller(kcontrol, ucontrol,
3521 static int cap_sw_put(struct snd_kcontrol *kcontrol,
3524 return cap_put_caller(kcontrol, ucontrol,
3597 static int cap_single_sw_put(struct snd_kcontrol *kcontrol,
3600 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
3604 ret = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol);
3609 spec->cap_sync_hook(codec, kcontrol, ucontrol);
3643 /* Make independent right kcontrol */
4017 struct snd_kcontrol *kcontrol,
4024 spec->micmute_led.old_hook(codec, kcontrol, ucontrol);
4028 mask = 1U << snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
4040 static int micmute_led_mode_info(struct snd_kcontrol *kcontrol,
4050 static int micmute_led_mode_get(struct snd_kcontrol *kcontrol,
4053 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
4060 static int micmute_led_mode_put(struct snd_kcontrol *kcontrol,
4063 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
4745 static int automute_mode_info(struct snd_kcontrol *kcontrol,
4748 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
4755 return snd_hda_enum_helper_info(kcontrol, uinfo, 3, texts3);
4756 return snd_hda_enum_bool_helper_info(kcontrol, uinfo);
4759 static int automute_mode_get(struct snd_kcontrol *kcontrol,
4762 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
4774 static int automute_mode_put(struct snd_kcontrol *kcontrol,
4777 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);