* Bug in pcm_lib.c ?? (using Xmms)
@ 2002-12-08 12:45 Benny Sjostrand
2002-12-08 18:13 ` Jaroslav Kysela
0 siblings, 1 reply; 4+ messages in thread
From: Benny Sjostrand @ 2002-12-08 12:45 UTC (permalink / raw)
To: alsa-devel
Hi!
Just updated CVS tree and recompiled. Everything works OK execpt that I
got this message in log
when using Xmms with ALSA-plugin and OSS-plugin. Using aplay the message
dont apear.
Dec 8 13:40:16 cactus kernel: ALSA ../alsa-kernel/core/pcm_lib.c:176:
BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x200
Dec 8 13:40:16 cactus kernel: ALSA ../alsa-kernel/core/pcm_lib.c:176:
BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x200
Dec 8 13:40:16 cactus kernel: ALSA ../alsa-kernel/core/pcm_lib.c:110:
BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x200
Dec 8 13:40:16 cactus kernel: ALSA ../alsa-kernel/core/pcm_lib.c:176:
BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x200
Dec 8 13:40:16 cactus kernel: ALSA ../alsa-kernel/core/pcm_lib.c:176:
BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x200
Dec 8 13:40:16 cactus kernel: ALSA
../../alsa-kernel/pci/cs46xx/dsp_spos_scb_lib.c:226:
cs46xx_dsp_proc_free_scb_desc: freeing PCMReader_SCB0
Dec 8 13:40:16 cactus kernel: ALSA
../../alsa-kernel/pci/cs46xx/dsp_spos_scb_lib.c:226:
cs46xx_dsp_proc_free_scb_desc: freeing SrcTask_SCB0
With the ALSA-plugin I got the message only one time, with the
OSS-plugin it apears about a 1000 of times.
(have not done any changes to the cs46xx driver yet, except what's in
current CVS ;) )
/Benny
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug in pcm_lib.c ?? (using Xmms)
2002-12-08 12:45 Bug in pcm_lib.c ?? (using Xmms) Benny Sjostrand
@ 2002-12-08 18:13 ` Jaroslav Kysela
2002-12-08 22:25 ` Benny Sjostrand
2002-12-09 0:59 ` Benny Sjostrand
0 siblings, 2 replies; 4+ messages in thread
From: Jaroslav Kysela @ 2002-12-08 18:13 UTC (permalink / raw)
To: Benny Sjostrand; +Cc: alsa-devel@lists.sourceforge.net
On Sun, 8 Dec 2002, Benny Sjostrand wrote:
> Hi!
>
> Just updated CVS tree and recompiled. Everything works OK execpt that I
> got this message in log
> when using Xmms with ALSA-plugin and OSS-plugin. Using aplay the message
> dont apear.
>
> Dec 8 13:40:16 cactus kernel: ALSA ../alsa-kernel/core/pcm_lib.c:176:
> BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x200
> Dec 8 13:40:16 cactus kernel: ALSA ../alsa-kernel/core/pcm_lib.c:176:
> BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x200
> Dec 8 13:40:16 cactus kernel: ALSA ../alsa-kernel/core/pcm_lib.c:110:
> BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x200
> Dec 8 13:40:16 cactus kernel: ALSA ../alsa-kernel/core/pcm_lib.c:176:
> BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x200
> Dec 8 13:40:16 cactus kernel: ALSA ../alsa-kernel/core/pcm_lib.c:176:
> BUG: stream = 0, pos = 0x4000, buffer size = 0x4000, period size = 0x200
> Dec 8 13:40:16 cactus kernel: ALSA
> ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_lib.c:226:
> cs46xx_dsp_proc_free_scb_desc: freeing PCMReader_SCB0
> Dec 8 13:40:16 cactus kernel: ALSA
> ../../alsa-kernel/pci/cs46xx/dsp_spos_scb_lib.c:226:
> cs46xx_dsp_proc_free_scb_desc: freeing SrcTask_SCB0
>
> With the ALSA-plugin I got the message only one time, with the
> OSS-plugin it apears about a 1000 of times.
> (have not done any changes to the cs46xx driver yet, except what's in
> current CVS ;) )
It's definitely a bug in CS46xx driver. I've changed the test for the ring
buffer pointer to be in range 0 .. buffer_size-1 . pointer equal to
buffer_size doesn't make any sense and it should be really zero.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug in pcm_lib.c ?? (using Xmms)
2002-12-08 18:13 ` Jaroslav Kysela
@ 2002-12-08 22:25 ` Benny Sjostrand
2002-12-09 0:59 ` Benny Sjostrand
1 sibling, 0 replies; 4+ messages in thread
From: Benny Sjostrand @ 2002-12-08 22:25 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: alsa-devel@lists.sourceforge.net
>
>
>It's definitely a bug in CS46xx driver. I've changed the test for the ring
>buffer pointer to be in range 0 .. buffer_size-1 . pointer equal to
>buffer_size doesn't make any sense and it should be really zero.
>
>
I believe that this is not a new bug, just undiscovered with previous
releases.
For the moment I got no idea what possibly could be wrong, depending on
which appl. used it only a few times when playbacking a stream.
/Benny
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug in pcm_lib.c ?? (using Xmms)
2002-12-08 18:13 ` Jaroslav Kysela
2002-12-08 22:25 ` Benny Sjostrand
@ 2002-12-09 0:59 ` Benny Sjostrand
1 sibling, 0 replies; 4+ messages in thread
From: Benny Sjostrand @ 2002-12-09 0:59 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: alsa-devel@lists.sourceforge.net
>
>
>It's definitely a bug in CS46xx driver. I've changed the test for the ring
>buffer pointer to be in range 0 .. buffer_size-1 . pointer equal to
>buffer_size doesn't make any sense and it should be really zero.
>
>
>
I guess I found a fix for this problem (at least the message disapears
from the log)
in cs46xx_lib.c in snd_cs46xx_playback_indirect_pointer(...) function:
if (bytes < 0)
bytes += buffer_size;
cpcm->hw_io = ptr;
cpcm->hw_ready -= bytes;
cpcm->sw_io += bytes;
- if (cpcm->sw_io > cpcm->sw_bufsize)
+ if (cpcm->sw_io >= cpcm->sw_bufsize)
cpcm->sw_io -= cpcm->sw_bufsize;
snd_cs46xx_playback_transfer(substream, 0);
I cant hear any difference in sound quality, maybe it's just not posible
to hear the difference ...
... and now it's too late, i'll continue tomorrow ...
/Benny
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-09 0:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-08 12:45 Bug in pcm_lib.c ?? (using Xmms) Benny Sjostrand
2002-12-08 18:13 ` Jaroslav Kysela
2002-12-08 22:25 ` Benny Sjostrand
2002-12-09 0:59 ` Benny Sjostrand
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.