[wdmaudiodev] Re: Endpoint device name construction in Vista

  • From: "Jeff Pages" <jeff@xxxxxxxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 6 Dec 2006 09:15:58 +1100

Yes, you create a GUID and associate that with a string in your inf file (eg. Mic 1), then use that GUID as the name for the corresponding pin in your topology. This is an example of what I'm doing:


In the inf file:

[Auricon_NAMES.AddReg]
HKLM,%MediaCategories%\%AurGUID.LineInputA%,Name,,%AurPin.LineInputA%
HKLM,%MediaCategories%\%AurGUID.LineInputA%,Display,1,00,00,00,00

[Strings]
AurGUID.LineInputA      ="{7E180AA0-EDBE-11d4-A8A2-00A0C98DF43B}"
AurPin.LineInputA      ="Line Input 1"

and in my driver,

#define STATIC_AURFNAME_LINE_INPUT_A\
0x7e180aa0, 0xedbe, 0x11d4, 0xa8, 0xa2, 0x0, 0xa0, 0xc9, 0x8d, 0xf4, 0x3b
DEFINE_GUIDSTRUCT("7E180AA0-EDBE-11d4-A8A2-00A0C98DF43B", _AURFNAME_LINE_INPUT_A);
#define AURFNAME_LINE_INPUT_A DEFINE_GUIDNAMED(_AURFNAME_LINE_INPUT_A)

INIT_PIN (PIN_LINEIN_SOURCE_A,
   CurrentPin,
   &KSNODETYPE_LINE_CONNECTOR,
   &AURFNAME_LINE_INPUT_A,
   Index);

I hope that helps.

Jeff Pages
Innes Corporation Pty Ltd

----- Original Message ----- From: "Eugene Muzychenko" <emuzychenko@xxxxxxxxx>
To: <wdmaudiodev@xxxxxxxxxxxxx>
Sent: Tuesday, December 05, 2006 6:22 PM
Subject: [wdmaudiodev] Endpoint device name construction in Vista


Hello!

Can Vista construct endpoint device names not only from a topology
node name and a device instance name?

I have read the discussion about endpoint naming and understood that
Vista tries to create unique endpoint names. But there were no answers
how can a driver to create these names itself.

My driver needs to create several sequential subdevices (dev1, dev2
and so on). From Win98 to WinXP, I name these subdevices differently
and it worked as described in the docs. But in Vista, I see several
EQUAL names: "Microphone (Device Instance Name)", "Microphone (Device Instance Name)",
"Line In (Device Instance Name)", "Line In (Device Instance Name)"...

How can I create DIFFERENTLY named device endpoints? Can I suggest to Vista to
use my own string insteal of a device instance name? Or I can only to
vary the topology node names, resulting "Mic 1 (Device Instance
Name)", "Mic 2 (Device Instance Name)" and so on?

Where can I read about these issues in Vista?

Regards,
Eugene

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

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: