[alsa-devel] Input/output error while playing a file using aplay

Clemens Ladisch cladisch at fastmail.net
Mon Jun 25 08:56:37 CEST 2007

Pharaoh . wrote:
> ...
> It waits here for sometime and then I get
> snd_omap_alsa_trigger starte error: Input/output error

The ALSA framework will stop the stream and return the error code EIO
when there was no interrupt for ten seconds, i.e., when
snd_pcm_period_elapsed() was not called.

Either s->active got corrupted, or your interrupt handler never got

BTW: snd_pcm_period_elapsed() can stop the stream in some situations,
so you should move this call to the end of the interrupt handler, or
check s->active again after calling it.


More information about the Alsa-devel mailing list