ALSA: hda/realtek: Fix quirk for Clevo NJ51CU
authorWerner Sembach <wse@tuxedocomputers.com>
Wed, 15 Dec 2021 19:16:46 +0000 (20:16 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Dec 2021 19:19:42 +0000 (20:19 +0100)
commitedca7cc4b0accfa69dc032442fe0684e59c691b8
treea58cb1a291a7f207d343a6633d2192a3640ca441
parent39a8fc4971a00d22536aeb7d446ee4a97810611b
ALSA: hda/realtek: Fix quirk for Clevo NJ51CU

The Clevo NJ51CU comes either with the ALC293 or the ALC256 codec, but uses
the 0x8686 subproduct id in both cases. The ALC256 codec needs a different
quirk for the headset microphone working and and edditional quirk for sound
working after suspend and resume.

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

[ minor coding style fix by tiwai ]

Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Fixes: b5acfe152abaa ("ALSA: hda/realtek: Add some Clove SSID in the ALC293(ALC1220)")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20211215191646.844644-1-wse@tuxedocomputers.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c