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,
1087 static void sync_auto_mute_bits(struct snd_kcontrol *kcontrol,
1090 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1094 hda_nid_t nid = get_amp_nid(kcontrol);
1101 static int hda_gen_mixer_mute_put(struct snd_kcontrol *kcontrol,
1104 sync_auto_mute_bits(kcontrol, ucontrol);
1105 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol);
1114 static int hda_gen_bind_mute_get(struct snd_kcontrol *kcontrol,
1117 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1122 pval = kcontrol->private_value;
1123 kcontrol->private_value = pval & ~AMP_VAL_IDX_MASK; /* index 0 */
1124 err = snd_hda_mixer_amp_switch_get(kcontrol, ucontrol);
1125 kcontrol->private_value = pval;
1130 static int hda_gen_bind_mute_put(struct snd_kcontrol *kcontrol,
1133 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
1137 sync_auto_mute_bits(kcontrol, ucontrol);
1140 pval = kcontrol->private_value;
1143 kcontrol->private_value = (pval & ~AMP_VAL_IDX_MASK) |
1145 err = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol);
1150 kcontrol->private_value = pval;
2225 static int indep_hp_info(struct snd_kcontrol *kcontrol,
2228 return snd_hda_enum_bool_helper_info(kcontrol, uinfo);
2231 static int indep_hp_get(struct snd_kcontrol *kcontrol,
2234 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2244 static int indep_hp_put(struct snd_kcontrol *kcontrol,
2247 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2329 static int ch_mode_info(struct snd_kcontrol *kcontrol,
2332 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2346 static int ch_mode_get(struct snd_kcontrol *kcontrol,
2349 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2404 static int ch_mode_put(struct snd_kcontrol *kcontrol,
2407 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2451 static int loopback_mixing_get(struct snd_kcontrol *kcontrol,
2454 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2506 static int loopback_mixing_put(struct snd_kcontrol *kcontrol,
2509 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2668 static int out_jack_mode_info(struct snd_kcontrol *kcontrol,
2671 return snd_hda_enum_helper_info(kcontrol, uinfo, 2, out_jack_texts);
2674 static int out_jack_mode_get(struct snd_kcontrol *kcontrol,
2677 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2678 hda_nid_t nid = kcontrol->private_value;
2686 static int out_jack_mode_put(struct snd_kcontrol *kcontrol,
2689 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2690 hda_nid_t nid = kcontrol->private_value;
2821 static int in_jack_mode_info(struct snd_kcontrol *kcontrol,
2824 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2825 hda_nid_t nid = kcontrol->private_value;
2828 snd_hda_enum_helper_info(kcontrol, uinfo, hweight32(vref_caps),
2836 static int in_jack_mode_get(struct snd_kcontrol *kcontrol,
2839 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2840 hda_nid_t nid = kcontrol->private_value;
2849 static int in_jack_mode_put(struct snd_kcontrol *kcontrol,
2852 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2853 hda_nid_t nid = kcontrol->private_value;
2914 static int hp_mic_jack_mode_info(struct snd_kcontrol *kcontrol,
2917 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2918 hda_nid_t nid = kcontrol->private_value;
2969 static int hp_mic_jack_mode_get(struct snd_kcontrol *kcontrol,
2972 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2973 hda_nid_t nid = kcontrol->private_value;
2979 static int hp_mic_jack_mode_put(struct snd_kcontrol *kcontrol,
2982 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
2983 hda_nid_t nid = kcontrol->private_value;
3421 static int mux_enum_info(struct snd_kcontrol *kcontrol,
3424 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
3429 static int mux_enum_get(struct snd_kcontrol *kcontrol,
3432 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
3435 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
3441 static int mux_enum_put(struct snd_kcontrol *kcontrol,
3444 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
3445 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
3462 typedef int (*put_call_t)(struct snd_kcontrol *kcontrol,
3466 static int cap_put_caller(struct snd_kcontrol *kcontrol,
3470 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
3477 adc_idx = kcontrol->id.index;
3483 kcontrol->private_value = path->ctls[type];
3484 ret = func(kcontrol, ucontrol);
3494 spec->cap_sync_hook(codec, kcontrol, ucontrol);
3503 static int cap_vol_put(struct snd_kcontrol *kcontrol,
3506 return cap_put_caller(kcontrol, ucontrol,
3527 static int cap_sw_put(struct snd_kcontrol *kcontrol,
3530 return cap_put_caller(kcontrol, ucontrol,
3604 static int cap_single_sw_put(struct snd_kcontrol *kcontrol,
3607 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
3611 ret = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol);
3616 spec->cap_sync_hook(codec, kcontrol, ucontrol);
3653 /* Make independent right kcontrol */
4634 static int automute_mode_info(struct snd_kcontrol *kcontrol,
4637 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
4644 return snd_hda_enum_helper_info(kcontrol, uinfo, 3, texts3);
4645 return snd_hda_enum_bool_helper_info(kcontrol, uinfo);
4648 static int automute_mode_get(struct snd_kcontrol *kcontrol,
4651 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
4663 static int automute_mode_put(struct snd_kcontrol *kcontrol,
4666 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);