Sweex 5.1 soundcard problem

Frans-Jan v. Steenbeek frans-jan at van-steenbeek.net
Mon Sep 5 22:02:30 PDT 2005


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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at galadriel.elvandar.local:/usr/src/sys/i386/compile/GALADRIEL
ACPI APIC Table: <AMIINT VIA_K7  >
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory  = 1073676288 (1023 MB)
avail memory = 1036926976 (988 MB)
ioapic0 <Version 0.3> irqs 0-23 on motherboard
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT VIA_K7> 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: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
nvidia0: <GeForce4 MX 4000> mem 0xd0000000-0xd7ffffff,0xde000000-0xdeffffff 
irq 16 at device 0.0 on pci1
uhci0: <VIA 83C572 USB controller> port 0xe400-0xe41f irq 21 at device 16.0 on 
pci0
usb0: <VIA 83C572 USB controller> 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: <VIA 83C572 USB controller> port 0xe800-0xe81f irq 21 at device 16.1 on 
pci0
usb1: <VIA 83C572 USB controller> 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: <VIA 83C572 USB controller> port 0xec00-0xec1f irq 21 at device 16.2 on 
pci0
usb2: <VIA 83C572 USB controller> 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: <serial bus, USB> at device 16.3 (no driver attached)
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8235 UDMA133 controller> 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: <multimedia, audio> at device 17.5 (no driver attached)
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xdc00-0xdcff mem 
0xdffffe00-0xdffffeff irq 23 at device 18.0 on pci0
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:0b:6a:b4:12:c3
acpi_button1: <Sleep Button> on acpi0
fdc0: <floppy drive controller> 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: <Generic IRDA-compatible device> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0: <ECP parallel printer port> 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: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
orm0: <ISA Option ROM> at iomem 0xc0000-0xcf7ff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> 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 <Maxtor 6L120P0/BAH41E00> [238216/16/63] at ata0-master UDMA133
acd0: DVDROM <DVD-ROM BDV316E/VER B568> at ata1-master UDMA33
acd1: DVDR <NEC DVD RW ND-3520A/1.04> at ata1-slave UDMA33
cd0 at ata1 bus 0 target 0 lun 0
cd0: <DVD-16X DVD-ROM BDV316E B568> 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"


More information about the freebsd-multimedia mailing list