Hi,

My brand new laptop HP EliteBook 850 G6 comes with an Intel 300 Series
HD Audio device rev 0x11. The device shows up as not configured in the
dmesg. The PCI config space of the device identifies its subclass as
PCI_SUBCLASS_MULTIMEDIA_AUDIO instead of PCI_SUBCLASS_MULTIMEDIA_HDAUDIO

The patch below makes the device work just fine on my laptop.

Cheers,
Bruno

Index: sys/dev/pci/azalia.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/azalia.c,v
retrieving revision 1.255
diff -u -p -r1.255 azalia.c
--- sys/dev/pci/azalia.c        18 Apr 2020 21:55:56 -0000      1.255
+++ sys/dev/pci/azalia.c        28 May 2020 13:48:10 -0000
@@ -481,7 +481,8 @@ azalia_pci_match(struct device *parent,

        pa = aux;
        if (PCI_CLASS(pa->pa_class) == PCI_CLASS_MULTIMEDIA
-           && PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_MULTIMEDIA_HDAUDIO)
+           && (PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_MULTIMEDIA_HDAUDIO
+           || PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_MULTIMEDIA_AUDIO))
                return 1;
        return 0;
 }

Reply via email to