[wdmaudiodev] Re: iTunes and SRB_WRITE_DATA

  • From: "Sam Tertzakian" <sam@xxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 20 Nov 2008 23:56:52 -0800

Whenever I have seen similar problems they has been caused by:

1. outstanding SRBS held by the driver

2. not returning STATUS_SUCCESS from SET_STATE calls

3. not changing the status field in teh SRB.

From: wdmaudiodev-bounce@xxxxxxxxxxxxx
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Neetu Sand
Sent: Thure sday, November 20, 2008 11:20 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] iTunes and SRB_WRITE_DATA

 

Hi All,

I have been seeing some strange behavior with iTunes using our device. We
have written WDM audio driver using streaming mini driver model. What I am
seeing is:

- While playback is going on in iTunes, if I want to reset hardware, I
complete SRB_WRITE_DATA  SRB with STATUS_IO_DEVICE_ERROR. So that I don't
receive more SRBs and iTunes close handle to our adapter. 

But what I am seeing is when I return a SRB with STATUS_IO_DEVICE_ERROR
status, iTunes does not close handle to our driver. I close iTunes and
still, it keeps the handle open.

I found a work around to fix the problem that I was seeing but the above
behavior is un-explanable to me. Can someone throw light on why is this
happening? I might be doing something wrong in driver which leads to this
situation.

Thanks, Neetu.

Other related posts: