[wdmaudiodev] Re: Can a driver tell that an endpoint is disabled?

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: Jeff Pages <jeff@xxxxxxxxxxxxxxxxx>, "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 12 Jul 2016 10:15:14 +0000

Note that apps (e.g. KSStudio) can open a pin and stream to the hardware via 
DirectKS even if the endpoint is disabled.



You have the following options available to you:

1.       If there are no active streams on the device you can use the power 
DDIs to go into D3, and shut down the hardware when you’re in D3. This is the 
recommended approach.

2.       If you have a user-mode service, and you’re on Windows 8 or later, you 
can use the Windows.Devices.Enumeration APIs to query the endpoints from Device 
Manager’s “audio inputs and outputs” category. Endpoints which are disabled do 
not show up here.

3.       If you’re on Windows Vista or Windows 7, you can use the 
IMMDeviceEnumerator API to query endpoints.



From: Jeff Pages<mailto:jeff@xxxxxxxxxxxxxxxxx>
Sent: Tuesday, July 12, 2016 1:34 AM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Can a driver tell that an endpoint is disabled?



This isn't a game-stopper, but is there any way a driver can tell that the
user has disabled an endpoint in the Sound applet? In a jack-of-all-trades
PCIe card I'm currently working on, it'd be handy to know so that the part
of the hardware corresponding to a disabled endpoint could be shut down.

Jeff

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: