All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Gregoire Favre <greg@magma.unil.ch>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: emu10k1-pointer-bug-fix.dif
Date: Thu, 07 Aug 2003 16:26:04 +0200	[thread overview]
Message-ID: <s5h65l9lf2b.wl@alsa2.suse.de> (raw)
In-Reply-To: <20030807125113.GF1871@greg.unil.ch>

At Thu, 7 Aug 2003 14:51:13 +0200,
Gregoire Favre wrote:
> 
> Hello,
> 
> I want to use the http://bitstreamout.sourceforge.net/ and in it there
> is a dif about a bug:

oh, i remember this one in my deepest memory...

> 
> Index: alsa-kernel/pci/emu10k1/emupcm.c
> ===================================================================
> RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/emu10k1/emupcm.c,v
> retrieving revision 1.20
> diff -u -r1.20 emupcm.c
> --- alsa-kernel/pci/emu10k1/emupcm.c	9 Apr 2003 14:58:28 -0000	1.20
> +++ alsa-kernel/pci/emu10k1/emupcm.c	24 Apr 2003 09:59:19 -0000
> @@ -666,8 +666,11 @@
>  #else	/* EMU10K1 Open Source code from Creative */
>  	if (ptr < epcm->ccca_start_addr)
>  		ptr += runtime->buffer_size - epcm->ccca_start_addr;
> -	else
> +	else {
>  		ptr -= epcm->ccca_start_addr;
> +		if (ptr >= runtime->buffer_size)
> +			ptr -= runtime->buffer_size;
> +	}
>  #endif
>  	// printk("ptr = 0x%x, buffer_size = 0x%x, period_size = 0x%x\n", ptr, runtime->buffer_size, runtime->period_size);
>  	return ptr;
> 
> I have just checked my 2.6.0-test2-bk4 kernel, and it seems it's not
> applied: is it really a bug, should I really apply it?

it's a rather a workaround and is harmless in normal cases.
however, i don't know if this really fixes the problem.
when i gave this patch, the answer was no...

could someone verify this?
if this patch really matters, i'll commit it.


Takashi


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

      reply	other threads:[~2003-08-07 14:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-07 12:51 emu10k1-pointer-bug-fix.dif Gregoire Favre
2003-08-07 14:26 ` Takashi Iwai [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=s5h65l9lf2b.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=greg@magma.unil.ch \
    /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.