[alsa-devel] Something wrong with snd_pcm_avail_update
perex at perex.cz
Wed Sep 24 10:58:41 CEST 2008
On Wed, 24 Sep 2008, Lennart Poettering wrote:
> There seems to be something wrong with snd_pcm_update_avail() for mmap
> in recent 2.6.26 kernels:
> Quoting Alexander Gavrilov:
> Fedora 9 with kernel 220.127.116.11-29 exhibits a bug where
> the driver decrements its hw.ptr under certain stress
> conditions, or at least it appears so from debugging.
> It causes alsa-lib to give absurdly huge avail numbers
> to pulseaudio, which crashes it. This patch adds a
> work-around to avoid such unfriendly behavior until
> the bug is fixed.
> As this is not a real fix, it displays a message every
> time it is activated.
> (see the patch attached to that bug report)
> Takashi, Jaroslav, do you know anything about this?
If it's HDA hardware, the user might try to test the recent linux kernels
or the ALSA driver compiled from tarball available on
www.alsa-project.org. The hw position routines were improved recently for
the HDA driver.
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
More information about the Alsa-devel