From nobody@FreeBSD.org  Tue Dec 30 11:07:19 2003
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 97DBD16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Dec 2003 11:07:19 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DB2A743D55
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Dec 2003 11:07:11 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id hBUJ7BdL062721
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Dec 2003 11:07:11 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id hBUJ7B3j062720;
	Tue, 30 Dec 2003 11:07:11 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200312301907.hBUJ7B3j062720@www.freebsd.org>
Date: Tue, 30 Dec 2003 11:07:11 -0800 (PST)
From: Stphane Witzmann <bill.area51@free.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Sound card Turtle Beach Santa Cruz not working
X-Send-Pr-Version: www-2.0

>Number:         60737
>Category:       kern
>Synopsis:       [sound] Sound card Turtle Beach Santa Cruz not working
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 30 11:10:00 PST 2003
>Closed-Date:    Fri Jan 13 07:12:22 GMT 2006
>Last-Modified:  Fri Jan 13 07:12:22 GMT 2006
>Originator:     Stphane Witzmann
>Release:        5.1-RELEASE
>Organization:
(computer engineering student)
>Environment:
FreeBSD Wolfenstein.glandeurs.org 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Tue Dec 23 17:42:21 CET 2003 root@Wolfenstein.glandeurs.org:/usr/obj/usr/src/sys/MYKERNEL  i386
>Description:
My mainboard has a CMI sound chip, and I installed a Turtle Beach Santa Cruz as an additional sound card. It is well recognized by the csa driver :

csa0: <CS4280/CS4614/CS4622/CS4624/CS4630> mem
0xe5000000-0xe50fffff,0xe5800000-
0xe5800fff at device 9.0 on pci0
csa: card is Turtle Beach Santa Cruz
pcib0: slot 9 INTA is routed to irq 10
pcm1: <CS461x PCM Audio> on csa0
pcm1: <Cirrus Logic CS4297A AC97 Codec>
midi0: <CS461x Midi Interface> on csa0

(pcm0 is the CMI chip)

But I cannot get a sound out of it, syslog says :
pcm1:play:0: play interrupt timeout, channel dead
when trying to play a MP3 (for example)

I also get an error when trying "cat /dev/dsp1" :
pcm1:record:0: record interrupt timeout, channel dead

Here is /dev/sndstat in case it helps :

FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <CMedia CMI8738> at io 0xb000 irq 10 (1p/1r/0v channels duplex
default)
        [pcm0:play:0]: spd 0, fmt 0x00000000/0x00000008, flags 00000000
        interrupts 0, underruns 0, ready 0
        {userland} -> feeder_root(0x00000000) -> {hardware}
        [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 00000000
        interrupts 0, overruns 0, hfree 16384, sfree 0
        {hardware} -> feeder_root(0x00000000) -> {userland}
pcm1: <CS461x PCM Audio> at irq 10 (1p/1r/0v channels duplex)
        [pcm1:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 00000000
        interrupts 0, overruns 0, hfree 4096, sfree 0
        {hardware} -> feeder_root(0x00000000) -> {userland}
        [pcm1:play:0]: spd 0, fmt 0x00000000/0x00000008, flags 00000000
        interrupts 0, underruns 0, ready 0
        {userland} -> feeder_root(0x00000000) -> {hardware}

Here are the kernel variables :

hw.snd.targetirqrate: 32
hw.snd.report_soft_formats: 1
hw.snd.verbose: 3
hw.snd.unit: 0
hw.snd.maxautovchans: 0
hw.snd.pcm0.buffersize: 16384
hw.snd.pcm0.vchans: 0
hw.snd.pcm0.spdif_enabled: 0
hw.snd.pcm1.buffersize: 0
hw.snd.pcm1.vchans: 0

>How-To-Repeat:
If the sound card happens to work, reboot, it won't work anymore. See "Fix the problem if known".
>Fix:
I just have to use the CMI sound card, reading a MP3 or typing "cat /dev/dsp0". After that, the Santa Cruz works fine. There is no change in the kernel variables between before and after it's working.

Here is /dev/sndstat when the Santa Cruz works :

pcm0: <CMedia CMI8738> at io 0xb000 irq 10 (1p/1r/0v channels duplex
default)
        [pcm0:play:0]: spd 0, fmt 0x00000000/0x00000008, flags 00000000
        interrupts 0, underruns 0, ready 0
        {userland} -> feeder_root(0x00000000) -> {hardware}
        [pcm0:record:0]: spd 8000, fmt 0x00000008, flags 00000000
        interrupts 0, overruns 0, hfree 256, sfree 131072
        {hardware} -> feeder_root(0x00000008) -> {userland}
pcm1: <CS461x PCM Audio> at irq 10 (1p/1r/0v channels duplex)
        [pcm1:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 00000000
        interrupts 0, overruns 0, hfree 4096, sfree 0
        {hardware} -> feeder_root(0x00000000) -> {userland}
        [pcm1:play:0]: spd 0, fmt 0x00000000/0x00000008, flags 00000000
        interrupts 0, underruns 0, ready 0
        {userland} -> feeder_root(0x00000000) -> {hardware}

I desactivated the CMI chip (mainboard jumper), now the Santa Cruz is pcm0, but it doen't change anything, except that I have no way of making it work. I tried playing something on a USB sound card (M-Audio Audiophile USB), that didn't 'unlock' the Santa Cruz.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sound 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Aug 22 07:15:50 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60737 
State-Changed-From-To: open->feedback 
State-Changed-By: netchild 
State-Changed-When: Wed Dec 28 19:27:46 UTC 2005 
State-Changed-Why:  
Is this still a problem with a recent -current or with 6.0-RELEASE and 
the sound patchset from http://people.freebsd.org/~ariff/? 

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

From: =?ISO-8859-1?Q?St=E9phane_Witzmann?= <stephane.witzmann@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/60737: [sound] Sound card Turtle Beach Santa Cruz not working
Date: Thu, 12 Jan 2006 15:14:05 +0100

 The problem seems to have been fixed (I tried with FreeSBIE 1.1 (based
 on FreeBSD 5.3) in console mode (no esd)).
State-Changed-From-To: feedback->closed 
State-Changed-By: ariff 
State-Changed-When: Fri Jan 13 07:11:07 UTC 2006 
State-Changed-Why:  
Fixed. Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60737 
>Unformatted:
