* sound/core/pcm_lib.c:158: BUG
@ 2004-12-18 23:53 Olaf Hering
2004-12-19 0:34 ` Lee Revell
0 siblings, 1 reply; 4+ messages in thread
From: Olaf Hering @ 2004-12-18 23:53 UTC (permalink / raw)
To: alsa-devel
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.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sound/core/pcm_lib.c:158: BUG
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
0 siblings, 1 reply; 4+ messages in thread
From: Lee Revell @ 2004-12-19 0:34 UTC (permalink / raw)
To: Olaf Hering; +Cc: alsa-devel
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.
Lee
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sound/core/pcm_lib.c:158: BUG
2004-12-19 0:34 ` Lee Revell
@ 2004-12-20 14:08 ` Takashi Iwai
2004-12-20 20:19 ` Olaf Hering
0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2004-12-20 14:08 UTC (permalink / raw)
To: Lee Revell; +Cc: Olaf Hering, alsa-devel
[-- 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;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sound/core/pcm_lib.c:158: BUG
2004-12-20 14:08 ` Takashi Iwai
@ 2004-12-20 20:19 ` Olaf Hering
0 siblings, 0 replies; 4+ messages in thread
From: Olaf Hering @ 2004-12-20 20:19 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Lee Revell, alsa-devel
On Mon, Dec 20, Takashi Iwai wrote:
> 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?
I havent seen that warning since 2 hours, so I guess it helps.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-12-20 20:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-12-20 20:19 ` Olaf Hering
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.