[alsa-devel] hw_ptr_interrupt removal broke interrupt pointer updates
clemens at ladisch.de
Wed Jan 27 15:12:56 CET 2010
Jaroslav Kysela wrote:
> On Wed, 27 Jan 2010, Clemens Ladisch wrote:
> > A somewhat unrelated issue: Both old and new code assume that
> > hw_ptr==0 is a period boundary, but that is not true if the boundary
> > is not an integer multiple of the period size, and the pointer wraps.
> > I'm not sure what happens then.
> I'm not exactly sure what you're talking about. Where is the
> hw_ptr==0 assumption?
This code, which tries to align hw_ptr_interrupt to a period boundary:
runtime->hw_ptr_interrupt = new_hw_ptr -
(new_hw_ptr % runtime->period_size);
More information about the Alsa-devel