[wdmaudiodev] USB 3.0 issue when un-plug audio device

  • From: Moore Zhang <chinahearing@xxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 27 Jun 2012 20:54:19 +0800

Hi Guys:

Some days ago, I test my usb audio driver in USB3.0 and BSOD occurs when I 
un-plug device while it's still playing back. I attach windbg and set 
breakpoint in all PnP and Power events. Very strange, when issue happens, none 
of these events are hit until I stop music playing back. My audio driver is 
written with AVStream framework. 

0: kd> !drvobj myAudioDriver 0xf
Driver object (86642030) is for:
 \Driver\ myAudioDriver
Driver Extension List: (id , addr)
(aea6de96 87b47338)  
Device Object list:
86731b20  
 [16] IRP_MJ_POWER                       aea70cbc       
ks!CKsDevice::DispatchPower
 [1b] IRP_MJ_PNP                         aea6926e       
ks!CKsDevice::DispatchPnp

So I set bp in ks!CKsDevice::DispatchPower and ks!CKsDevice::DispatchPnp. Then 
reproduce this issue. Strange, both breakpoints in ks!CKsDevice::DispatchPnp 
and DispatchPower are not hit until I stop music playback. Sometimes I have 
chance to stop playing, and sometimes there is bug check hang.

This issue never happens in USB1.1 and 2.0 port. Is this a known issue, anyone 
ever met the similar issue? Any idea is appreciated! 

******************

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: