[wdmaudiodev] Re: KSATTRIBUTE in PortCls use MiniportWaveCyclic

  • From: "Daniel Sisolak" <dsisolak@xxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 26 Aug 2013 14:47:20 +0000

Hello Tzung-Dar,

This is definitely a bug in portcls. I debugged this a couple of weeks ago 
myself. I found that that this is related to the fact that portcls adds a 
DSOUND datarange to the list of dataranges exposed by the miniport. In doing, 
so it copies the attribute flag, but not the attribute itself (at least that is 
my theory based on the debugger output). Therefore when KS sees the flag and 
tries to do a match on the attribute, the attribute pointer is garbage and an 
AV crash ensues (as you have seen).

I have already reported this to MS. They have agreed that it is an issue they 
need to address.

Cheers,
DJ

From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Tsai Tzung-Dar
Sent: Monday, August 26, 2013 4:37 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] KSATTRIBUTE in PortCls use MiniportWaveCyclic

Hi all:
Does any one know how to add KSATTRIBUTE support by use WaveCyclic. I fill 
Flags field with KSDATARANGE_ATTRIBUTES. And append KSATTRIBUTE after 
KSDATARANGE_AUDIO. The driver can load correctly. But when start to capture 
audio, I got BSOD and dead in KS.sys. When modify my code to use WaveRT, 
capture audio can run correctly with out BSOD.
Does this is bug in portcls or WaveCyclic can not support KSATTRIBUTE?

BR,
Tzung-Dar Tsai

Other related posts: