]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek: Fix quirk for TongFang PHxTxX1
authorWerner Sembach <wse@tuxedocomputers.com>
Thu, 2 Dec 2021 16:50:10 +0000 (17:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Dec 2021 13:37:37 +0000 (14:37 +0100)
commitef041d17dcd9c1d858d5fb0d78181b3b75ba50ae
treedd17bf7fcc4ebf0361a937c076ceca470d35e0a6
parent5da0b949991ca6aceb0c5e5bbdb12c641f093f16
ALSA: hda/realtek: Fix quirk for TongFang PHxTxX1

This fixes the SND_PCI_QUIRK(...) of the TongFang PHxTxX1 barebone. This
fixes the issue of sound not working after s3 suspend.

When waking up from s3 suspend the Coef 0x10 is set to 0x0220 instead of
0x0020. Setting the value manually makes the sound work again. This patch
does this automatically.

While being on it, I also fixed the comment formatting of the quirk and
shortened variable and function names.

Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Fixes: ea524114ebbd ("ALSA: hda/realtek: Add quirk for TongFang PHxTxX1")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20211202165010.876431-1-wse@tuxedocomputers.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c