Skip to content

Commit 696b0a9

Browse files
stuarthayhursttiwai
authored andcommitted
ALSA: hda/intel: Add MSI X870E Tomahawk to denylist by DMI ID
This motherboard uses USB audio instead, causing this driver to complain about "no codecs found!". Add it to the denylist to silence the warning. The first attempt only matched on the PCI device, but this caused issues for some laptops, so DMI match against the board as well. Signed-off-by: Stuart Hayhurst <stuart.a.hayhurst@gmail.com> Link: https://patch.msgid.link/20260327155737.21818-2-stuart.a.hayhurst@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent bac1e57 commit 696b0a9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

sound/hda/controllers/intel.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,6 +2085,11 @@ static struct pci_device_id driver_denylist_ideapad_z570[] = {
20852085
{}
20862086
};
20872087

2088+
static struct pci_device_id driver_denylist_msi_x870e[] = {
2089+
{ PCI_DEVICE_SUB(0x1022, 0x15e3, 0x1462, 0xee59) }, /* MSI X870E Tomahawk WiFi */
2090+
{}
2091+
};
2092+
20882093
/* DMI-based denylist, to be used when:
20892094
* - PCI subsystem IDs are zero, impossible to distinguish from valid sound cards.
20902095
* - Different modifications of the same laptop use different GPU models.
@@ -2098,6 +2103,14 @@ static const struct dmi_system_id driver_denylist_dmi[] = {
20982103
},
20992104
.driver_data = &driver_denylist_ideapad_z570,
21002105
},
2106+
{
2107+
/* PCI device matching alone incorrectly matches some laptops */
2108+
.matches = {
2109+
DMI_MATCH(DMI_BOARD_VENDOR, "Micro-Star International Co., Ltd."),
2110+
DMI_MATCH(DMI_BOARD_NAME, "MAG X870E TOMAHAWK WIFI (MS-7E59)"),
2111+
},
2112+
.driver_data = &driver_denylist_msi_x870e,
2113+
},
21012114
{}
21022115
};
21032116

0 commit comments

Comments
 (0)