On Sun, Jul 07, 2002 at 08:42:14PM -0400, Paul Davis wrote:
> >> this is called to find out where the h/w pointer is in the ring buffer
> >> used for capture/playback. some devices do not support it, but most do.
> >
> >My card uses a queue, not a ring buffer. What should I do for this 
> >function? I can read a value for queue depth out of the card, but this 
> >doesn't appear to be what the mid-level code is looking for.
> 
> since queues and ring buffers are really rather similar, perhaps you
> could explain what the card does when it reaches the end of the queued
> data.

I'll have to perform the experiment. Hopefully, this week sometime. 

If the value wraps around, then it is a ring buffer after all (and I
can return something like (sw_pointer+queue_depth) % buffer_length ??) 

If the value stays at zero, then... well, I just hope it doesn't.

Mark


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
We have stuff for geeks like you.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to