From ef4cef28c91114d54cd32900f4507d680c52606a Mon Sep 17 00:00:00 2001 From: Igor Baranov Date: Mon, 14 Sep 2026 04:26:51 -0700 Subject: [PATCH] Fix: Mark endpoints without connector control as static --- src/uac2-driver/CircuitCommon.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/uac2-driver/CircuitCommon.cpp b/src/uac2-driver/CircuitCommon.cpp index 27b153c..e91e74e 100644 --- a/src/uac2-driver/CircuitCommon.cpp +++ b/src/uac2-driver/CircuitCommon.cpp @@ -162,7 +162,6 @@ NTSTATUS Codec_AddAudioDummyJackToBridgePin( _In_ ACXPIN Pin ) { - ACX_JACK_CALLBACKS jackCallbacks{}; ACX_JACK_CONFIG jackCfg{}; ACXJACK jack{}; PJACK_CONTEXT jackContext = nullptr; @@ -174,9 +173,6 @@ NTSTATUS Codec_AddAudioDummyJackToBridgePin( // Add audio jack to bridge pin. // For more information on audio jack see: https://docs.microsoft.com/en-us/windows/win32/api/devicetopology/ns-devicetopology-ksjack_description // - ACX_JACK_CALLBACKS_INIT(&jackCallbacks); - jackCallbacks.EvtAcxJackRetrievePresenceState = EvtJackRetrievePresence; - ACX_JACK_CONFIG_INIT(&jackCfg); jackCfg.Description.ChannelMapping = 0; jackCfg.Description.Color = RGB(0, 0, 0); @@ -184,8 +180,8 @@ NTSTATUS Codec_AddAudioDummyJackToBridgePin( jackCfg.Description.GeoLocation = AcxGeoLocNotApplicable; jackCfg.Description.GenLocation = AcxGenLocOther; jackCfg.Description.PortConnection = AcxPortConnUnknown; - jackCfg.Flags = AcxJackConfigJackDetection; - jackCfg.Callbacks = &jackCallbacks; + // Without connector control this is a static endpoint. + jackCfg.Flags = AcxJackConfigNoFlags; WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&attributes, JACK_CONTEXT); attributes.ParentObject = Pin;