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

Clemens Ladisch cladisch at fastmail.net
Mon Jun 25 13:00:39 CEST 2007


Pharaoh . wrote:
> >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.
> 
> I am getting the interrupts, but why there wont be any interrupt for
> 10 seconds?

I don't quite understand this sentence.  You do get interrupts?
And snd_pcm_period_elapsed() is not called?

> I am setting the periods in prepare as periods = runtime->period, so
> interrupts should at period boundaries.

runtime->periods is the number of periods.  I don't know how your
hardware works, but I guess it wants to know the period size, i.e.,
runtime->period_size converted to bytes.


Regards,
Clemens


More information about the Alsa-devel mailing list