]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-5.0/alsa-hda-realtek-eapd-turn-on-later.patch
Linux 4.19.45
[thirdparty/kernel/stable-queue.git] / queue-5.0 / alsa-hda-realtek-eapd-turn-on-later.patch
1 From 607ca3bd220f4022e6f5356026b19dafc363863a Mon Sep 17 00:00:00 2001
2 From: Kailang Yang <kailang@realtek.com>
3 Date: Fri, 26 Apr 2019 16:35:41 +0800
4 Subject: ALSA: hda/realtek - EAPD turn on later
5
6 From: Kailang Yang <kailang@realtek.com>
7
8 commit 607ca3bd220f4022e6f5356026b19dafc363863a upstream.
9
10 Let EAPD turn on after set pin output.
11
12 [ NOTE: This change is supposed to reduce the possible click noises at
13 (runtime) PM resume. The functionality should be same (i.e. the
14 verbs are executed correctly) no matter which order is, so this
15 should be safe to apply for all codecs -- tiwai ]
16
17 Signed-off-by: Kailang Yang <kailang@realtek.com>
18 Cc: <stable@vger.kernel.org>
19 Signed-off-by: Takashi Iwai <tiwai@suse.de>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21
22 ---
23 sound/pci/hda/patch_realtek.c | 3 +--
24 1 file changed, 1 insertion(+), 2 deletions(-)
25
26 --- a/sound/pci/hda/patch_realtek.c
27 +++ b/sound/pci/hda/patch_realtek.c
28 @@ -803,11 +803,10 @@ static int alc_init(struct hda_codec *co
29 if (spec->init_hook)
30 spec->init_hook(codec);
31
32 + snd_hda_gen_init(codec);
33 alc_fix_pll(codec);
34 alc_auto_init_amp(codec, spec->init_amp);
35
36 - snd_hda_gen_init(codec);
37 -
38 snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_INIT);
39
40 return 0;