From owner-freebsd-hardware@FreeBSD.ORG Fri Sep 28 12:48:37 2012 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3F261065673 for ; Fri, 28 Sep 2012 12:48:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9C2218FC0A for ; Fri, 28 Sep 2012 12:48:36 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 0C025B941; Fri, 28 Sep 2012 08:48:36 -0400 (EDT) From: John Baldwin To: freebsd-hardware@freebsd.org Date: Fri, 28 Sep 2012 08:21:45 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p20; KDE/4.5.5; amd64; ; ) References: <201209181233.32205.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201209280821.45543.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 28 Sep 2012 08:48:36 -0400 (EDT) Cc: "C. G." Subject: Re: ASUS Xonar DX sound card not detected at boot X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2012 12:48:37 -0000 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