[wdmaudiodev] KsStreamIo and IRP cancellation

  • From: "Jeff Claar" <JClaar@xxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 17 Jul 2007 17:47:48 -0700

Hi everyone,

I have a driver that sends audio to another driver using KsStreamIo. I
am doing this with a Bluetooth device, and playback works fine. 

The problem I am having is if the Bluetooth device is surprise-removed.
Any IRPs that have been scheduled with KsStreamIo are never completed or
cancelled. I would assume I would do something like IoCancelIrp, but I
can't get a pointer to the IRP that KsStreamIo creates.

I also tried scheduling a timeout on the stream pointer, and I get
notified, but I cannot get the IRP (KsStreamPointerGetIrp returns NULL.)

Any suggestions would be appreciated.

Thanks,
Jeff
******************

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:

  • » [wdmaudiodev] KsStreamIo and IRP cancellation