[wdmaudiodev] Re: USB audio changes in Vista?

  • From: "Jerry Trantow" <jtrantow@xxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 2 Oct 2007 08:36:29 -0500

Thanks!
I'll do a search through the archives and get this into my product *.inf.

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Jeff Pages
Sent: Monday, October 01, 2007 7:05 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: USB audio changes in Vista?

Jerry wrote:

> Now that I understand what's going on, Can I change my USB descriptor or 
> my
> .inf to get the OS to choose a stereo 24bit 48K as the default inputs for 
> my
> device???

You can set the default format for your device in your INF file as follows:

In the AddReg statement for your topology port, add an 
OEMSettingsOverride.AddReg, eg.

[Auricon.Interface.Topology1]
AddReg=Auricon.I.Topo1.AddReg, OEMSettingsOverride.AddReg

Then define OEMSettingsOverride.AddReg as follows:

;; Set default format to 48kHz, 24-bit, Stereo
[OEMSettingsOverride.AddReg]
HKR,"EP\\0", %PKEY_AudioEndpoint_Association%,,%KSNODETYPE_LINE_CONNECTOR%
HKR,"EP\\0", %PKEY_AudioEngine_OEMFormat%, %REG_BINARY%, 
41,00,8C,70,28,00,00,00,FE,FF,02,00,80,BB,00,00,00,DC,05,00,08,00,20,00,16,0
0,18,00,03,00,00,00,01,00,00,00,00,00,10,00,80,00,00,AA,00,38,9B,71

The PKEY_AudioEngine_OEMFormat structure is defined as:

{
    VARTYPE VT_BLOB;    //0x0041
    short Padding;    // Don't care
    ULONG ByteCountOfWhatFollows;    // 0x00000028
    WAVEFORMATEXTENSIBLE Format;
}

Finally, you need to define the GUIDs in your [Strings] section:

PKEY_AudioEndpoint_Association  = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},2"
PKEY_AudioEngine_OEMFormat = "{E4870E26-3CC5-4CD2-BA46-CA0A9A70ED04},3"

There was some discussion of this here late last year if I recall, if you 
want to delve back through the archives.

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/


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

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: