[alsa-devel] underruns and strange code in pcm_rate.c

Stas Sergeev stsp at aknet.ru
Thu Nov 8 10:05:21 CET 2007


Takashi Iwai wrote:
> Yeah I've seen the problem,
Grrr... so you reproduced the
problem already, right?

> but as I wrote, it's basically because you
> use periods=2 and unaligned sample rates.
I do not - maybe libao does, but in
fact I am sure also the sound servers
have the same problem.

> So, of course, it doesn't work.
It does - have you tried my patch?

> 	slave.periods 3
> 	slave.period_size 4096
> then you'll hear the improvement, I guess.
So you already tried everything - then
why asking me for the test-case?
Anyway. There is a bug. And not the
only one. You knew the workaround
while I was searching for the fix.
Now you decide what is better - fix
it or apply to workarounds.
Btw, I can still reproduce the underrun
by rapidly switching the consoles, even
though now it is harder to reproduce.

More information about the Alsa-devel mailing list