From: Takashi Iwai <tiwai@suse.de>
To: Lee Revell <rlrevell@joe-job.com>
Cc: Olaf Hering <olh@suse.de>, alsa-devel@lists.sourceforge.net
Subject: Re: sound/core/pcm_lib.c:158: BUG
Date: Mon, 20 Dec 2004 15:08:16 +0100 [thread overview]
Message-ID: <s5h4qihvz8v.wl@alsa2.suse.de> (raw)
In-Reply-To: <1103416452.28301.5.camel@krustophenia.net>
[-- Attachment #1: Type: text/plain, Size: 777 bytes --]
At Sat, 18 Dec 2004 19:34:12 -0500,
Lee Revell wrote:
>
> On Sun, 2004-12-19 at 00:53 +0100, Olaf Hering wrote:
> > Is this just debug output, or should I be worried about it?
> >
> > linux-2.6.10-rc3-olh/sound/core/pcm_lib.c:158: BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x1000
> >
> > This is an ibook2, playing mp3 with xmms, alsa version is 1.0.3, from sles9.
> > I remember no failures in the last couple hours.
>
> That message indicates that the hardware pointer returned by the pointer
> callback was beyond the end of the buffer which should not be possible.
>
> This could indicate an off by one error in the driver, it looks like the
> erroneous position is one sample past the end of the buffer.
Does the patch below work?
Takashi
[-- Attachment #2: Type: text/plain, Size: 584 bytes --]
Index: alsa-kernel/ppc/pmac.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/ppc/pmac.c,v
retrieving revision 1.51
diff -u -r1.51 pmac.c
--- alsa-kernel/ppc/pmac.c 15 Dec 2004 21:45:54 -0000 1.51
+++ alsa-kernel/ppc/pmac.c 20 Dec 2004 14:06:46 -0000
@@ -318,7 +318,8 @@
stat = ld_le16(&cp->xfer_status);
if (stat & (ACTIVE|DEAD)) {
count = in_le16(&cp->res_count);
- count = rec->period_size - count;
+ if (count)
+ count = rec->period_size - count;
}
#endif
count += rec->cur_period * rec->period_size;
next prev parent reply other threads:[~2004-12-20 14:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-18 23:53 sound/core/pcm_lib.c:158: BUG Olaf Hering
2004-12-19 0:34 ` Lee Revell
2004-12-20 14:08 ` Takashi Iwai [this message]
2004-12-20 20:19 ` Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5h4qihvz8v.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=olh@suse.de \
--cc=rlrevell@joe-job.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox