[wdmaudiodev] Re: Disable automatic default device change while installation.

  • From: eno rocky <binoddummy@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 27 Nov 2018 10:47:57 +0530

Hi Mathew,

Sorry for the copy paste. Actually I was trying something by commenting,
but in fact As I was implementing,
PKEY_AudioDevice_NeverSetAsDefaultEndpoint was allowed ( without semicolon
).
But still for confirmation I have compiled, built and installed again, bu
the issue remains the same.
My actual implementation is like :

[My_Device.NT.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,MyVirtualDev.I.Wave
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%, MyVirtualDev.I.Wave
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%, MyVirtualDev.I.Topo

[ MyVirtualDev.I.Topo]
AddReg= MyVirtualDev.I.Topo.AddReg
[ MyVirtualDev.I.Topo.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,% MyVirtualDev.Topo.szPname%
HKR,,%PKEY_AudioEndpoint_Association%,,%KSNODETYPE_LINE_CONNECTOR%
HKR,,%PKEY_AudioDevice_NeverSetAsDefaultEndpoint%,0x00010001,0x00000305

KSNODETYPE_LINE_CONNECTOR="{DFF21FE3-F70F-11D0-B917-00A0C9223196}"
PKEY_AudioEndpoint_Association="{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},2"
PKEY_AudioDevice_NeverSetAsDefaultEndpoint =
"{F3E80BEF-1723-4FF2-BCC4-7F83DC5E46D4},3"


On Mon, Nov 26, 2018 at 9:50 PM Matthew van Eerde <
dmarc-noreply@xxxxxxxxxxxxx> wrote:


   -
   ;HKR,,%PKEY_AudioDevice_NeverSetAsDefaultEndpoint%,0x00010001,0x00000305



The semicolon marks the start of a comment. So this line has no effect.
Remove the semicolon.


------------------------------
*From:* wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx>
on behalf of eno rocky <binoddummy@xxxxxxxxx>
*Sent:* Thursday, November 22, 2018 9:18:55 PM
*To:* wdmaudiodev@xxxxxxxxxxxxx
*Subject:* [wdmaudiodev] Re: Disable automatic default device change
while installation.

Hi,
I am trying it in windows 10. So, its not working on it.

[My_Device.NT.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,MyVirtualDev.I.Wave
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%, MyVirtualDev.I.Wave
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%, MyVirtualDev.I.Topo

[ MyVirtualDev.I.Topo]
AddReg= MyVirtualDev.I.Topo.AddReg
[ MyVirtualDev.I.Topo.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,% MyVirtualDev.Topo.szPname%
;HKR,,%PKEY_AudioEndpoint_Association%,,%KSNODETYPE_LINE_CONNECTOR%
;HKR,,%PKEY_AudioDevice_NeverSetAsDefaultEndpoint%,0x00010001,0x00000305

KSNODETYPE_LINE_CONNECTOR="{DFF21FE3-F70F-11D0-B917-00A0C9223196}"
PKEY_AudioEndpoint_Association="{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},2"
PKEY_AudioDevice_NeverSetAsDefaultEndpoint =
"{F3E80BEF-1723-4FF2-BCC4-7F83DC5E46D4},3"


Is it correct, or am i missing something?



On Fri, Nov 23, 2018 at 10:36 AM Tsai Tzung-Dar <
dmarc-noreply@xxxxxxxxxxxxx> wrote:

Hi
Yes, I had use it in Windows 7. And it work fine.



在 2018年11月23日 星期五 下午12:38:34 [GMT+8], eno rocky<binoddummy@xxxxxxxxx>
寫道:


Hi Tsai,

I forgot to mention, I had already tried using 
PKEY_AudioDevice_NeverSetAsDefaultEndpoint
but had no effect. Is  it working for you?
One of the previous thread had already discussed about it as well. Link
->
https://www.freelists.org/post/wdmaudiodev/Unexpected-default-sound-device-on-Windows
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.freelists.org%2Fpost%2Fwdmaudiodev%2FUnexpected-default-sound-device-on-Windows&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7Cee8b35ce75934918de6708d6510345eb%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636785471858803153&sdata=xvt%2FMd42qcUxVg%2Fbu%2FO8aQDDsLBeW5MBIXbnPGqIdCo%3D&reserved=0>


Thanks,

On Fri, Nov 23, 2018 at 9:51 AM Tsai Tzung-Dar <
dmarc-noreply@xxxxxxxxxxxxx> wrote:

Hi
Maybe you can try to use PKEY_AudioDevice_NeverSetAsDefaultEndpoint
You can reference to

https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/pkey-audiodevice-neversetasdefaultendpoint
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Faudio%2Fpkey-audiodevice-neversetasdefaultendpoint&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7Cee8b35ce75934918de6708d6510345eb%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636785471858813162&sdata=k4ex%2FvmpC5CVq8t0EwZJbtlezVZ96uZfa5q4mPjAaBs%3D&reserved=0>


在 2018年11月21日 星期三 下午6:08:43 [GMT+8], eno rocky<binoddummy@xxxxxxxxx> 寫道:


Hi,

Is there any way in windows 10 to prevent virtual audio driver from being
default device only at installation not always?
As it is automatically selecting driver as default device on
installation.
This problem I am facing in windows 10 only not other.
For installation i am using devcon.


Other related posts: