[wdmaudiodev] Re: Hiding Audio Endpoint like USB device.

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Fri, 30 Nov 2018 11:52:05 +0000

Don’t throw things at the wall hoping something will stick. Figure out what the 
right thing is and use that. Are you trying to disable a render endpoint, a 
capture endpoint, or both?


  *   HKR,"EP\\0",%PKEY_AudioEndpoint_Association%,,%KSNODETYPE_AUDIO%

What is KSNODETYPE_AUDIO? Does it match the KSPIN_DESCRIPTOR.Category in your 
hardware pin factory?

If you query the PKEY_AudioDevice_EnableEndpointByDefault property on the 
endpoint after your driver is installed, is it present? Does it have the value 
you set in the .inf?

From: eno rocky<mailto:binoddummy@xxxxxxxxx>
Sent: Friday, November 30, 2018 3:47 AM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: Hiding Audio Endpoint like USB device.

Hi,

In fact nothing works,
I tried ,0x00000200 (FLOW_MASK_CAPTURE), 0x00000100 (FLOW_MASK_RENDER) and as 
well as masking both 0x00000300 ,but no lucks. Why windows is ignoring these 
PKEY entires?

On Fri, Nov 30, 2018 at 4:59 PM Matthew van Eerde 
<dmarc-noreply@xxxxxxxxxxxxx<mailto:dmarc-noreply@xxxxxxxxxxxxx>> wrote:
Huh, TIL

That should work, but setting it to 0 won’t have any effect. You need to 
specify FLOW_MASK_RENDER or FLOW_MASK_CAPTURE at a minimum.

https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/pkey-audiodevice-enableendpointbydefault<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Faudio%2Fpkey-audiodevice-enableendpointbydefault&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7C683731ddffb3424e601608d656b98f6a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636791752360745962&sdata=i18cpuL9UMVgbBjBkaSi9s%2FhIBptDlOLvb3LIdxbJPU%3D&reserved=0>


From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx
<wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>> on 
behalf of eno rocky <binoddummy@xxxxxxxxx<mailto:binoddummy@xxxxxxxxx>>
Sent: Friday, November 30, 2018 3:24:22 AM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: Hiding Audio Endpoint like USB device.

Hi Mathew,

Thanks for answer.

I was wondering if i can use.
PKEY_AudioDevice_EnableEndpointByDefault

HKR,"EP\\0",%PKEY_AudioEndpoint_Association%,,%KSNODETYPE_AUDIO%
HKR,"EP\\0",%PKEY_AudioDevice_EnableEndpointByDefault%,0x00010001,0x00000000

but still this have no effect. Isn't it for disabling and enabling by default?

Thanks,

On Fri, Nov 30, 2018 at 4:27 PM Matthew van Eerde 
<dmarc-noreply@xxxxxxxxxxxxx<mailto:dmarc-noreply@xxxxxxxxxxxxx>> wrote:
No. The user gets to decide which endpoints are disabled, not the driver.


From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx
<wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>> on 
behalf of eno rocky <binoddummy@xxxxxxxxx<mailto:binoddummy@xxxxxxxxx>>
Sent: Friday, November 30, 2018 2:30:52 AM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: Hiding Audio Endpoint like USB device.

Hi,

Instead of Connecting/Disconnecting JACK_DESCRIPTION or Enabling/Disabling the 
KSCATEGORY_AUDIO interface. Is there a way so that Endpoint will be in disable 
mode?
JACK_DESCRIPTION .IsConnected will make it in unplugged state and Disabling  
KSCATEGORY_AUDIO interface completely remove endpoint.
I just want it to in disable mode, as soon as dirver is installed. Is is 
possible?

Thanks,

On Wed, Nov 28, 2018 at 10:59 PM eno rocky 
<binoddummy@xxxxxxxxx<mailto:binoddummy@xxxxxxxxx>> wrote:
Hi Mathew,

Thanks for directions,
Yeah KSPROPERTY_JACK_DESCRIPTION  with KSEVENT_PINCAPS_JACKINFOCHANGE was 
helpful and it works like charm.



On Tue, Nov 27, 2018 at 8:37 AM Robert Dalton 
<bob@xxxxxxxxxxxx<mailto:bob@xxxxxxxxxxxx>> wrote:
Thanks Matthew.

How would I just disable the "Internal Aux Jack" at compile time?  Is that ok, 
what is it's purpose?

PNG image

PNG image

Other related posts: