mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ALSA: hda/realtek: Add fixup for Huawei MateBook X Pro 2019 (MACHR-WX9)
On the MACHR-WX9 (ALC256, PCI SSID 19e5:3e13) the BIOS pin table disables the main speaker pair (pin 0x14), so only the tweeters on 0x1b play. Reusing the MACH_WX9 (19e5:3204) pin table restores all four speakers. Pin 0x19 (headset mic) has broken presence detect on this board: it reports "plugged" even with the jack empty, so auto-mic routes capture to the empty jack and the internal mic goes silent. Setting NO_PRESENCE on 0x19 (0x04a11140) suppresses the false reading. Chaining to ALC269_FIXUP_HEADSET_MODE then infers headset-mic presence from the headphone jack (pin 0x21), whose detection works correctly. Add ALC256_FIXUP_HUAWEI_MACHR_WX9_PINS with the MACH_WX9 pin table, chained to ALC269_FIXUP_HEADSET_MODE, registered for PCI SSID 19e5:3e13. Closes: https://bugzilla.kernel.org/show_bug.cgi?id=222126 Signed-off-by: Zhang Heng <zhangheng@kylinos.cn> Link: https://patch.msgid.link/20261017095400.350164-1-zhangheng@kylinos.cn Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
54f82c0614
commit
11bdeb33df
|
|
@ -4321,6 +4321,7 @@ enum {
|
|||
ALC255_FIXUP_DUMMY_LINEOUT_VERB,
|
||||
ALC255_FIXUP_DELL_HEADSET_MIC,
|
||||
ALC256_FIXUP_HUAWEI_MACH_WX9_PINS,
|
||||
ALC256_FIXUP_HUAWEI_MACHR_WX9_PINS,
|
||||
ALC298_FIXUP_HUAWEI_MBX_STEREO,
|
||||
ALC295_FIXUP_HP_X360,
|
||||
ALC295_FIXUP_HP_PAVILION_X360,
|
||||
|
|
@ -5034,6 +5035,24 @@ static const struct hda_fixup alc269_fixups[] = {
|
|||
.chained = true,
|
||||
.chain_id = ALC255_FIXUP_MIC_MUTE_LED
|
||||
},
|
||||
[ALC256_FIXUP_HUAWEI_MACHR_WX9_PINS] = {
|
||||
.type = HDA_FIXUP_PINS,
|
||||
.v.pins = (const struct hda_pintbl[]) {
|
||||
{0x12, 0x90a60130},
|
||||
{0x13, 0x40000000},
|
||||
{0x14, 0x90170110},
|
||||
{0x18, 0x411111f0},
|
||||
{0x19, 0x04a11140}, /* use as headset mic, without its own jack detect */
|
||||
{0x1a, 0x411111f0},
|
||||
{0x1b, 0x90170112},
|
||||
{0x1d, 0x40759a05},
|
||||
{0x1e, 0x411111f0},
|
||||
{0x21, 0x04211020},
|
||||
{ }
|
||||
},
|
||||
.chained = true,
|
||||
.chain_id = ALC269_FIXUP_HEADSET_MODE
|
||||
},
|
||||
[ALC298_FIXUP_HUAWEI_MBX_STEREO] = {
|
||||
.type = HDA_FIXUP_FUNC,
|
||||
.v.func = alc298_fixup_huawei_mbx_stereo,
|
||||
|
|
@ -8636,6 +8655,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
|
|||
SND_PCI_QUIRK(0x19e5, 0x3204, "Huawei MACH-WX9", ALC256_FIXUP_HUAWEI_MACH_WX9_PINS),
|
||||
SND_PCI_QUIRK(0x19e5, 0x320f, "Huawei WRT-WX9 ", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
|
||||
SND_PCI_QUIRK(0x19e5, 0x3212, "Huawei KLV-WX9 ", ALC256_FIXUP_ACER_HEADSET_MIC),
|
||||
SND_PCI_QUIRK(0x19e5, 0x3e13, "Huawei MACHR-WX9", ALC256_FIXUP_HUAWEI_MACHR_WX9_PINS),
|
||||
SND_PCI_QUIRK(0x1a58, 0x2023, "Razer Blade 16 (2025)",
|
||||
ALC298_FIXUP_RAZER_BLADE16_2025_PINS),
|
||||
SND_PCI_QUIRK(0x1a58, 0x300e, "Razer Blade 16 (2025)",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user