[alsa-devel] what is exactly pcm.boundary?

Clemens Ladisch clemens at ladisch.de
Fri Jan 6 09:09:00 CET 2017


Ricardo Biehl wrote:
> In this way, can I get the offset of hardware pointer in my pcm char device
> mmaped area with:
>
> 	offset_in_buffer = hw_ptr % buffer_size;  ?

Are you talking about code in your driver (where you are responsible for
asking the hardware), or user space code (where you must not directly
read hw_ptr)?  What is the actual problem you're trying to solve?


Regards,
Clemens


More information about the Alsa-devel mailing list