Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Sep 2005 20:26:35 +0200 (CEST)
From:      "Frans-Jan v. Steenbeek" <Frans-Jan@van-Steenbeek.net>
To:        freebsd-questions@freebsd.org
Subject:   Sweex 5.1 soundcard-troiubles
Message-ID:  <62841.62.133.115.39.1126117595.squirrel@www.van-steenbeek.net>

next in thread | raw e-mail | index | archive | help
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: <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
ehci0: <VIA VT6202 USB 2.0 controller> 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: <VIA VT6202 USB 2.0 controller> 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: <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
pcm0: <VIA VT8235> port 0xe000-0xe0ff irq 22 at device 17.5 on pci0
pcm0: <Unknown AC97 Codec (id = 0x434d4983)>
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 1999357325 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

$ 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62841.62.133.115.39.1126117595.squirrel>