AnsweredAssumed Answered

Alsa overrun/underrun errors

Question asked by Yehuda Stern on Mar 23, 2016
Latest reply on Mar 23, 2016 by igorpadykov


I'm using 2 TLV320AIC3106 codecs, connected to SSI1 and SSI2, and I recently changed the sampling rate from 44.1KHz to 48KHz.

When I run alsa loops (see below), I usually get the xrun error message roughly once in every 2 minutes:  overrun!!! (at least xx ms long) or underrun!!! (at least xx ms long).

BTW, before changing the sampling rate, the error messages appeared a lot more often (every couple of seconds).

This problem happens with both codecs, even if the loops are internal for each codec.   Here are the alsa loops I run:

arecord -D hw:0 -f S16_LE -r 48000 -B 8000 -F 1000 -c 2 | aplay -D hw:0 -f S16_LE -r 48000 -B 4000 -F 2000 -c 2run  |

arecord -D hw:1 -f S16_LE -r 48000 -B 8000 -F 1000 -c 2 | aplay -D hw:1 -f S16_LE -r 48000 -B 4000 -F 2000 -c 2