From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 6 05:02:30 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89EB716A41F for ; Tue, 6 Sep 2005 05:02:30 +0000 (GMT) (envelope-from frans-jan@van-steenbeek.net) Received: from curly.kpn.net (vtradius.kpn.net [194.151.244.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id B86D643D46 for ; Tue, 6 Sep 2005 05:02:29 +0000 (GMT) (envelope-from frans-jan@van-steenbeek.net) Received: from [217.166.224.207] ([217.166.224.207]) by curly.kpn.net (8.11.6/8.11.6) with ESMTP id j8652Nl29478 for ; Tue, 6 Sep 2005 07:02:24 +0200 From: "Frans-Jan v. Steenbeek" To: freebsd-multimedia@freebsd.org Date: Tue, 6 Sep 2005 07:02:07 +0200 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200509060702.20614.frans-jan@van-steenbeek.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Sweex 5.1 soundcard problem X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2005 05:02:30 -0000 Hi all, First of all, please CC me, since I'm not subscribed. Thanks :) I just bought a Sweex 5.1 soundcard since my onboard-sound was a horrible disaster (5.1 channels, but only two available, and the volume could not be set except for on and off). The new card was cheap, so that can cause the problem I have now :) The card has an C-Media chip on it (C3DX, CMI8738) but is not detected by snd_cmi. Apparently, from what I read round and about, the CMI8738 should work like a charm on FreeBSD with snd_cmi loaded (which is partly why I bought it in the first place... apart from the money). Does anyone has any idea as to what to do to trace the problem? All I know is pciconf, which doesn't do me any good... It doesn't even show the darn thing (although it does show the onboard soundcard which is not recognized by the kernel, since I do not load the module any longer). kldstat shows me that snd_cmi is loaded, but I do not think that the problem is with the software at all. pciconf should always show the device, even if it cannot be detected by the kernel, right? Or should I somewhere put all the IRQ's in order? And how? The more I think about it, the more I fear the card itself is broken. Or is this a known problem with how Sweex solders the CMI8738 on their triplex? (Oh, btw, the card came with the sources for a Linux-driver from CMedia for the CMI8738. I'm not a C-programmer (yet) but could that be of any help?) Several outputs follow below... (hey, that's weird... the USB 2.0 controller seems to be undetected :) well, well... I DO learn from this! What's that, ehci?) regards, -- Frans-Jan v. Steenbeek $ pciconf -l -v hostb0@pci0:0:0: class=0x060000 card=0x31891849 chip=0x31891106 rev=0x80 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8377 Apollo KT400/A/600 CPU to PCI Bridge' class = bridge subclass = HOST-PCI pcib1@pci0:1:0: class=0x060400 card=0x00000080 chip=0xb1981106 rev=0x00 hdr=0x01 vendor = 'VIA Technologies Inc' device = 'ProSavageDDR P4X600 CPU to AGP Bridge' class = bridge subclass = PCI-PCI uhci0@pci0:16:0: class=0x0c0300 card=0x30381849 chip=0x30381106 rev=0x80 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)' class = serial bus subclass = USB uhci1@pci0:16:1: class=0x0c0300 card=0x30381849 chip=0x30381106 rev=0x80 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)' class = serial bus subclass = USB uhci2@pci0:16:2: class=0x0c0300 card=0x30381849 chip=0x30381106 rev=0x80 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)' class = serial bus subclass = USB none0@pci0:16:3: class=0x0c0320 card=0x31041849 chip=0x31041106 rev=0x82 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT6202 USB 2.0 Enhanced Host Controller' class = serial bus subclass = USB isab0@pci0:17:0: class=0x060100 card=0x31771849 chip=0x31771106 rev=0x00 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8235 PCI to ISA Bridge' class = bridge subclass = PCI-ISA atapci0@pci0:17:1: class=0x01018a card=0x05711849 chip=0x05711106 rev=0x06 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT82xxxx EIDE Controller (All VIA Chipsets)' class = mass storage subclass = ATA none1@pci0:17:5: class=0x040100 card=0x97611849 chip=0x30591106 rev=0x50 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller' class = multimedia subclass = audio vr0@pci0:18:0: class=0x020000 card=0x30651849 chip=0x30651106 rev=0x74 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT6102 Rhine II PCI Fast Ethernet Controller' class = network subclass = ethernet nvidia0@pci1:0:0: class=0x030000 card=0x00000000 chip=0x018510de rev=0xc1 hdr=0x00 vendor = 'NVIDIA Corporation' device = 'NV18.6? GeForce4 MX 4000' class = display subclass = VGA $ cat /var/run/dmesg.boot Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.4-RELEASE #1: Tue Jun 7 01:05:40 CEST 2005 root@galadriel.elvandar.local:/usr/src/sys/i386/compile/GALADRIEL ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Sempron(tm) 2800+ (1999.36-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x681 Stepping = 1 Features=0x383fbff AMD Features=0xc0480000 real memory = 1073676288 (1023 MB) avail memory = 1036926976 (988 MB) ioapic0 irqs 0-23 on motherboard npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 nvidia0: mem 0xd0000000-0xd7ffffff,0xde000000-0xdeffffff irq 16 at device 0.0 on pci1 uhci0: port 0xe400-0xe41f irq 21 at device 16.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xe800-0xe81f irq 21 at device 16.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xec00-0xec1f irq 21 at device 16.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pci0: at device 16.3 (no driver attached) isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 17.5 (no driver attached) vr0: port 0xdc00-0xdcff mem 0xdffffe00-0xdffffeff irq 23 at device 18.0 on pci0 miibus0: on vr0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:0b:6a:b4:12:c3 acpi_button1: on acpi0 fdc0: port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3 irq 6 drq 2 on acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x778-0x77b,0x378-0x37f irq 7 drq 0 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 orm0: at iomem 0xc0000-0xcf7ff on isa0 pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ulpt0: HP Deskjet 3840, rev 2.00/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode Timecounter "TSC" frequency 1999357843 Hz quality 800 Timecounters tick every 10.000 msec ad0: 117246MB [238216/16/63] at ata0-master UDMA133 acd0: DVDROM at ata1-master UDMA33 acd1: DVDR at ata1-slave UDMA33 cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ata1 bus 0 target 1 lun 0 cd1: <_NEC DVD_RW ND-3520A 1.04> Removable CD-ROM SCSI-0 device cd1: 33.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present Mounting root from ufs:/dev/ad0s1a $ cat /boot/loader.conf snd_cmi_load="YES" beastie_disable="YES" autoboot_delay="0" hw.ata.atapi_dma=1 kern.maxdsiz=671088640 linux_load="YES" nvidia_load="YES" $ cat /boot/device.hints # $FreeBSD: src/sys/i386/conf/GENERIC.hints,v 1.13 2004/04/01 21:48:31 alfred Exp $ hint.fdc.0.at="isa" hint.fdc.0.port="0x3F0" hint.fdc.0.irq="6" hint.fdc.0.drq="2" hint.fd.0.at="fdc0" hint.fd.0.drive="0" hint.fd.1.at="fdc0" hint.fd.1.drive="1" hint.ata.0.at="isa" hint.ata.0.port="0x1F0" hint.ata.0.irq="14" hint.ata.1.at="isa" hint.ata.1.port="0x170" hint.ata.1.irq="15" hint.adv.0.at="isa" hint.adv.0.disabled="1" hint.bt.0.at="isa" hint.bt.0.disabled="1" hint.aha.0.at="isa" hint.aha.0.disabled="1" hint.aic.0.at="isa" hint.aic.0.disabled="1" hint.atkbdc.0.at="isa" hint.atkbdc.0.port="0x060" hint.atkbd.0.at="atkbdc" hint.atkbd.0.irq="1" hint.psm.0.at="atkbdc" hint.psm.0.irq="12" hint.vga.0.at="isa" hint.sc.0.at="isa" hint.sc.0.flags="0x100" hint.vt.0.at="isa" hint.vt.0.disabled="1" hint.apm.0.disabled="1" hint.apm.0.flags="0x20" hint.pcic.0.at="isa" # hint.pcic.0.irq="10" # Default to polling hint.pcic.0.port="0x3e0" hint.pcic.0.maddr="0xd0000" hint.pcic.1.at="isa" hint.pcic.1.irq="11" hint.pcic.1.port="0x3e2" hint.pcic.1.maddr="0xd4000" hint.pcic.1.disabled="1" hint.sio.0.at="isa" hint.sio.0.port="0x3F8" hint.sio.0.flags="0x10" hint.sio.0.irq="4" hint.sio.1.at="isa" hint.sio.1.port="0x2F8" hint.sio.1.irq="3" hint.sio.2.at="isa" hint.sio.2.disabled="1" hint.sio.2.port="0xEC0" hint.sio.2.irq="17" hint.sio.3.at="isa" hint.sio.3.disabled="1" hint.sio.3.port="0x2E8" hint.sio.3.irq="9" hint.ppc.0.at="isa" hint.ppc.0.irq="7" hint.ed.0.at="isa" hint.ed.0.disabled="1" hint.ed.0.port="0x280" hint.ed.0.irq="10" hint.ed.0.maddr="0xd8000" hint.cs.0.at="isa" hint.cs.0.disabled="1" hint.cs.0.port="0x300" hint.sn.0.at="isa" hint.sn.0.disabled="1" hint.sn.0.port="0x300" hint.sn.0.irq="10" hint.ie.0.at="isa" hint.ie.0.disabled="1" hint.ie.0.port="0x300" hint.ie.0.irq="10" hint.ie.0.maddr="0xd0000" hint.fe.0.at="isa" hint.fe.0.disabled="1" hint.fe.0.port="0x300" hint.lnc.0.at="isa" hint.lnc.0.disabled="1" hint.lnc.0.port="0x280" hint.lnc.0.irq="10" hint.lnc.0.drq="0" hint.agp.0.disabled="1"