]> git.itanic.dy.fi Git - linux-stable/commit
ALSA: hda/realtek - Fix unexpected init_amp override
authorTakashi Iwai <tiwai@suse.de>
Sat, 18 Apr 2020 19:06:39 +0000 (21:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 18 Apr 2020 19:10:09 +0000 (21:10 +0200)
commit67791202c5e069cf2ba51db0718d56c634709e78
tree2e131784592037e991121bdab0639a57c17243fd
parent1c826792586f526a5a5cd21d55aad388f5bb0b23
ALSA: hda/realtek - Fix unexpected init_amp override

The commit 1c76aa5fb48d ("ALSA: hda/realtek - Allow skipping
spec->init_amp detection") changed the way to assign spec->init_amp
field that specifies the way to initialize the amp.  Along with the
change, the commit also replaced a few fixups that set spec->init_amp
in HDA_FIXUP_ACT_PROBE with HDA_FIXUP_ACT_PRE_PROBE.  This was rather
aligning to the other fixups, and not supposed to change the actual
behavior.

However, this change turned out to cause a regression on FSC S7020,
which hit exactly the above.  The reason was that there is still one
place that overrides spec->init_amp after HDA_FIXUP_ACT_PRE_PROBE
call, namely in alc_ssid_check().

This patch fixes the regression by adding the proper spec->init_amp
override check, i.e. verifying whether it's still ALC_INIT_UNDEFINED.

Fixes: 1c76aa5fb48d ("ALSA: hda/realtek - Allow skipping spec->init_amp detection")
Cc: <stable@vger.kernel.org>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207329
Link: https://lore.kernel.org/r/20200418190639.10082-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c