ALSA: hda/realtek: Add quirk for TongFang PHxTxX1
authorWerner Sembach <wse@tuxedocomputers.com>
Wed, 6 Oct 2021 13:04:15 +0000 (15:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Oct 2021 13:59:29 +0000 (15:59 +0200)
commitdd6dd6e3c791db7fdbc5433ec7e450717aa3a0ce
tree38b70305bb8a7ecfa536ee224780912529eaf72e
parent5aec98913095ed3b4424ed6c5fdeb6964e9734da
ALSA: hda/realtek: Add quirk for TongFang PHxTxX1

This applies a SND_PCI_QUIRK(...) to the TongFang PHxTxX1 barebone. This
fixes the issue of the internal Microphone not working after booting
another OS.

When booting a certain another OS this barebone keeps some coeff settings
even after a cold shutdown. These coeffs prevent the microphone detection
from working in Linux, making the Laptop think that there is always an
external microphone plugged-in and therefore preventing the use of the
internal one.

The relevant indexes and values where gathered by naively diff-ing and
reading a working and a non-working coeff dump.

Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20211006130415.538243-1-wse@tuxedocomputers.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c