From 3c8714ed5af28613e1354517258883858991a274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Mon, 12 Nov 2018 12:53:10 +0100 Subject: [PATCH] dde_bsd: make HDMI/DP HDA check stricter Since QEMU might put the audio device at 00:03.0, also check if the vendor is Intel. Hopefully we do not render HDA on real machines useless with this changes (so far I have not encountered one). Fixes #3263. --- repos/dde_bsd/src/lib/audio/bus.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repos/dde_bsd/src/lib/audio/bus.cc b/repos/dde_bsd/src/lib/audio/bus.cc index 59141cdcc..573cd968c 100644 --- a/repos/dde_bsd/src/lib/audio/bus.cc +++ b/repos/dde_bsd/src/lib/audio/bus.cc @@ -184,7 +184,8 @@ class Pci_driver : public Bsd::Bus_driver device.bus_address(&bus, &dev, &func); if ((device.device_id() == PCI_PRODUCT_INTEL_CORE4G_HDA_2) || - (bus == 0 && dev == 3 && func == 0)) { + (device.vendor_id() == PCI_VENDOR_INTEL && + bus == 0 && dev == 3 && func == 0)) { Genode::warning("ignore ", (unsigned)bus, ":", (unsigned)dev, ":", (unsigned)func, ", not supported HDMI/DP HDA device"); continue;