[wdmaudiodev] Re: WaveRT

  • From: Chandan Sourav Pal <chandansouravpal@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Sat, 26 Jun 2010 18:03:58 +0530

Hi Robert,

You are correct -- In WaveRT audio driver model 'Position register' should
wraps around. If you look into the Scatter-Gather DMA and Buffer
Looping(page 110 last paragraph -- I doubt audio hardware should support the
automatic buffer looping and if the hardware does not support then miniport
audio driver should take care of that.

Chandan

On Sat, Jun 26, 2010 at 5:52 PM, Robert Bielik <robert.bielik@xxxxxxxxxx>wrote:

> Chandan Sourav Pal skrev:
>
>  HI Robert,
>>
>> Does your audio hardware support automatic buffer looping?
>>
>
> No idea really, but reading the WaveRT Port document (page 11, Position
> Registers) it says
> "... When the position register reaches the end of the cyclic buffer, it
> automatically
> wraps around to the beginning of the buffer (resets to zero) and continues
> to increment
> as the buffer position advances."
>
> As a WaveRT device client, it really is not a problem since I use power of
> two buffer sizes
> and can mask out the actual buffer position easily that way:
> ULONG bufferPosition = (*pPositionRegister)&(bufSize-1);
>
> But it struck me as kind of odd, since it seems to go against the
> specification.
> /R
> ******************
>
> 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:
> http://www.wdmaudiodev.com/
>
>

Other related posts: