ALSA: hda - Apply ALC269_FIXUP_NO_SHUTUP on HDA_FIXUP_ACT_PROBE
authorGabriele Mazzotta <gabriele.mzt@gmail.com>
Sat, 24 Dec 2016 18:50:00 +0000 (19:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Dec 2016 15:13:56 +0000 (16:13 +0100)
Setting shutup when the action is HDA_FIXUP_ACT_PRE_PROBE might
not have the desired effect since it could be overridden by
another more generic shutup function. Prevent this by setting
the more specific shutup function on HDA_FIXUP_ACT_PROBE.

Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 9448daff9d8b55d5de49ef9a4ff66fd9e2a80f6b..937c2bbe8b509f753e40b5763d623fe0cad0a7ee 100644 (file)
@@ -4400,7 +4400,7 @@ static void alc_no_shutup(struct hda_codec *codec)
 static void alc_fixup_no_shutup(struct hda_codec *codec,
                                const struct hda_fixup *fix, int action)
 {
-       if (action == HDA_FIXUP_ACT_PRE_PROBE) {
+       if (action == HDA_FIXUP_ACT_PROBE) {
                struct alc_spec *spec = codec->spec;
                spec->shutup = alc_no_shutup;
        }