]> 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)
commit7026d0ae610a332db629f31d2f7f6472300714f6
treea58cb1a291a7f207d343a6633d2192a3640ca441
parentf4da63c31186a283fe827f7c1fc845185816d466
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: 3eb56899067b5 ("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