[alsa-devel] [patch] snd-pcsp: silent misleading warning

Stas Sergeev stsp at aknet.ru
Sat May 17 17:50:42 CEST 2008


Hello.

Roberto Oppedisano wrote:
> I noticed that when I run
> aplay -D plughw:2,0 /usr/share/sounds/KDE_Logout.wav
>  I get a flood of:
> [  417.338143] PCSP: playback_ptr inconsistent (4642 4661 18645)
It turns out that the buffer size you
get, is not evenly devided by period size.
18645 % 4661 = 1.
That (wrongly) triggers the warning.
This may very well be an alsa bug, or
may not, but the code in the driver is
handling that properly, so there is no
need for such a verbose warning.

The attached patch shuts down the warning.
Takashi, could you please apply?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcsp_fixwarn.diff
Type: text/x-patch
Size: 1124 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20080517/594558ee/attachment.diff 


More information about the Alsa-devel mailing list