Hi,
I noticed I did not have sound on my new thinkpad which has a newer
Intel 500 HDA chipset.

bsd$ doas pcidump -vvv 0:31:3
 0:31:3: Intel 500 Series HD Audio
    0x0000: Vendor ID: 8086, Product ID: 43c8
    0x0004: Command: 0006, Status: 0010
    0x0008:    Class: 04 Multimedia, Subclass: 01 Audio,
        Interface: 00, Revision: 11
    0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
        Cache Line Size: 00
    0x0010: BAR mem 64bit addr: 0x000000603d1c0000/0x00004000
    0x0018: BAR empty (00000000)
    0x001c: BAR empty (00000000)
    0x0020: BAR mem 64bit addr: 0x000000603d000000/0x00100000
    0x0028: Cardbus CIS: 00000000
    0x002c: Subsystem Vendor ID: 17aa Product ID: 22e4
    0x0030: Expansion ROM Base Address: 00000000
    0x0038: 00000000
    0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
    0x0050: Capability 0x01: Power Management
        State: D0
    0x0080: Capability 0x09: Vendor Specific
    0x0060: Capability 0x05: Message Signalled Interrupts (MSI)
        Enabled: yes


Looking at src/sys/dev/pci/azalia.c I noticed making the change in the
below diff corrects the issue with a new kernel build.  It seems the
pci subsystem match inclusion may not be needed, but hopefully someone
smarter than I can figure that out (or help me figure that out).

Index: sys/dev/pci/azalia.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/azalia.c,v
retrieving revision 1.276
diff -u -p -u -p -r1.276 azalia.c
--- sys/dev/pci/azalia.c    8 Sep 2022 01:28:46 -0000    1.276
+++ sys/dev/pci/azalia.c    4 Nov 2022 14:02:31 -0000
@@ -511,8 +511,7 @@ azalia_pci_match(struct device *parent,
     struct pci_attach_args *pa;

     pa = aux;
-    if (PCI_CLASS(pa->pa_class) == PCI_CLASS_MULTIMEDIA
-        && PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_MULTIMEDIA_HDAUDIO)
+    if (PCI_CLASS(pa->pa_class) == PCI_CLASS_MULTIMEDIA)
         return 1;
     return pci_matchbyid((struct pci_attach_args *)aux, azalia_pci_devices,
         nitems(azalia_pci_devices));

I hope this helps some folks! I apologize that I am using 7.2-stable
and not -current.
Thanks,
John Browning

Reply via email to