From 8aed778a96738e9d0ac2ec081b4172de95546996 Mon Sep 17 00:00:00 2001 From: Oleg Dubinskiy Date: Mon, 23 Feb 2026 15:17:38 +0100 Subject: [PATCH] [HDAUDBUS_NEW] Fix PCI Bus interface version used for WdfFdoQueryForInterface() Use hardcoded value '1' instead of predefined 'PCI_BUS_INTERFACE_STANDARD_VERSION', as in the current upstream. Import upstream commit https://github.com/coolstar/sklhdaudbus/commit/4c92e71ef9e91360cb35be6a09aadb2c3eaaca27. According to the note from CoolStar, that defined value is different on Windows 11, so it causes some problems and '1' should be used instead. Missed that during the import before. Addendum to 7c2d923007b6717bbb00338829e53acbfcfa2fcb. --- drivers/wdm/audio/hdaudbus_new/fdo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/wdm/audio/hdaudbus_new/fdo.cpp b/drivers/wdm/audio/hdaudbus_new/fdo.cpp index 8e5da6d6c1a..4c4e4ad4d70 100644 --- a/drivers/wdm/audio/hdaudbus_new/fdo.cpp +++ b/drivers/wdm/audio/hdaudbus_new/fdo.cpp @@ -227,7 +227,7 @@ Fdo_EvtDevicePrepareHardware( SklHdAudBusPrint(DEBUG_LEVEL_INFO, DBG_INIT, "%s\n", __func__); - status = WdfFdoQueryForInterface(Device, &GUID_BUS_INTERFACE_STANDARD, (PINTERFACE)&fdoCtx->BusInterface, sizeof(BUS_INTERFACE_STANDARD), PCI_BUS_INTERFACE_STANDARD_VERSION, NULL); + status = WdfFdoQueryForInterface(Device, &GUID_BUS_INTERFACE_STANDARD, (PINTERFACE)&fdoCtx->BusInterface, sizeof(BUS_INTERFACE_STANDARD), 1, NULL); if (!NT_SUCCESS(status)) { return status; }