[wdmaudiodev] Re: audio driver questions

  • From: Tim Newsham <tim.newsham@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Fri, 11 Sep 2009 08:55:56 -1000

I'm having some problems figuring out how to load such a bus driver.  What
would be the class of the bus driver in the INF file?

On Wed, Aug 26, 2009 at 12:10 PM, Tim Roberts <timr@xxxxxxxxx> wrote:

> Tim Newsham wrote:
> >
> >  - Is it possible to unregister a miniport driver?  Ie. it would be
> > nifty if I could create a miniport driver on demand from another
> > device and then when that other device closed, unregister the
> > miniport.  I noticed that miniport-based drivers like msvad can be
> > loaded and unloaded from a live system just fine.  I just havent
> > noticed any way to do this from within a driver.
>
> Installation and uninstallation of drivers is a user-mode activity.
>
> However, one way to do what you ask is to make your "other device" into
> a bus driver.  When it is ready to have audio services available, you
> call IoInvalidateDeviceRelations, which tells PnP to ask your driver
> about its child devices.  You report the PnP ID for your audio device.
> The system will load your audio device, and it will start to run.
>
> When you're ready to kill the device, you call
> IoInvalidateDeviceRelations again, and return nothing.  Your audio
> device will be shut down.
>
> This is exactly what the USB bus driver does when a device plugs and
> unplugs.  And, really, it's not that hard to do.
>
> --
> Tim Roberts, timr@xxxxxxxxx
> Providenza & Boekelheide, Inc.
>
> ******************
>
> 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: