From fujiwara@f.rcac.tdi.co.jp  Sat Jul 22 23:32:56 2000
Return-Path: <fujiwara@f.rcac.tdi.co.jp>
Received: from f.rcac.tdi.co.jp (spacecraft.f.rcac.tdi.co.jp [202.249.17.133])
	by hub.freebsd.org (Postfix) with SMTP id 5227C37B7F8
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Jul 2000 23:32:54 -0700 (PDT)
	(envelope-from fujiwara@f.rcac.tdi.co.jp)
Received: (qmail 729 invoked by uid 0); 23 Jul 2000 06:32:51 -0000
Message-Id: <20000723063251.728.qmail@f.rcac.tdi.co.jp>
Date: 23 Jul 2000 06:32:51 -0000
From: fujiwara@rcac.tdi.co.jp
Sender: fujiwara@f.rcac.tdi.co.jp
Reply-To: fujiwara@rcac.tdi.co.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: pcm0 doesnot work on Panasonic Let's note CF-A1EV (neomagic 256AV)
X-Send-Pr-Version: 3.2

>Number:         20115
>Category:       kern
>Synopsis:       pcm0 doesnot work on Panasonic Let's note CF-A1EV (neomagic 256AV)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    greid
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 22 23:40:01 PDT 2000
>Closed-Date:    Wed Sep 12 08:43:58 PDT 2001
>Last-Modified:  Wed Sep 12 08:44:06 PDT 2001
>Originator:     Kazunori Fujiwara <fujiwara@rcac.tdi.co.jp>
>Release:        FreeBSD 4.1-RC i386
>Organization:
>Environment:

	hardware: Panasonic Let's Note CF-A1EV
	OS: FreeBSD 4-stable (July 21, 2000)
	    with newpcm ds1 driver (2000/07/19 14:18:47 PDT)

	kernel message shows:

pci0: <NeoMagic MagicMedia 256AV SVGA controller> at 2.0 irq 10
pcm0: <NeoMagic 256AV> mem 0xfec00000-0xfecfffff,0xfe400000-0xfe7fffff irq 10 at device 2.1 on pci0

>Description:

	previous pcm driver works fine.
	but with current driver, kernel displays:

pcm0: play interrupt timeout, channel dead

	and doesnot play sound.

>How-To-Repeat:

	for example: mpg123 *.mp3

>Fix:

	my poor fix is under this.
	my note PC plays good with this patch.
	please correct this problem.

	ES1371 system plays good without/with this patch.

Index: sys/dev/sound/pcm/channel.c
===================================================================
RCS file: /CVS/src/sys/dev/sound/pcm/channel.c,v
retrieving revision 1.19.2.3
diff -u -r1.19.2.3 channel.c
--- sys/dev/sound/pcm/channel.c	2000/07/19 21:18:46	1.19.2.3
+++ sys/dev/sound/pcm/channel.c	2000/07/22 10:22:45
@@ -484,6 +484,7 @@
 			/* Fill up the buffers with new pcm data. */
 			res = buf->uio_resid;
   			while (chn_wrfeed2nd(c, buf) > 0);
+chn_wrintr(c);
 			if (buf->uio_resid < res)
 				count = hz;
 			else


>Release-Note:
>Audit-Trail:

From: Bill Fumerola <billf@chimesnet.com>
To: fujiwara@rcac.tdi.co.jp
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/20115: pcm0 doesnot work on Panasonic Let's note CF-A1EV (neomagic 256AV)
Date: Sun, 23 Jul 2000 12:47:47 -0400

 On Sun, Jul 23, 2000 at 06:32:51AM -0000, fujiwara@rcac.tdi.co.jp wrote:
 
 > Index: sys/dev/sound/pcm/channel.c
 > ===================================================================
 > RCS file: /CVS/src/sys/dev/sound/pcm/channel.c,v
 > retrieving revision 1.19.2.3
 > diff -u -r1.19.2.3 channel.c
 > --- sys/dev/sound/pcm/channel.c	2000/07/19 21:18:46	1.19.2.3
 > +++ sys/dev/sound/pcm/channel.c	2000/07/22 10:22:45
 > @@ -484,6 +484,7 @@
 >  			/* Fill up the buffers with new pcm data. */
 >  			res = buf->uio_resid;
 >    			while (chn_wrfeed2nd(c, buf) > 0);
 > +chn_wrintr(c);
 >  			if (buf->uio_resid < res)
 >  				count = hz;
 >  			else
 
 Try this as well:
 
 Index: channel.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/dev/sound/pcm/channel.c,v
 retrieving revision 1.32
 diff -u -r1.32 channel.c
 --- channel.c	2000/06/20 23:42:08	1.32
 +++ channel.c	2000/07/22 17:36:34
 @@ -234,7 +234,7 @@
  		b->fl = b->bufsize - b->rl;
  	  	b->underflow = 0;
  	} else {
 -		/* chn_dmaupdate(c); */
 +		chn_dmaupdate(c);
  	}
  }
  
 
 -- 
 Bill Fumerola - Network Architect, BOFH / Chimes, Inc.
                 billf@chimesnet.com / billf@FreeBSD.org
 
 
 
 

From: fujiwara@rcac.tdi.co.jp
To: billf@chimesnet.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/20115: pcm0 doesnot work on Panasonic Let's note
 CF-A1EV (neomagic 256AV)
Date: Mon, 24 Jul 2000 02:33:06 +0900 (JST)

 > From: Bill Fumerola <billf@chimesnet.com>
 > Try this as well:
 
 pcm0 plays good with this patch.
 Thank you.
 
 > Index: channel.c
 > ===================================================================
 > RCS file: /home/ncvs/src/sys/dev/sound/pcm/channel.c,v
 > retrieving revision 1.32
 > diff -u -r1.32 channel.c
 > --- channel.c	2000/06/20 23:42:08	1.32
 > +++ channel.c	2000/07/22 17:36:34
 > @@ -234,7 +234,7 @@
 >  		b->fl = b->bufsize - b->rl;
 >  	  	b->underflow = 0;
 >  	} else {
 > -		/* chn_dmaupdate(c); */
 > +		chn_dmaupdate(c);
 >  	}
 >  }
 >  
 > 
 > -- 
 > Bill Fumerola - Network Architect, BOFH / Chimes, Inc.
 >                 billf@chimesnet.com / billf@FreeBSD.org
 
Responsible-Changed-From-To: freebsd-bugs->cg 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Jul 24 09:34:32 PDT 2000 
Responsible-Changed-Why:  
Over to the pcm(4) maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20115 
State-Changed-From-To: open->feedback 
State-Changed-By: greid 
State-Changed-When: Thu Jul 12 18:41:55 PDT 2001 
State-Changed-Why:  
Is this still a problem with more recent sources? 


Responsible-Changed-From-To: cg->greid 
Responsible-Changed-By: greid 
Responsible-Changed-When: Thu Jul 12 18:41:55 PDT 2001 
Responsible-Changed-Why:  
I'll handle feedback 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=20115 
State-Changed-From-To: feedback->closed 
State-Changed-By: greid 
State-Changed-When: Wed Sep 12 08:43:58 PDT 2001 
State-Changed-Why:  
Feedback timeout 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=20115 
>Unformatted:
