From efd9848f272932d15d198c03f6bf7b5836318275 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 19 Nov 2018 18:08:28 -0500 Subject: [PATCH] HDA: VMware's emulated controllers have HDA_QUIRK_NO_CORBRP_RESET_ACK. On my VMware Player installation, the device ID is "1977", but presumably VMware will have only one HDA codebase, and so we just enable the fix on all devices. This fixes initialization of the HDA driver on VMware, and means that it is now possible to get sound output on VMware without using the OpenSound driver package. --- src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp b/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp index 148de99057..99cffe8376 100644 --- a/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp +++ b/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp @@ -38,7 +38,9 @@ #define PCI_VENDOR_CREATIVE 0x1102 #define PCI_VENDOR_INTEL 0x8086 #define PCI_VENDOR_NVIDIA 0x10de +#define PCI_VENDOR_VMWARE 0x15ad #define PCI_ALL_DEVICES 0xffffffff + #define HDA_QUIRK_SNOOP 0x0001 #define HDA_QUIRK_NO_MSI 0x0002 #define HDA_QUIRK_NO_CORBRP_RESET_ACK 0x0004 @@ -85,7 +87,8 @@ static const struct { { PCI_VENDOR_NVIDIA, PCI_ALL_DEVICES, HDA_QUIRK_SNOOP | HDA_QUIRK_NO_MSI | HDA_QUIRK_NO_CORBRP_RESET_ACK }, { PCI_VENDOR_CREATIVE, 0x0010, HDA_QUIRK_NO_MSI }, - { PCI_VENDOR_CREATIVE, 0x0012, HDA_QUIRK_NO_MSI } + { PCI_VENDOR_CREATIVE, 0x0012, HDA_QUIRK_NO_MSI }, + { PCI_VENDOR_VMWARE, PCI_ALL_DEVICES, HDA_QUIRK_NO_CORBRP_RESET_ACK }, };