[wdmaudiodev] Re: Excessive AVStream Driver Filter Creation

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Fri, 24 May 2019 15:52:15 +0000

About half of it is RtkNGUI64.exe and about half of it is the 
AudioEndpointBuilder service (with some other processes too.)

It looks like there is a whole lot of device arrival and removal notifications 
going on. Are you enabling and disabling your KSCATEGORY_AUDIO interface?

________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on 
behalf of Gatos, Cobey <cgatos@xxxxxxxxxxxxxxxxx>
Sent: Friday, May 24, 2019 8:00:50 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: Excessive AVStream Driver Filter Creation


As suggested, I have created a log of the Create and Close calls in my driver. 
I have posted the .etl file here:

https://www.dropbox.com/s/f6hiicanmwm8tq9/FilterCreateClose.zip?dl=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Ff6hiicanmwm8tq9%2FFilterCreateClose.zip%3Fdl%3D0&data=02%7C01%7Cmatthew.van.eerde%40microsoft.com%7C5ae121608db54b39e28208d6e058b06c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636943068938035477&sdata=sO9jku7ehZ1jzFB1KHsR%2B3FP1y14eX1C4f0vWu6eWdU%3D&reserved=0>

To generate this log, I just connected my device to the computer. I did not 
open any audio applications. The driver includes a MIDI filter factory, and 
calls create and close MIDI filters are included in the log.

Thanks.

Cobey


On May 15, 2019, at 1:33 PM, Matthew van Eerde (Redacted sender 
"Matthew.van.Eerde" for DMARC) 
<dmarc-noreply@xxxxxxxxxxxxx<mailto:dmarc-noreply@xxxxxxxxxxxxx>> wrote:

Log an ETW event from your Create and Close callbacks.
Author a .wprp which listens for these events and grabs stacks at the time they 
happen (see 
https://blogs.msdn.microsoft.com/matthew_van_eerde/2018/11/12/what-api-is-being-used-to-play-or-record-audio/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblogs.msdn.microsoft.com%2Fmatthew_van_eerde%2F2018%2F11%2F12%2Fwhat-api-is-being-used-to-play-or-record-audio%2F&data=02%7C01%7Cmatthew.van.eerde%40microsoft.com%7C5ae121608db54b39e28208d6e058b06c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636943068938035477&sdata=LBiuCsLnO72nPmRBmiUflSzfBPHaG3bMl4y6GUzoFso%3D&reserved=0>)
Record the 2000 calls into an .etl.
Share the .etl.
This will reveal who is instantiating the filters (and, hopefully, why.)



________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx
<wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>> on 
behalf of Gatos, Cobey 
<cgatos@xxxxxxxxxxxxxxxxx<mailto:cgatos@xxxxxxxxxxxxxxxxx>>
Sent: Wednesday, May 15, 2019 10:29:38 AM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Excessive AVStream Driver Filter Creation


I have an AVStream driver for a 10 x 8 USB audio device. The driver exposes 
both multi-channel input and output audio devices to Windows, and additionally 
stereo pair audio devices for each available audio channel pair. There is a 
separate filter factory for each of these (11 total).

When I plug my device in, the driver receives hundreds of filter Create and 
Close calls - on one of my machines the number approaches 2000 create calls. 
This happens without any audio applications open, and without any pins being 
created. These calls can continue for a period of 5 - 10 minutes before they 
diminish in frequency and stop. When the calls stop, there will be 50 - 60 
filters remaining open, and they remain open until I disconnect the device, at 
which point they will all be closed. If the driver exposes only multi-channel 
input and output devices (2 filter factories), the number of filter Create 
calls will decrease to 60 - 80.

I am curious as to why this is happening. Is this normal behavior for Windows? 
I have examined the filter using KS Studio, and compared it to filters created 
by Windows USB audio class driver, and I am not noticing any significant issues 
or differences.

Thanks.

Cobey******************

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:
https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&amp;data=01%7C01%7Cmatthew.van.eerde%40microsoft.com%7Ccb8b9c4726114e89a65a08d6d95aff76%7C72f988bf86f141af91ab2d7cd011db47%7C1&amp;sdata=XdiNC4umPLq%2BCIQqCbEuVRrltNfQ1YPI%2FHvTUXnT3zk%3D&amp;reserved=0<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&data=02%7C01%7Cmatthew.van.eerde%40microsoft.com%7C5ae121608db54b39e28208d6e058b06c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636943068938045468&sdata=YCKqQl2wjXoJ6aG%2FicpM7fOJoqYrzkzETDLTR2bT4DI%3D&reserved=0>

Other related posts: