]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab2431f6228b2935bb815feb5b86835cf477899d
treea58cb1a291a7f207d343a6633d2192a3640ca441
parentff83ef13c65277d0522133d119f8d22cda9e382a
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: 68b6d76e97045 ("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