From owner-freebsd-questions@FreeBSD.ORG Wed Sep 7 18:26:43 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 574B916A41F for ; Wed, 7 Sep 2005 18:26:43 +0000 (GMT) (envelope-from Frans-Jan@van-Steenbeek.net) Received: from dutch33.digitalus.nl (dutch33.digitalus.nl [193.138.157.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92C1543D48 for ; Wed, 7 Sep 2005 18:26:42 +0000 (GMT) (envelope-from Frans-Jan@van-Steenbeek.net) X-ClientAddr: 127.0.0.1 Received: from www.van-steenbeek.net (localhost.localdomain [127.0.0.1]) by dutch33.digitalus.nl (8.12.11/8.12.11) with ESMTP id j87IQZAU026123 for ; Wed, 7 Sep 2005 20:26:35 +0200 Received: from 62.133.115.39 (SquirrelMail authenticated user frans-jan@van-steenbeek.net) by www.van-steenbeek.net with HTTP; Wed, 7 Sep 2005 20:26:35 +0200 (CEST) Message-ID: <62841.62.133.115.39.1126117595.squirrel@www.van-steenbeek.net> Date: Wed, 7 Sep 2005 20:26:35 +0200 (CEST) From: "Frans-Jan v. Steenbeek" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Digitalus-MailScanner-Information: Please contact the ISP for more information X-Digitalus-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-MailScanner-From: frans-jan@van-steenbeek.net Subject: Sweex 5.1 soundcard-troiubles X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2005 18:26:43 -0000 Hi all, I asked this question on freebsd-multimedia at first, but I think that was the wrong list to ask. So I'm asking it here again, if you don't mind. As a side note: I´m not subscribed to the list, so you might want to CC me. 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. My guess is that I should set the IRQ and I/O settings right, but how do I get the right values for that? I tried installing the card on an obsolete Windows-installation, but got no luck there either (which has to do with the fact that the installation isn't aware of sound anymore due to something NVidia did. Or whatever). I know the card should more or less work though (new hardware found on Windows), but I still do not know which IRQ / I/O to use. And how do I define that? Is that hint.snd or hint.pcm these days? For the record: here are some outputs which might be of help: $ 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 ehci0@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 pcm0@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 #2: Mon Sep 5 22:01:50 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 ehci0: mem 0xdfffff00-0xdfffffff irq 21 at device 16.3 on pci0 usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered 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 pcm0: port 0xe000-0xe0ff irq 22 at device 17.5 on pci0 pcm0: 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 1999357325 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 $ kldstat Id Refs Address Size Name 1 13 0xc0400000 46073c kernel 2 2 0xc0861000 1bd8c linux.ko 3 1 0xc087d000 517c snd_cmi.ko 4 3 0xc0883000 1d4fc sound.ko 5 1 0xc08a1000 47dc snd_via8233.ko 6 1 0xc08a6000 3f0b68 nvidia.ko 7 14 0xc0c97000 56270 acpi.ko $ 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" Any help is appreciated! Thanks. --- Frans-Jan v. Steenbeek.