Re: [ALSA] emu10k1: hw_ptr skipping when unpausing mplayer

From: Piotr Kaczuba
Date: Tue Jul 21 2009 - 13:25:44 EST


On Tue, Jul 21, 2009 at 11:41:38AM +0200, Piotr Kaczuba wrote:
[...]
> No, it was with 2.6.30.1. I will try with the latest rc today evening.
[...]

With 2.6.31-rc3 there's definitely an improvement. Xrun_debug set to 5,
I see for example the following on unpause:

[ 430.788525] __ratelimit: 97 callbacks suppressed
[ 430.789516] PCM: hw_ptr skipping! [Q] (pos=3071, delta=16446,
period=1024, jdelta=1/342/0)
[ 430.809853] PCM: hw_ptr skipping! [Q] (pos=4095, delta=2047,
period=1024, jdelta=21/42/0)
[ 430.824984] PCM: hw_ptr skipping! (pos=4821, delta=2773, period=1024,
jdelta=36/57)
[ 430.827087] PCM: hw_ptr skipping! (pos=4922, delta=2874, period=1024,
jdelta=39/59)
[ 430.829350] PCM: hw_ptr skipping! (pos=5031, delta=2983, period=1024,
jdelta=41/62)
[ 430.831256] PCM: hw_ptr skipping! [Q] (pos=5122, delta=3074,
period=1024, jdelta=43/64/1)
[ 430.835786] PCM: hw_ptr skipping! (pos=5340, delta=2268, period=1024,
jdelta=4/47)
[ 430.837913] PCM: hw_ptr skipping! (pos=5442, delta=2370, period=1024,
jdelta=6/49)
[ 430.839881] PCM: hw_ptr skipping! (pos=5536, delta=2464, period=1024,
jdelta=8/51)
[ 430.842959] PCM: hw_ptr skipping! (pos=5684, delta=2612, period=1024,
jdelta=11/54)


But there's no flood of messages anymore and no tracebacks either. In
fact, mplayer continues to play without any stutter.

Thanks,
Piotr
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/