From: Takashi Iwai Subject: Re: Something wrong with snd_pcm_avail_update Date: Wed, 24 Sep 2008 09:56:29 +0200 Message-ID: References: <20080924001954.GA5422@tango.0pointer.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id D47B424333 for ; Wed, 24 Sep 2008 09:56:29 +0200 (CEST) In-Reply-To: <20080924001954.GA5422@tango.0pointer.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Lennart Poettering Cc: ALSA Development Mailing List List-Id: alsa-devel@alsa-project.org At Wed, 24 Sep 2008 02:19:54 +0200, Lennart Poettering wrote: > > Heya! > > 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 2.6.26.3-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. > > > https://bugzilla.redhat.com/show_bug.cgi?id=462200 > > (see the patch attached to that bug report) > > Takashi, Jaroslav, do you know anything about this? The DMA position handling on some HD-audio hardware is unstable. This could be a reason. The latest 2.6.27-rc* kernel has a few workarounds for such. Give it a try. Takashi