All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benny Sjostrand <gorm@cucumelo.org>
To: Jaroslav Kysela <perex@suse.cz>
Cc: "alsa-devel@lists.sourceforge.net" <alsa-devel@lists.sourceforge.net>
Subject: Re: Bug in pcm_lib.c ?? (using Xmms)
Date: Mon, 09 Dec 2002 01:59:42 +0100	[thread overview]
Message-ID: <3DF3EAFE.9000709@cucumelo.org> (raw)
In-Reply-To: Pine.LNX.4.33.0212081905470.629-100000@pnote.perex-int.cz

>
>
>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

      parent reply	other threads:[~2002-12-09  0:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=3DF3EAFE.9000709@cucumelo.org \
    --to=gorm@cucumelo.org \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=perex@suse.cz \
    /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 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.