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)
commit619764cc2ec9ce1283a8bbcd89a1376a7c68293b
treedd17bf7fcc4ebf0361a937c076ceca470d35e0a6
parentb6409dd6bdc03aa178bbff0d80db2a30d29b63ac
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: dd6dd6e3c791 ("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