[wdmaudiodev] WaveCyclic Driver, sample rate changed by hardware

  • From: Ed Tottenham <Ed.Tottenham@xxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 29 Oct 2019 18:34:35 +0000

Hi there,

Can someone tell me how sample rate changes should be "pushed" up to the Port 
Driver.

I need to modify a WaveCyclic Miniport Driver to be able to handle sample rate 
changes which come from the hardware.

My first attempt was to call GenerateEventList() specifying 
KSEVENT_PINCAPS_FORMATCHANGE as the Event ID and KSEVENTSETID_PinCapsChange as 
the Event Set.

But, doing this seems to cause the Port Driver to start rebuilding the 
endpoints, proposing just about every sample rate under the sun.

Effectively, I need to let the hardware set the sample rate if it feels it 
needs to, but I also want WASAPI to be able to change it too.

Can this be achieved?

Ed Tottenham

Other related posts: