[wdmaudiodev] Help in General Audio Test

  • From: Gaurav Khuntale <gauravkhuntale@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Mon, 28 Apr 2014 13:07:58 +0530

Hello,

I am working on a virtual audio driver.This driver is based on wavecyclic
port driver. I am trying to pass General audio test for the same driver but
i am getting failure in test case which i mentioned below,

IOCTL\KS defined\IOCTL_KS_WRITE_STREAM\Cancel IO

KSPIN_DATAFLOW_IN pin is currently in state KSSTATE_STOP; want it to be in
state KSSTATE_PAUSE
Setting KSPIN_DATAFLOW_IN pin to state KSSTATE_ACQUIRE
Setting KSPIN_DATAFLOW_IN pin to state KSSTATE_PAUSE
ERROR: Overlapped Event was NOT signaled within 30 seconds after
DeviceIoControl call.
ERROR: attempt to prime data returned 258 instead of ERROR_IO_PENDING


As per my understanding,this test is trying to write data even if pin is in
pause state and expecting return value ERROR_IO_PENDING. Here i am not able
to understand that how we can take care in miniport driver about handling
of IOCTL_KS_WRITE_STREAM as this request is completely handle by port
driver.
I observed that, our driver do get calls to
IMiniportWaveCyclicStream::GetPosition and IDmaChannel::CopyTo function
when test put a pin into pause state.

I am not sure but is this a bug in test only? Please help me.

Thanks.

Other related posts: