]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ALSA: hda/intel: Add MSI X870E Tomahawk to denylist by DMI ID
authorStuart Hayhurst <stuart.a.hayhurst@gmail.com>
Fri, 27 Mar 2026 15:57:36 +0000 (15:57 +0000)
committerTakashi Iwai <tiwai@suse.de>
Sat, 28 Mar 2026 09:32:53 +0000 (10:32 +0100)
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>
sound/hda/controllers/intel.c

index 2edbcab597c87ab66aa48f591f146f6757e78482..8a7bd49e411f7f92a97a06622d6138414211249b 100644 (file)
@@ -2085,6 +2085,11 @@ static struct pci_device_id driver_denylist_ideapad_z570[] = {
        {}
 };
 
+static struct pci_device_id driver_denylist_msi_x870e[] = {
+       { PCI_DEVICE_SUB(0x1022, 0x15e3, 0x1462, 0xee59) }, /* MSI X870E Tomahawk WiFi */
+       {}
+};
+
 /* DMI-based denylist, to be used when:
  *  - PCI subsystem IDs are zero, impossible to distinguish from valid sound cards.
  *  - Different modifications of the same laptop use different GPU models.
@@ -2098,6 +2103,14 @@ static const struct dmi_system_id driver_denylist_dmi[] = {
                },
                .driver_data = &driver_denylist_ideapad_z570,
        },
+       {
+               /* PCI device matching alone incorrectly matches some laptops */
+               .matches = {
+                       DMI_MATCH(DMI_BOARD_VENDOR, "Micro-Star International Co., Ltd."),
+                       DMI_MATCH(DMI_BOARD_NAME, "MAG X870E TOMAHAWK WIFI (MS-7E59)"),
+               },
+               .driver_data = &driver_denylist_msi_x870e,
+       },
        {}
 };