Dynamic Audio Devices

I have an AVStream driver for a wireless audio device. I’d like to relay
the connection state of the device to Windows in such a way that it appears
unavailable (grayed out) in the sound property page if the device is powered
off, out of range, etc.

Looking through the WDK I found the concept of “subdevcies” and how they
allow you to dynamically change topology but it seems specific to WDM
audio. I found the function KsFilterFactorySetDeviceClassesState(), but I
can’t tell that it does anything at all.

Is there a way to do what I want with an AVStream driver, or is such a thing
exclusive to WDM audio drivers?

I’m targeting Vista only, BTW.

Thanks,
Shawn

Avstream is just a wrapper around KS and you are allowed to call KS
functions from your AVSTREAM driver.
KsFilterFactorySetDeviceClassesState() should do what you want.

d

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shawn Brooks
Sent: Tuesday, April 17, 2007 1:34 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Dynamic Audio Devices

I have an AVStream driver for a wireless audio device. I’d like to
relay the connection state of the device to Windows in such a way that
it appears unavailable (grayed out) in the sound property page if the
device is powered off, out of range, etc.

Looking through the WDK I found the concept of “subdevcies” and how they
allow you to dynamically change topology but it seems specific to WDM
audio. I found the function KsFilterFactorySetDeviceClassesState (),
but I can’t tell that it does anything at all.

Is there a way to do what I want with an AVStream driver, or is such a
thing exclusive to WDM audio drivers?

I’m targeting Vista only, BTW.

Thanks,

Shawn

— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

This got me on track. Thanks Doron.

On 4/17/07, Doron Holan wrote:
>
> Avstream is just a wrapper around KS and you are allowed to call KS
> functions from your AVSTREAM driver. KsFilterFactorySetDeviceClassesState()
> should do what you want.
>
>
>
> d
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Shawn Brooks
> Sent: Tuesday, April 17, 2007 1:34 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Dynamic Audio Devices
>
>
>
> I have an AVStream driver for a wireless audio device. I’d like to relay
> the connection state of the device to Windows in such a way that it appears
> unavailable (grayed out) in the sound property page if the device is powered
> off, out of range, etc.
>
>
>
> Looking through the WDK I found the concept of “subdevcies” and how they
> allow you to dynamically change topology but it seems specific to WDM
> audio. I found the function KsFilterFactorySetDeviceClassesState (), but
> I can’t tell that it does anything at all.
>
>
>
> Is there a way to do what I want with an AVStream driver, or is such a
> thing exclusive to WDM audio drivers?
>
>
>
> I’m targeting Vista only, BTW.
>
>
>
> Thanks,
>
> Shawn
>
>
>
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>