From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 30 11:10:04 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ECD616A4CE for ; Tue, 30 Dec 2003 11:10:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 711BC43D41 for ; Tue, 30 Dec 2003 11:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBUJA1FR079201 for ; Tue, 30 Dec 2003 11:10:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBUJA1RF079200; Tue, 30 Dec 2003 11:10:01 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 30 Dec 2003 11:10:01 -0800 (PST) Resent-Message-Id: <200312301910.hBUJA1RF079200@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stéphane Witzmann Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97DBD16A4CE for ; 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 ; 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 ; 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: Stéphane Witzmann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.0 Subject: kern/60737: Sound card Turtle Beach Santa Cruz not working X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 19:10:04 -0000 >Number: 60737 >Category: kern >Synopsis: Sound card Turtle Beach Santa Cruz not working >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 30 11:10:00 PST 2003 >Closed-Date: >Last-Modified: >Originator: Stéphane 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: 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: on csa0 pcm1: midi0: 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: 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: 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: 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: 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: >Unformatted: