[wdmaudiodev] Re: setting the default samplerate

  • From: "Jeff Pages" <jeff@xxxxxxxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 10 Dec 2007 09:18:01 +1100

Hi Uwe,

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,00,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

----- Original Message ----- From: "Uwe Kirst" <u.kirst@xxxxxx>
To: <wdmaudiodev@xxxxxxxxxxxxx>
Sent: Friday, December 07, 2007 11:33 PM
Subject: [wdmaudiodev] setting the default samplerate


hello,

is it possible to set the default samplerate and format size during install within the .inf file?

thank you,
uwe
******************

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: