Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2012 08:21:45 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hardware@freebsd.org
Cc:        "C. G." <funmol@hotmail.com>
Subject:   Re: ASUS Xonar DX sound card not detected at boot
Message-ID:  <201209280821.45543.jhb@freebsd.org>
In-Reply-To: <COL105-W379BA2A304E5BBF816ABE8DC9B0@phx.gbl>
References:  <COL105-W571A085C015CF403C2112BDC950@phx.gbl> <201209181233.32205.jhb@freebsd.org> <COL105-W379BA2A304E5BBF816ABE8DC9B0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, September 19, 2012 5:06:37 am C. G. wrote:
> 
> > From: jhb@freebsd.org
> > To: freebsd-hardware@freebsd.org
> > Date: Tue, 18 Sep 2012 12:33:32 -0400
> > CC: funmol@hotmail.com
> > Subject: Re: ASUS Xonar DX sound card not detected at boot
> > 
> > On Monday, September 17, 2012 3:19:31 pm C. G. wrote:
> > > 
> > > I'm using PC-BSD 9.0 with FreeBSD 9.0 kernel x86 and at boot, I see a 
> > message "Unindentified sound card... please report @ PC-BSD support..." 
> > something like that.
> > > 
> > > So, I directly expose the problem to the FreeBSD hardware team because it's 
> > a FreeBSD lack of driver.
> > > 
> > > Here is the output of my "lspci -v" command concerning this sound card :
> > > 
> > > 
> > > 02:00.0 PCI bridge: PLX Technology, Inc. PEX8112 x1 Lane PCI Express-to-PCI 
> > Bridge (rev aa) (prog-if 00 [Normal decode])
> > >     Flags: bus master, fast devsel, latency 0
> > >     Bus: primary=02, secondary=03, subordinate=03, sec-latency=64
> > >     I/O behind bridge: 0000d000-0000dfff
> > >     Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
> > >     Capabilities: [60] Express PCI/PCI-X Bridge, MSI 00
> > > 
> > > 03:04.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen 
> > HD Audio]
> > >     Subsystem: ASUSTeK Computer Inc. Virtuoso 100 (Xonar DX)
> > >     Flags: bus master, medium devsel, latency 64, IRQ 16
> > >     I/O ports at d800
> > >     Capabilities: [c0] Power Management version 2
> > > 
> > > 
> > > In fact, I think that the "Multimedia audio controller: C-Media Electronics 
> > Inc CMI8788 [Oxygen HD Audio]" is already supported on FreeBSD, but this sound 
> > card has something special : it's not a native PCI-E sound card, but a native 
> > PCI one, so it uses the "PCI bridge: PLX Technology, Inc. PEX8112 x1 Lane PCI 
> > Express-to-PCI Bridge (rev aa)" as a bridge to communicate with the 
> > motherboard. And THIS component isn't supported!
> > 
> > No, that wouldn't matter.  Bridges are fairly standard.  It would be helpful 
> > to get pciconf -l output so we could see the actual device and vendor ID 
> > register values.
> > 
> > -- 
> > John Baldwin
> 
> Hi,
> Here is the output of the "pciconf -l" as you requested :
> 
> [root@PC-BSD] ~# pciconf -l
> hostb0@pci0:0:0:0:    class=0x060000 card=0x82b01043 chip=0x29c08086 rev=0x10 hdr=0x00
> pcib1@pci0:0:1:0:    class=0x060400 card=0x82b01043 chip=0x29c18086 rev=0x10 hdr=0x01
> hdac0@pci0:0:27:0:    class=0x040300 card=0x82ea1043 chip=0x27d88086 rev=0x01 hdr=0x00
> pcib2@pci0:0:28:0:    class=0x060400 card=0x81791043 chip=0x27d08086 rev=0x01 hdr=0x01
> uhci0@pci0:0:29:0:    class=0x0c0300 card=0x81791043 chip=0x27c88086 rev=0x01 hdr=0x00
> uhci1@pci0:0:29:1:    class=0x0c0300 card=0x81791043 chip=0x27c98086 rev=0x01 hdr=0x00
> uhci2@pci0:0:29:2:    class=0x0c0300 card=0x81791043 chip=0x27ca8086 rev=0x01 hdr=0x00
> uhci3@pci0:0:29:3:    class=0x0c0300 card=0x81791043 chip=0x27cb8086 rev=0x01 hdr=0x00
> ehci0@pci0:0:29:7:    class=0x0c0320 card=0x81791043 chip=0x27cc8086 rev=0x01 hdr=0x00
> pcib4@pci0:0:30:0:    class=0x060401 card=0x81791043 chip=0x244e8086 rev=0xe1 hdr=0x01
> isab0@pci0:0:31:0:    class=0x060100 card=0x81791043 chip=0x27b88086 rev=0x01 hdr=0x00
> atapci0@pci0:0:31:1:    class=0x01018a card=0x81791043 chip=0x27df8086 rev=0x01 hdr=0x00
> atapci1@pci0:0:31:2:    class=0x01018f card=0x81791043 chip=0x27c08086 rev=0x01 hdr=0x00
> none0@pci0:0:31:3:    class=0x0c0500 card=0x81791043 chip=0x27da8086 rev=0x01 hdr=0x00
> vgapci0@pci0:1:0:0:    class=0x030000 card=0x00000000 chip=0x061410de rev=0xa2 hdr=0x00
> pcib3@pci0:2:0:0:    class=0x060400 card=0x00000000 chip=0x811210b5 rev=0xaa hdr=0x01
> none1@pci0:3:4:0:    class=0x040100 card=0x82751043 chip=0x878813f6 rev=0x00 hdr=0x00

It looks like this is a CMI 8788 part (and not a generic HDA audio
controller).  The closest fit would be the cmi driver, but it
doesn't appear to support CMI 8788 parts:

cmi.c:#define CMI8338A_PCI_ID   0x010013f6
cmi.c:#define CMI8338B_PCI_ID   0x010113f6
cmi.c:#define CMI8738_PCI_ID    0x011113f6
cmi.c:#define CMI8738B_PCI_ID   0x011213f6

Looking at Linux's sound drivers, our cmi(4) closely matches their cmipci
driver, and their CMI 8788 driver is an entirely separate driver:

http://git.alsa-project.org/?p=alsa-kernel.git;a=tree;f=sound/pci/oxygen;h=68b0aca62d21e91269c4e18d74724373fa785603;hb=HEAD

-- 
John Baldwin



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