]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek: reset eapd coeff to default value for alc287
authorHui Wang <hui.wang@canonical.com>
Fri, 7 May 2021 02:44:52 +0000 (10:44 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 7 May 2021 08:29:05 +0000 (10:29 +0200)
commit585949dde6538456d6e3b95ab87b7f60f641851c
treeaf4567aa2eeee60a3d9b3a9c26d3986a22f95dd5
parentd993828096dcdfabd44f27986d27cd9bf30b27d8
ALSA: hda/realtek: reset eapd coeff to default value for alc287

Ubuntu users reported an audio bug on the Lenovo Yoga Slim 7 14IIL05,
he installed dual OS (Windows + Linux), if he booted to the Linux
from Windows, the Speaker can't work well, it has crackling noise,
if he poweroff the machine first after Windows, the Speaker worked
well.

Before rebooting or shutdown from Windows, the Windows changes the
codec eapd coeff value, but the BIOS doesn't re-initialize its value,
when booting into the Linux from Windows, the eapd coeff value is not
correct. To fix it, set the codec default value to that coeff register
in the alsa driver.

BugLink: http://bugs.launchpad.net/bugs/1925057
Suggested-by: Kailang Yang <kailang@realtek.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20210507024452.8300-1-hui.wang@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c