[alsa-devel] Stale data interleaved in capture driver

Clemens Ladisch clemens at ladisch.de
Mon Aug 1 08:34:11 CEST 2016


Rob Nertney wrote:
> an IRQ every 32Bytes (half-frame)
>
> I wrote my handler as described in the high-frequency interrupts described
> here:
> http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/ch05s07.html

This does not make sense; you need a timer only when you do not have
a proper interrupt.  Why do you think you need to do it this way?

> My data is valid until 1/4 buffer full, then it interleaves stale (lower
> numbers) in, replacing the desired numbers. It's sporadic, and it appears
> to repeat, as if ALSA never returns to the 0-offset of dma_area.

ALSA just reports what your driver tells it; this sounds like a bug
in your driver or in the hardware.


Regards,
Clemens


More information about the Alsa-devel mailing list