]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.4.103/alsa-hda-apply-alc269_fixup_no_shutup-on-hda_fixup_act_probe.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.4.103 / alsa-hda-apply-alc269_fixup_no_shutup-on-hda_fixup_act_probe.patch
CommitLineData
18a2513c
GKH
1From foo@baz Tue Nov 28 10:56:34 CET 2017
2From: Gabriele Mazzotta <gabriele.mzt@gmail.com>
3Date: Sat, 24 Dec 2016 19:50:00 +0100
4Subject: ALSA: hda - Apply ALC269_FIXUP_NO_SHUTUP on HDA_FIXUP_ACT_PROBE
5
6From: Gabriele Mazzotta <gabriele.mzt@gmail.com>
7
8
9[ Upstream commit 972aa2c708703c21f14eb958b37e82aae2530e44 ]
10
11Setting shutup when the action is HDA_FIXUP_ACT_PRE_PROBE might
12not have the desired effect since it could be overridden by
13another more generic shutup function. Prevent this by setting
14the more specific shutup function on HDA_FIXUP_ACT_PROBE.
15
16Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
17Signed-off-by: Takashi Iwai <tiwai@suse.de>
18Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
19Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20---
21 sound/pci/hda/patch_realtek.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24--- a/sound/pci/hda/patch_realtek.c
25+++ b/sound/pci/hda/patch_realtek.c
26@@ -4404,7 +4404,7 @@ static void alc_no_shutup(struct hda_cod
27 static void alc_fixup_no_shutup(struct hda_codec *codec,
28 const struct hda_fixup *fix, int action)
29 {
30- if (action == HDA_FIXUP_ACT_PRE_PROBE) {
31+ if (action == HDA_FIXUP_ACT_PROBE) {
32 struct alc_spec *spec = codec->spec;
33 spec->shutup = alc_no_shutup;
34 }