[wdmaudiodev] Re: WASAPI exclusive mode: USB glitches.

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 3 Jun 2019 19:52:28 +0000

“Feedback Hub > Feedback > My feedback” should show it. Make sure you’re signed 
in to the app.

________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on 
behalf of Jerry Evans <jerry@xxxxxxxxxxx>
Sent: Monday, June 3, 2019 12:50:14 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: WASAPI exclusive mode: USB glitches.

Yes. Odd.

I just posted an issue on the feedback hub but I’ve got no link. I was under 
the impression that was the right conduit. LMK if that is not the case.

Thanks for the help. Much appreciated.

From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> On 
Behalf Of Matthew van Eerde (Redacted sender "Matthew.van.Eerde" for DMARC)
Sent: 03 June 2019 19:19
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: WASAPI exclusive mode: USB glitches.

*scratches chin*
So… what to do…

I think the next step is to take this problem to the owners of usbxhci.sys and 
ask them why the IRP completion cadence is 15 milliseconds instead of 10.

Can you make an official problem report in Feedback Hub and send me the link?

________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx
<wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>> on 
behalf of Matthew van Eerde 
<dmarc-noreply@xxxxxxxxxxxxx<mailto:dmarc-noreply@xxxxxxxxxxxxx>>
Sent: Monday, June 3, 2019 10:58:20 AM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: WASAPI exclusive mode: USB glitches.

Thanks.

Looks like the exclusive-mode audio pump is running off of usbaudio.sys/ks.sys 
IRP completions, which in turn is running off of usbxhci.sys ISR/DPCs. So far, 
so good.

The constant glitching is because, for reasons I am unable to fathom, 
USBXHCI.sys ISRs are happening every 15 milliseconds, instead of the expected 
10 milliseconds.

________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx
<wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>> on 
behalf of Jerry Evans <jerry@xxxxxxxxxxx<mailto:jerry@xxxxxxxxxxx>>
Sent: Monday, June 3, 2019 9:05:22 AM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: WASAPI exclusive mode: USB glitches.

Thanks.

https://www.novadsp.com/files/I7-1607_20190602-114254.zip<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.novadsp.com%2Ffiles%2FI7-1607_20190602-114254.zip&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7Cea06cee4b7ee4b562b5f08d6e85cc8b5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636951882616153677&sdata=NLNaS%2BqBsa%2FYjuPfqikuYw6ZkLEmL1avcHS2eLrxMI4%3D&reserved=0>

From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx
<wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>> On 
Behalf Of Matthew van Eerde (Redacted sender "Matthew.van.Eerde" for DMARC)
Sent: 03 June 2019 16:39
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: WASAPI exclusive mode: USB glitches.


Upload it to a share somewhere and provide a link.



Alternatively, file a problem report in Feedback Hub, attach the .etl, and 
provide a link to the problem report.



________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx
<wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>> on 
behalf of Jerry Evans <jerry@xxxxxxxxxxx<mailto:jerry@xxxxxxxxxxx>>
Sent: Monday, June 3, 2019 8:36:26 AM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] WASAPI exclusive mode: USB glitches.

One for Matthew I suspect.

tl;dr; I've assembled the ETL glitch trace package as detailed in the blog.
Where to send it?

WASAPI glitches badly with USB devices in exclusive mode. Win 10 1607 on a
gen4 4GHz i7 with Asus motherboard.

Changing the buffer sizes (according to the minimum and maximum values
returned by GetDevicePeriod()) has no effect. Tested on 2 USB full speed
devices, an ancient Roland adapter and a much newer Behringer based on a TI
chipset.

Shared mode is AOK.

using the onboard Realtek HDA in _exclusive_ mode is also AOK.

Results are identical using whatever the latest developer release might be.

Some scope images attached for anyone interested.

TAIA

Jerry.

Other related posts: