if (err < 0)
return err;
if (spec->vmaster_mute.hook)
- snd_hda_add_vmaster_hook(codec, &spec->vmaster_mute, true);
+ snd_hda_add_vmaster_hook(codec, &spec->vmaster_mute,
+ spec->vmaster_mute_enum);
}
free_kctls(spec); /* no longer needed */
unsigned int multi_cap_vol:1; /* allow multiple capture xxx volumes */
unsigned int inv_dmic_split:1; /* inverted dmic w/a for conexant */
unsigned int own_eapd_ctl:1; /* set EAPD by own function */
+ unsigned int vmaster_mute_enum:1; /* add vmaster mute mode enum */
/* for virtual master */
hda_nid_t vmaster_nid;
const struct alc_fixup *fix, int action)
{
struct alc_spec *spec = codec->spec;
- if (action == ALC_FIXUP_ACT_PROBE)
+ if (action == ALC_FIXUP_ACT_PROBE) {
spec->gen.vmaster_mute.hook = alc269_fixup_mic1_mute_hook;
+ spec->gen.vmaster_mute_enum = 1;
+ }
}
/* update mute-LED according to the speaker mute state via mic2 VREF pin */
const struct alc_fixup *fix, int action)
{
struct alc_spec *spec = codec->spec;
- if (action == ALC_FIXUP_ACT_PROBE)
+ if (action == ALC_FIXUP_ACT_PROBE) {
spec->gen.vmaster_mute.hook = alc269_fixup_mic2_mute_hook;
+ spec->gen.vmaster_mute_enum = 1;
+ }
}
static void alc271_hp_gate_mic_jack(struct hda_codec *codec,