Skip to contentSkip to conversation

Underrun errors in aplay

DISCUSSION Barclay, Bruce 2 participants 2 messages Mar 14, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

I have written a driver for Alsa and I think the sound is correct but I do get underrun errors. I don't understand how aplay would know if I am starved. This doesn't make sense to me. I would only think that the driver should know about underruns but maybe I am confused with this.

I am wondering if I am calling snd_pcm_period_elapsed too often. I am calling that when I have free H/W buffers.
Thanks, Bruce

#2 lore raw
Quoted 2 lines · Bruce

I am wondering if I am calling snd_pcm_period_elapsed too often. I am calling that when I have free H/W buffers.

I believe that function is only supposed to be called once, and only after a period has been played.

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale