[wdmaudiodev] Re: [EXTERNAL] Do Not Make Me The Preferred Device

  • From: Matthew van Eerde <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 22 Feb 2021 22:52:05 +0000

Alternative solution: update the USB descriptor in the fake USB audio device to 
use a terminal type that is less attractive to Windwos.

From: Matthew van Eerde<mailto:dmarc-noreply@xxxxxxxxxxxxx>
Sent: Monday, February 22, 2021 2:48 PM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: [EXTERNAL] Do Not Make Me The Preferred Device

Create a wrapper .inf for wdma_usb.inf. Specify the hardware ID of your fake 
USB audio device. Set PKEY_AudioDevice_NeverSetAsDefaultEndpoint - Windows 
drivers | Microsoft 
Docs<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Faudio%2Fpkey-audiodevice-neversetasdefaultendpoint&data=04%7C01%7CMatthew.van.Eerde%40microsoft.com%7C1b776cfcbc6d45f0e0b508d8d783f2cb%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637496309036485032%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8TKg%2BxWP0sEmn%2BnAwrtdshYhHNN%2FvIFSpPNDolKwhUE%3D&reserved=0>

Related reading:

  *   Troubleshooting default audio device heuristics – Matthew van Eerde's web 
log 
(wordpress.com)<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmatthewvaneerde.wordpress.com%2F2014%2F03%2F24%2Ftroubleshooting-default-audio-device-heuristics%2F&data=04%7C01%7CMatthew.van.Eerde%40microsoft.com%7C1b776cfcbc6d45f0e0b508d8d783f2cb%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637496309036495029%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Zekwme%2FvPZqlm0zPfsqTHctTg1iE8SS6pYEmj9XrQKA%3D&reserved=0>
  *   How can my USB audio device tell the audio driver what kind of device it 
is? – Matthew van Eerde's web log 
(wordpress.com)<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmatthewvaneerde.wordpress.com%2F2019%2F04%2F19%2Fhow-can-my-usb-audio-device-tell-the-audio-driver-what-kind-of-device-it-is%2F&data=04%7C01%7CMatthew.van.Eerde%40microsoft.com%7C1b776cfcbc6d45f0e0b508d8d783f2cb%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637496309036495029%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Zqt%2BXoY7sJrSA0S6NxQdYrpfu93r%2FaVB7bRNT8BPasQ%3D&reserved=0>

From: Tim Roberts<mailto:timr@xxxxxxxxx>
Sent: Monday, February 22, 2021 2:26 PM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [EXTERNAL] [wdmaudiodev] Do Not Make Me The Preferred Device

I think I've read this answer before, but I can't find it.

I have a USB audio device.  Well, it's virtual device, but it walks and
talks like a USB audio device.  usbaudio.sys happily communicates with
me and handles microphone and speaker data.

When my device is enumerated, it becomes the preferred default device.
I don't want that.  I just want to slip quietly into the background.
I've seen answers that use properties to suppress that, but in this case
it is usbaudio.sys that is creating the properties, not me.  How can I
force the system not to make me the preferred device?

--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.




Other related posts: