[wdmaudiodev] Re: Default channel format for MsVAD driver

  • From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 16 Feb 2016 21:30:17 +0000

There are various complicated ways* to drop hints to Windows that, of the many 
formats you support, you would prefer one or the other. But the simplest 
approach is to only support the format you actually want to use… that is, limit 
Windows to a single option.

*For example, in addition to PKEY_AudioEngine_OEMFormat, there is 
KSDATAFORMAT_PIN_PROPOSEDATAFORMAT2: 
https://msdn.microsoft.com/en-us/library/windows/hardware/dn567589(v=vs.85).aspx

From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of ambrish dantrey
Sent: Tuesday, February 16, 2016 1:14 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: Default channel format for MsVAD driver


Found something interesting. Seems like this can be used:

https://msdn.microsoft.com/en-us/library/windows/hardware/ff537752(v=vs.85).aspx

Anyone familiar with this? What's the intended usecase for this if driver is 
not supposed to set default stream format, as Tim pointed out.
ambrish dantrey wrote:


Cool, thanks again.

Just out of curiosity, if I had a case that mandated support for other
formats too, what options would I have? Can a driver specify the
channel config it wants the endpoint to come up in at the time of
endpoint registration?

No.  The application is expected to be the ultimate authority on what
format it wants.  Your hardware is merely a slave to the desires of the
application.

--
Tim Roberts, timr@xxxxxxxxx<mailto:timr@xxxxxxxxx>
Providenza & Boekelheide, Inc.

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

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

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

Other related posts: