From owner-freebsd-hackers Wed Apr 10 9:18:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fastmail.fm (fastmail.fm [209.61.183.86]) by hub.freebsd.org (Postfix) with ESMTP id 112E137B416 for ; Wed, 10 Apr 2002 09:18:24 -0700 (PDT) Received: from fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 4C3CA6DAE1 for ; Wed, 10 Apr 2002 11:18:19 -0500 (CDT) X-Epoch: 1018455499 X-Sasl-enc: gsZKlicwLWmA1eV8Oawrhg Received: from qawwalsh (unknown [63.71.9.20]) by fastmail.fm (Postfix) with ESMTP id 0A8A56DAFF for ; Wed, 10 Apr 2002 11:18:06 -0500 (CDT) Message-ID: <006301c1e0ab$898a5ba0$ab2aa8c0@mrktg.zixadmin.com> From: "mithril" To: Subject: ALi M5451 Sound card wont work. Please Help! Date: Wed, 10 Apr 2002 11:18:04 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0056_01C1E081.62695DC0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0056_01C1E081.62695DC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Everyone, I hope this is the right list to post to. I got no responses on = freebsd-questions. I have a Soyo K7ADA motherboard with integrated ALi = M5451 sound card. It was working fine under Linux using the trident = driver, but I recently switched to using FreeBSD as my primary OS. I am = running 4.5 and understand that the snd_t4dwave.ko is the correct module = for my card. When I load that module however, I get errors : (excerpt from dmesg) ---------- pcm0: port 0xd000-0xd0ff mem 0xdd000000-0xdd000fff irq = 5 at device 3.0 on pci0 pcm0: ac97 codec invalid or not present (id =3D=3D 0) device_probe_and_attach: pcm0 attach returned 6 ---------- I have run pciconf and even inspected the code of t4dwave.c (I am no pro = C programmer, though). I do not know where to go from here. Please = help! Thanks so much, Mithril su-2.05a# pciconf -lv chip0@pci0:0:0: class=3D0x060000 card=3D0x00000000 chip=3D0x164710b9 = rev=3D0x02 hdr=3D0x00 vendor =3D 'Acer Labs Incorporated (ALi)' device =3D 'ALI M1647 ALiMAGiK 1 AGP System Controller' class =3D bridge subclass =3D HOST-PCI pcib1@pci0:1:0: class=3D0x060400 card=3D0x00000000 chip=3D0x524710b9 = rev=3D0x00 hdr=3D0x01 vendor =3D 'Acer Labs Incorporated (ALi)' device =3D 'ALI M1621 PCI to AGP Bridge' class =3D bridge subclass =3D PCI-PCI ohci0@pci0:2:0: class=3D0x0c0310 card=3D0x523710b9 chip=3D0x523710b9 = rev=3D0x03 hdr=3D0x00 vendor =3D 'Acer Labs Incorporated (ALi)' device =3D 'ALI M5237 USB Host Controller' class =3D serial bus subclass =3D USB none0@pci0:3:0: class=3D0x040100 card=3D0x545110b9 chip=3D0x545110b9 = rev=3D0x02 hdr=3D0x00 vendor =3D 'Acer Labs Incorporated (ALi)' device =3D 'ALI M5451 PCI AC-Link Controller Audio Device' class =3D multimedia subclass =3D audio atapci0@pci0:4:0: class=3D0x01018a card=3D0x522910b9 = chip=3D0x522910b9 rev=3D0xc4 hdr=3D0x00 vendor =3D 'Acer Labs Incorporated (ALi)' device =3D 'M1543 Southbridge EIDE Controller' class =3D mass storage subclass =3D ATA ohci1@pci0:6:0: class=3D0x0c0310 card=3D0x523710b9 chip=3D0x523710b9 = rev=3D0x03 hdr=3D0x00 vendor =3D 'Acer Labs Incorporated (ALi)' device =3D 'ALI M5237 USB Host Controller' class =3D serial bus subclass =3D USB isab0@pci0:7:0: class=3D0x060100 card=3D0x153310b9 chip=3D0x153310b9 = rev=3D0x00 hdr=3D0x00 vendor =3D 'Acer Labs Incorporated (ALi)' device =3D 'ALI M1533 Aladdin IV ISA Bridge' class =3D bridge subclass =3D PCI-ISA dc0@pci0:12:0: class=3D0x020000 card=3D0xc00111ad chip=3D0xc11511ad = rev=3D0x25 hdr=3D0x00 vendor =3D 'Lite-On Communications Inc' device =3D 'LC82C115 PNIC II 10/100 PCI MAC/PHY' class =3D network subclass =3D ethernet xl0@pci0:13:0: class=3D0x020000 card=3D0x905510b7 chip=3D0x905510b7 = rev=3D0x30 hdr=3D0x00 vendor =3D '3COM Corp, Networking Division' device =3D '3C905B-TX Fast Etherlink 10/100 PCI TX NIC' class =3D network subclass =3D ethernet chip1@pci0:17:0: class=3D0x068000 card=3D0x710110b9 = chip=3D0x710110b9 rev=3D0x00 hdr=3D0x00 vendor =3D 'Acer Labs Incorporated (ALi)' device =3D 'ALI M7101 Power Management Controller' class =3D bridge subclass =3D PCI-unknown none1@pci1:0:0: class=3D0x030000 card=3D0xff03102b chip=3D0x0521102b = rev=3D0x03 hdr=3D0x00 vendor =3D 'Matrox Graphics Inc' device =3D 'MGA-G200 Millennium/Mystique G200 AGP' class =3D display subclass =3D VGA FULL DMESG: su-2.05a# dmesg Copyright (c) 1992-2002 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 4.5-RELEASE #6: Sun Apr 7 00:19:23 CST 2002 root@gandalf.lotr:/usr/src/sys/compile/GANDALF Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 659941113 Hz CPU: AMD Duron(tm) processor (659.94-MHz 686-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x630 Stepping =3D 0 = Features=3D0x183f9ff AMD Features=3D0xc0440000<,AMIE,DSP,3DNow!> real memory =3D 268369920 (262080K bytes) avail memory =3D 257056768 (251032K bytes) Preloaded elf kernel "kernel" at 0xc0402000. Preloaded elf module "splash_bmp.ko" at 0xc040209c. Preloaded splash_image_data "/boot/freebsd256.bmp" at 0xc0402140. VESA: v2.0, 8192k memory, flags:0x1, mode table:0xc02df882 (1000022) VESA: Matrox Graphics Inc. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 8 entries at 0xc00fdef0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on = pci0 pci1: on pcib1 pci1: at 0.0 irq 10 ohci0: mem = 0xdd004000-0xdd004fff irq 11 at device 2.0 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ums0: Microsoft Microsoft Wheel Mouse Optical\M-., rev 1.10/1.21, addr = 2, iclass 3/1 ums0: 3 buttons and Z dir. pci0: (vendor=3D0x10b9, dev=3D0x5451) at 3.0 irq 5 atapci0: port 0xd400-0xd40f at = device 4.0 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ohci1: mem = 0xdd001000-0xdd001fff irq 11 at device 6.0 on pci0 usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 4 ports with 4 removable, self powered isab0: at device 7.0 on pci0 isa0: on isab0 dc0: port 0xdc00-0xdcff mem = 0xdd003000-0xdd0030ff irq 10 at device 12.0 on pci0 dc0: Ethernet address: 00:a0:cc:e2:a7:73 miibus0: on dc0 dcphy0: on miibus0 dcphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xe000-0xe07f mem = 0xdd005000-0xdd00507f irq 11 at device 13.0 on pci0 xl0: Ethernet address: 00:50:da:26:db:3b miibus1: on xl0 xlphy0: <3Com internal media interface> on miibus1 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto chip1: at device 17.0 on pci0 orm0:
Hi Everyone,

I hope this is the right list to post to.  = I got=20 no responses on freebsd-questions.  I have a Soyo K7ADA motherboard = with=20 integrated ALi M5451 sound card.  It was working fine under Linux = using the=20 trident driver, but I recently switched to using FreeBSD as my primary = OS. =20 I am running 4.5 and understand that the snd_t4dwave.ko is the correct = module=20 for my card.  When I load that module however, I get errors=20 :

(excerpt from dmesg)
----------
pcm0: <Acer Labs = M5451>=20 port 0xd000-0xd0ff mem 0xdd000000-0xdd000fff irq 5 at device 3.0 on=20 pci0
pcm0: ac97 codec invalid or not present (id =3D=3D=20 0)
device_probe_and_attach: pcm0 attach returned = 6
----------

I=20 have run pciconf and even inspected the code of t4dwave.c (I am no pro C = programmer, though).  I do not know where to go from here.  = Please=20 help!

Thanks so much,
Mithril

su-2.05a# pciconf = -lv
chip0@pci0:0:0: class=3D0x060000 = card=3D0x00000000=20 chip=3D0x164710b9 rev=3D0x02 hdr=3D0x00
    = vendor   =3D=20 'Acer Labs Incorporated (ALi)'
    device   = =3D 'ALI=20 M1647 ALiMAGiK 1 AGP System Controller'
   =20 class    =3D bridge
    subclass =3D = HOST-PCI
pcib1@pci0:1:0: class=3D0x060400 = card=3D0x00000000=20 chip=3D0x524710b9 rev=3D0x00 hdr=3D0x01
    = vendor   =3D=20 'Acer Labs Incorporated (ALi)'
    device   = =3D 'ALI=20 M1621 PCI to AGP Bridge'
    class    = =3D=20 bridge
    subclass =3D PCI-PCI
ohci0@pci0:2:0: class=3D0x0c0310 = card=3D0x523710b9=20 chip=3D0x523710b9 rev=3D0x03 hdr=3D0x00
    = vendor   =3D=20 'Acer Labs Incorporated (ALi)'
    device   = =3D 'ALI=20 M5237 USB Host Controller'
    class    = =3D=20 serial bus
    subclass =3D USB
none0@pci0:3:0: class=3D0x040100 = card=3D0x545110b9=20 chip=3D0x545110b9 rev=3D0x02 hdr=3D0x00
    = vendor   =3D=20 'Acer Labs Incorporated (ALi)'
    device   = =3D 'ALI=20 M5451 PCI AC-Link Controller Audio Device'
   =20 class    =3D multimedia
    subclass = =3D=20 audio
atapci0@pci0:4:0:   &= nbsp;  =20 class=3D0x01018a card=3D0x522910b9 chip=3D0x522910b9 rev=3D0xc4=20 hdr=3D0x00
    vendor   =3D 'Acer Labs = Incorporated=20 (ALi)'
    device   =3D 'M1543 Southbridge = EIDE=20 Controller'
    class    =3D mass=20 storage
    subclass =3D ATA
ohci1@pci0:6:0: class=3D0x0c0310 = card=3D0x523710b9=20 chip=3D0x523710b9 rev=3D0x03 hdr=3D0x00
    = vendor   =3D=20 'Acer Labs Incorporated (ALi)'
    device   = =3D 'ALI=20 M5237 USB Host Controller'
    class    = =3D=20 serial bus
    subclass =3D USB
isab0@pci0:7:0: class=3D0x060100 = card=3D0x153310b9=20 chip=3D0x153310b9 rev=3D0x00 hdr=3D0x00
    = vendor   =3D=20 'Acer Labs Incorporated (ALi)'
    device   = =3D 'ALI=20 M1533 Aladdin IV ISA Bridge'
    = class    =3D=20 bridge
    subclass =3D PCI-ISA
dc0@pci0:12:0:  class=3D0x020000=20 card=3D0xc00111ad chip=3D0xc11511ad rev=3D0x25 = hdr=3D0x00
   =20 vendor   =3D 'Lite-On Communications = Inc'
   =20 device   =3D 'LC82C115 PNIC II 10/100 PCI = MAC/PHY'
   =20 class    =3D network
    subclass =3D=20 ethernet
xl0@pci0:13:0: =20 class=3D0x020000 card=3D0x905510b7 chip=3D0x905510b7 rev=3D0x30=20 hdr=3D0x00
    vendor   =3D '3COM Corp, = Networking=20 Division'
    device   =3D '3C905B-TX Fast = Etherlink=20 10/100 PCI TX NIC'
    class    =3D=20 network
    subclass =3D ethernet
chip1@pci0:17:0:   &nb= sp;   =20 class=3D0x068000 card=3D0x710110b9 chip=3D0x710110b9 rev=3D0x00=20 hdr=3D0x00
    vendor   =3D 'Acer Labs = Incorporated=20 (ALi)'
    device   =3D 'ALI M7101 Power = Management=20 Controller'
    class    =3D=20 bridge
    subclass =3D PCI-unknown
none1@pci1:0:0: class=3D0x030000 = card=3D0xff03102b=20 chip=3D0x0521102b rev=3D0x03 hdr=3D0x00
    = vendor   =3D=20 'Matrox Graphics Inc'
    device   =3D = 'MGA-G200=20 Millennium/Mystique G200 AGP'
    = class    =3D=20 display
    subclass =3D VGA


FULL = DMESG:
su-2.05a#=20 dmesg
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) = 1979,=20 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,=20 1994
        The Regents of the = University=20 of California. All rights reserved.
FreeBSD 4.5-RELEASE #6: Sun = Apr  7=20 00:19:23 CST 2002
    root@ganda= lf.lotr:/usr/src/sys/compile/GANDALF
Timecounter=20 "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency=20 659941113 Hz
CPU: AMD Duron(tm) processor (659.94-MHz 686-class=20 CPU)
  Origin =3D "AuthenticAMD"  Id =3D 0x630  = Stepping =3D=20 0
 =20 Features=3D0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,M= CA,CMOV,PAT,PSE36,MMX,FXSR>
 =20 AMD Features=3D0xc0440000<<b18>,AMIE,DSP,3DNow!>
real = memory =20 =3D 268369920 (262080K bytes)
avail memory =3D 257056768 (251032K=20 bytes)
Preloaded elf kernel "kernel" at 0xc0402000.
Preloaded elf = module=20 "splash_bmp.ko" at 0xc040209c.
Preloaded splash_image_data=20 "/boot/freebsd256.bmp" at 0xc0402140.
VESA: v2.0, 8192k memory, = flags:0x1,=20 mode table:0xc02df882 (1000022)
VESA: Matrox Graphics Inc.
Pentium = Pro=20 MTRR support enabled
md0: Malloc disk
Using $PIR table, 8 entries = at=20 0xc00fdef0
npx0: <math processor> on motherboard
npx0: INT = 16=20 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: = <PCI=20 bus> on pcib0
pcib1: <AcerLabs M5247 PCI-PCI(AGP Supported) = bridge>=20 at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: = <Matrox MGA=20 G200 AGP graphics accelerator> at 0.0 irq 10
ohci0: <AcerLabs = M5237=20 (Aladdin-V) USB controller> mem 0xdd004000-0xdd004fff irq 11 at = device 2.0 on=20 pci0
usb0: OHCI version 1.0, legacy support
usb0: <AcerLabs = M5237=20 (Aladdin-V) USB controller> on ohci0
usb0: USB revision = 1.0
uhub0:=20 AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 = ports with=20 4 removable, self powered
ums0: Microsoft Microsoft Wheel Mouse = Optical\M-.,=20 rev 1.10/1.21, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
pci0: = <unknown card> (vendor=3D0x10b9, dev=3D0x5451) at 3.0 irq = 5
atapci0:=20 <AcerLabs Aladdin ATA100 controller> port 0xd400-0xd40f at device = 4.0=20 on
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 = on=20 atapci0
ohci1: <AcerLabs M5237 (Aladdin-V) USB controller> mem=20 0xdd001000-0xdd001fff irq 11 at device 6.0 on pci0
usb1: OHCI version = 1.0,=20 legacy support
usb1: <AcerLabs M5237 (Aladdin-V) USB = controller> on=20 ohci1
usb1: USB revision 1.0
uhub1: AcerLabs OHCI root hub, class = 9/0, rev=20 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self = powered
isab0:=20 <AcerLabs M1533 portable PCI-ISA bridge> at device 7.0 on = pci0
isa0:=20 <ISA bus> on isab0
dc0: <LC82C115 PNIC II 10/100BaseTX> = port=20 0xdc00-0xdcff mem 0xdd003000-0xdd0030ff
irq 10 at device 12.0 on = pci0
dc0:=20 Ethernet address: 00:a0:cc:e2:a7:73
miibus0: <MII bus> on=20 dc0
dcphy0: <Intel 21143 NWAY media interface> on=20 miibus0
dcphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, = auto
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xe000-0xe07f = mem=20 0xdd005000-0xdd00507f irq 11 at device 13.0 on pci0
xl0: Ethernet = address:=20 00:50:da:26:db:3b
miibus1: <MII bus> on xl0
xlphy0: <3Com = internal media interface> on miibus1
xlphy0:  10baseT, = 10baseT-FDX,=20 100baseTX, 100baseTX-FDX, auto
chip1: <AcerLabs M15x3 Power = Management=20 Unit> at device 17.0 on pci0
orm0: <Option ROM> at iomem=20 0xc0000-0xc7fff on isa0
fdc0: <NEC 72065B or clone> at port=20 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes=20 threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: = <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: = <AT=20 Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: = <PS/2=20 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID = 3
vga0:=20 <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on=20 isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA = <16=20 virtual consoles, flags=3D0x300>
sio0 at port 0x3f8-0x3ff irq 4 = flags 0x10=20 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on = isa0
sio1:=20 type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on=20 isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: = IEEE1284 device found /NIBBLE/ECP
Probing for PnP devices on=20 ppbus0:
ppbus0: <HEWLETT-PACKARD DESKJET 820C> = SCP,VLINK
lpt0:=20 <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: = <Parallel=20 I/O> on ppbus0
IP packet filtering initialized, divert enabled, = rule-based=20 forwarding disabled, default to deny, logging limited to 10 = packets/entry by=20 default
ad0: 28629MB <WDC WD300BB-00CCB0> [58168/16/63] at = ata0-master=20 UDMA100
acd0: DVD-ROM <CREATIVE DVD-ROM DVD1610E> at = ata1-master using=20 PIO4
Mounting root from ufs:/dev/ad0s1a
pcm0: <Acer Labs = M5451> port=20 0xd000-0xd0ff mem 0xdd000000-0xdd000fff irq 5 at device 3.0 on = pci0
pcm0:=20 ac97 codec invalid or not present (id =3D=3D = 0)
device_probe_and_attach: pcm0=20 attach returned 6
pcm0: <Acer Labs M5451> port 0xd000-0xd0ff = mem=20 0xdd000000-0xdd000fff irq 5 at device 3.0 on pci0
pcm0: ac97 codec = invalid or=20 not present (id =3D=3D 0)
device_probe_and_attach: pcm0 attach = returned=20 6
pcm0: <Acer Labs M5451> port 0xd000-0xd0ff mem = 0xdd000000-0xdd000fff=20 irq 5 at device 3.0 on pci0
pcm0: ac97 codec invalid or not present = (id =3D=3D=20 0)
device_probe_and_attach: pcm0 attach returned 6

(Note: I = have=20 obviously tried a couple times since my last reboot to load the module=20 ;-)
------=_NextPart_000_0056_01C1E081.62695DC0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message