Bug 20115

Summary: pcm0 doesnot work on Panasonic Let's note CF-A1EV (neomagic 256AV)
Product: Base System Reporter: fujiwara <fujiwara>
Component: kernAssignee: greid
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description fujiwara 2000-07-23 07:40:01 UTC
	previous pcm driver works fine.
	but with current driver, kernel displays:

pcm0: play interrupt timeout, channel dead

	and doesnot play sound.

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.
How-To-Repeat: 
	for example: mpg123 *.mp3
Comment 1 billf 2000-07-23 17:47:47 UTC
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
Comment 2 fujiwara 2000-07-23 18:33:06 UTC
> 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
Comment 3 Sheldon Hearn freebsd_committer freebsd_triage 2000-07-24 17:34:32 UTC
Responsible Changed
From-To: freebsd-bugs->cg

Over to the pcm(4) maintainer.
Comment 4 greid freebsd_committer freebsd_triage 2001-07-13 02:41:55 UTC
State Changed
From-To: open->feedback

Is this still a problem with more recent sources? 


Comment 5 greid freebsd_committer freebsd_triage 2001-07-13 02:41:55 UTC
Responsible Changed
From-To: cg->greid

I'll handle feedback
Comment 6 greid freebsd_committer freebsd_triage 2001-09-12 16:43:58 UTC
State Changed
From-To: feedback->closed

Feedback timeout