mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
ALSA: hda/conexant: Add pin config quirk for Huawei Matebook
The headphone jack is not detected on this Huawei Matebook (Conexant SN6140 codec). The BIOS incorrectly marks Pin 0x18 as [N/A], causing the driver to report hp_outs=0 and no "Headphones" output appears. Override the pin configuration for NID 0x18 to set it as a headphone jack, which restores proper detection and audio routing. Link: https://github.com/thesofproject/sof/issues/10687 Signed-off-by: Zhang Heng <zhangheng@kylinos.cn> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260807125857.678297-4-zhangheng@kylinos.cn
This commit is contained in:
parent
f2d08f3651
commit
d152afd1cd
|
|
@ -292,6 +292,7 @@ enum {
|
|||
CXT_PINCFG_TOP_SPEAKER,
|
||||
CXT_FIXUP_HP_A_U,
|
||||
CXT_FIXUP_ACER_SWIFT_HP,
|
||||
CXT_FIXUP_HUAWEI_MATEBOOK_HP,
|
||||
};
|
||||
|
||||
/* for hda_fixup_thinkpad_acpi() */
|
||||
|
|
@ -1035,6 +1036,13 @@ static const struct hda_fixup cxt_fixups[] = {
|
|||
{ }
|
||||
},
|
||||
},
|
||||
[CXT_FIXUP_HUAWEI_MATEBOOK_HP] = {
|
||||
.type = HDA_FIXUP_PINS,
|
||||
.v.pins = (const struct hda_pintbl[]) {
|
||||
{ 0x18, 0x03211020 }, /* Headphone */
|
||||
{ }
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static const struct hda_quirk cxt5045_fixups[] = {
|
||||
|
|
@ -1135,6 +1143,7 @@ static const struct hda_quirk cxt5066_fixups[] = {
|
|||
SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo G50-70", CXT_FIXUP_STEREO_DMIC),
|
||||
SND_PCI_QUIRK(0x17aa, 0x397b, "Lenovo S205", CXT_FIXUP_STEREO_DMIC),
|
||||
SND_PCI_QUIRK_VENDOR(0x17aa, "Thinkpad/Ideapad", CXT_FIXUP_LENOVO_XPAD_ACPI),
|
||||
SND_PCI_QUIRK(0x19e5, 0x3289, "Huawei Matebook", CXT_FIXUP_HUAWEI_MATEBOOK_HP),
|
||||
SND_PCI_QUIRK(0x1c06, 0x2011, "Lemote A1004", CXT_PINCFG_LEMOTE_A1004),
|
||||
SND_PCI_QUIRK(0x1c06, 0x2012, "Lemote A1205", CXT_PINCFG_LEMOTE_A1205),
|
||||
SND_PCI_QUIRK(0x1d05, 0x3012, "MECHREVO Wujie 15X Pro", CXT_FIXUP_HEADSET_MIC),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user