From nobody@FreeBSD.org  Tue Feb 27 18:27:22 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 7A73737B71A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Feb 2001 18:27:22 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f1S2RMc90743;
	Tue, 27 Feb 2001 18:27:22 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102280227.f1S2RMc90743@freefall.freebsd.org>
Date: Tue, 27 Feb 2001 18:27:22 -0800 (PST)
From: stannous@cisco.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: T20 CS4624/CS4297a sound problems: "pcm0: play interrupt timeout, channel dead"
X-Send-Pr-Version: www-1.0

>Number:         25442
>Category:       i386
>Synopsis:       T20 CS4624/CS4297a sound problems: "pcm0: play interrupt timeout, channel dead"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    cg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 27 18:30:01 PST 2001
>Closed-Date:    Mon Aug 20 12:00:15 PDT 2001
>Last-Modified:  Mon Aug 20 12:00:33 PDT 2001
>Originator:     Sam Tannous
>Release:        4.2-Release Stable
>Organization:
Me
>Environment:
FreeBSD x1.cisco.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: 
Thu Feb 22 09:26:44 EST 2001     
stannous@x1.cisco.com:/usr/src/sys/compile/MYKERNEL  i386

>Description:
I have a CS4624/CS4297a.  (It's a T20, model 2647 44U)

I'm having problems getting sound working properly:
I've almost got it working but
when I play an mp3 file (or use XMMS), I get:
   
   pcm0: play interrupt timeout, channel dead

I'm using FreeBSD 4.2 Stable and I recompiled
the kernel with (and all the permutations of...)
options PNPBIOS
device  pcm
> cat /dev/sndstat 
FreeBSD Audio Driver (newpcm) Feb  7 2001 22:00:05
Installed devices:
pcm0: <CS461x PCM Audio> at irq 11 (1p/1r channels duplex)
> 
   
>How-To-Repeat:
Compile the 4.2 Release kernel on the IBM T20 (model 2647 44U)
(which IBM claims is a CS4624/CS4297a chip).  Then reboot,
and play an mp3 file.  You should hear nothing and see 

pcm0: play interrupt timeout, channel dead

in your /var/log/messages.  

The mixer seems to work fine (contolling volume on the 
CD player) and I can play CD's and 
hear the music. 
>Fix:
None that I know of.  I've asked on freebsd-questions and 
freebsd-mobile and the consensus is that it's a bug.

(let me know if you need a tester).
Regards,
Sam
>Release-Note:
>Audit-Trail:

From: Sam Tannous <stannous@cisco.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/25442: T20 CS4624/CS4297a sound problems: "pcm0: play interrupt timeout, channel dead"
Date: Wed, 28 Feb 2001 08:49:41 -0500

 I forgot to mention that I did 
 try the latest Stable source (I believe 
 it was #6) and had the same problems.
 
 I also failed to mention that I 
 tried adding "device csa" in my kernel
 config (as well as "options PNPBIOS"
 and "device pcm"....in fact, I tried
 every permutation of these three and
 nothing worked (of course, the kernel wouldn't
 recognize the chip without option PNPBIOS).
 
 Thanks,
 Sam
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Mon Mar 12 18:26:14 PST 2001 
State-Changed-Why:  
Problem may already be resolved 


Responsible-Changed-From-To: freebsd-bugs->cg 
Responsible-Changed-By: kris 
Responsible-Changed-When: Mon Mar 12 18:26:14 PST 2001 
Responsible-Changed-Why:  
cg is Mr Sound 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25442 

From: Kris Kennaway <kris@obsecurity.org>
To: stannous@cisco.com
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: i386/25442: T20 CS4624/CS4297a sound problems: "pcm0: play interrupt timeout, channel dead"
Date: Mon, 12 Mar 2001 18:26:10 -0800

 --zaRBsRFn0XYhEU69
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Tue, Feb 27, 2001 at 06:27:22PM -0800, stannous@cisco.com wrote:
 
 > I'm having problems getting sound working properly:
 > I've almost got it working but
 > when I play an mp3 file (or use XMMS), I get:
 >   =20
 >    pcm0: play interrupt timeout, channel dead
 
 There have been a number of PCM fixes in 4.x in recent weeks - can you
 upgrade and verify whether the problem persists?
 
 Kris
 
 --zaRBsRFn0XYhEU69
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.4 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE6rYVBWry0BWjoQKURAky2AJ45tU0d+KJUyXLTqkwkWumya4RC0QCghjao
 f0udIUplHXDuYVa+NPstcHc=
 =M2dD
 -----END PGP SIGNATURE-----
 
 --zaRBsRFn0XYhEU69--

From: Kris Kennaway <kris@obsecurity.org>
To: Sam Tannous <stannous@cisco.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/25442: T20 CS4624/CS4297a sound problems: "pcm0: play interrupt timeout, channel dead"
Date: Tue, 13 Mar 2001 03:07:07 -0800

 --qcHopEYAB45HaUaB
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Tue, Mar 13, 2001 at 03:52:34AM -0500, Sam Tannous wrote:
 > On Tue, Mar 13, 2001 at 12:08:42AM -0800, Kris Kennaway wrote:
 > > 4.x =3D -stable, 5.x =3D -current.
 >=20
 > still no joy.
 >=20
 > [stannous-dsl3 ~] > uname -a
 > FreeBSD stannous-dsl3.cisco.com 4.3-BETA FreeBSD 4.3-BETA #3: Tue Mar 13 =
 03:40:27 EST 2001     stannous@stannous-dsl3.cisco.com:/usr/src/sys/compile=
 /MYKERNEL  i386
 >=20
 > Let me know if you need any other information
 > (or want me to try something else).
 
 Okay, thanks for checking. Now it's up to Cameron to figure out :-)
 
 Kris
 
 --qcHopEYAB45HaUaB
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.4 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE6rf9ZWry0BWjoQKURAjtBAKC/rVYt7+kI4QJrKXqQC38jYBh0ywCg5w78
 iIgxD7BKdvOmeSnyXQ71+9k=
 =rsVM
 -----END PGP SIGNATURE-----
 
 --qcHopEYAB45HaUaB--

From: Sam Tannous <stannous@cisco.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/25442: T20 CS4624/CS4297a sound problems: "pcm0: play interrupt timeout, channel dead"
Date: Fri, 11 May 2001 09:06:30 -0400

 I did manage to try OpenBSD 2.8 and the sound card 
 worked fine.  Of course, compiling some applications
 was "challenging" so I wiped it clean and put FreeBSD
 4.3 on.   I haven't compared the pcm driver on OpenBSD
 to that on FreeBSD (perhaps I'm being too simplistic
 is assuming that the underlying architecture is similar...)
 
 Let me know if you need any other information
 or if I can be of help in any other way.
 
 Regards,
 Sam

From: Sam Tannous <stannous@cisco.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/25442: T20 CS4624/CS4297a sound problems: "pcm0: play interrupt timeout, channel dead"
Date: Fri, 1 Jun 2001 11:13:47 -0400

 Sound works fine (as does the Lucent modem) if you 
 follow the directions located here (even though this
 is a A21p, the information is valid for the T20
 as they share the same sound card (CS4614) and modem):
 
 http://www.personal.psu.edu/faculty/r/e/reh18/A21p/A21p.html
 
 Basically, you have to patch csa.c (I believe the 
 patch has already been committed to the source tree)
 and recompile the kernel with only "device pcm" 
 "device csa" (you don't need "options PNPBIOS").
 (also note that you must go into the bios 
 configuration and disable the power management 
 for pci as descibed above).
 
 The patch is here:
 
 Index: csa.c
 ===================================================================
 RCS file: /usr/home/ncvs/src/sys/dev/sound/pci/csa.c,v
 retrieving revision 1.8.2.3
 diff -u -r1.8.2.3 csa.c
 --- csa.c       2001/02/03 01:29:10     1.8.2.3
 +++ csa.c       2001/05/06 00:27:07
 @@ -128,10 +128,10 @@
         scp->dev = dev;
  
         /* Wake up the device. */
 -       stcmd = pci_read_config(dev, PCIR_COMMAND, 4);
 +       stcmd = pci_read_config(dev, PCIR_COMMAND, 2);
         if ((stcmd & PCIM_CMD_MEMEN) == 0 || (stcmd & PCIM_CMD_BUSMASTEREN) == 0) {
                 stcmd |= (PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN);
 -               pci_write_config(dev, PCIR_COMMAND, 4, stcmd);
 +               pci_write_config(dev, PCIR_COMMAND, stcmd, 2);
         }
  
         /* Allocate the resources. */
 
 
 Regards,
 Sam

From: Sam Tannous <stannous@cisco.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/25442: T20 CS4624/CS4297a sound problems: "pcm0: play interrupt timeout, channel dead"
Date: Wed, 25 Jul 2001 06:27:09 -0500

 This PR can be closed
 
 -- Sam
State-Changed-From-To: feedback->closed 
State-Changed-By: phk 
State-Changed-When: Mon Aug 20 12:00:15 PDT 2001 
State-Changed-Why:  
see log 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25442 
>Unformatted:
 >dmesg
 
 ...
 pci0: <unknown card> (vendor=0x115d, dev=0x000c) at 3.1 irq 11
 csa0: <Crystal Semiconductor CS4614/4622/4624 Audio accelerator/4280 Audio controller> mem 0xe8000000-0xe80fffff,0xe8122000-0xe8122fff irq 11 at device 5.0 on pci0
 pcm0: <CS461x PCM Audio> on csa0
 ...
 
 
 
