]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: hda/realtek - EAPD turn on later
authorKailang Yang <kailang@realtek.com>
Fri, 26 Apr 2019 08:35:41 +0000 (16:35 +0800)
committerTakashi Iwai <tiwai@suse.de>
Sun, 28 Apr 2019 06:23:53 +0000 (08:23 +0200)
Let EAPD turn on after set pin output.

[ NOTE: This change is supposed to reduce the possible click noises at
  (runtime) PM resume.  The functionality should be same (i.e. the
  verbs are executed correctly) no matter which order is, so this
  should be safe to apply for all codecs -- tiwai ]

Signed-off-by: Kailang Yang <kailang@realtek.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 810479766090376fbb2f8ecdb6da6012fb4058a3..674ddff65bef0d19b2c7f9a981827a959feda8f1 100644 (file)
@@ -803,11 +803,10 @@ static int alc_init(struct hda_codec *codec)
        if (spec->init_hook)
                spec->init_hook(codec);
 
+       snd_hda_gen_init(codec);
        alc_fix_pll(codec);
        alc_auto_init_amp(codec, spec->init_amp);
 
-       snd_hda_gen_init(codec);
-
        snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_INIT);
 
        return 0;