From owner-freebsd-multimedia@FreeBSD.ORG Wed May 17 03:29:03 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85F1116A401 for ; Wed, 17 May 2006 03:29:03 +0000 (UTC) (envelope-from sepotvin@videotron.ca) Received: from tomts29-srv.bellnexxia.net (tomts29.bellnexxia.net [209.226.175.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAEC543D45 for ; Wed, 17 May 2006 03:29:02 +0000 (GMT) (envelope-from sepotvin@videotron.ca) Received: from mail.telcobridges.com ([67.70.237.76]) by tomts29-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060517032901.MVVV24441.tomts29-srv.bellnexxia.net@mail.telcobridges.com>; Tue, 16 May 2006 23:29:01 -0400 Received: from [192.168.0.107] (modemcable237.137-80-70.mc.videotron.ca [70.80.137.237]) (authenticated bits=0) by mail.telcobridges.com (8.13.3/8.13.3) with ESMTP id k4H3Swxq073065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 16 May 2006 23:29:00 -0400 (EDT) (envelope-from sepotvin@videotron.ca) Message-ID: <446A9875.1050404@videotron.ca> Date: Tue, 16 May 2006 23:28:53 -0400 From: "Stephane E. Potvin" User-Agent: Thunderbird 1.5.0.2 (X11/20060505) MIME-Version: 1.0 To: feature References: <20060513010217.2f0cd472.feature.id@gmail.com> In-Reply-To: <20060513010217.2f0cd472.feature.id@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: High Definition Audio driver X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 03:29:03 -0000 feature wrote: > Hi, Steph. > > Having the same `audio problem'. Tried your driver . > (got it to compile only after commenting everything related to hdac_probe(), because of the following: > hdac.c: In function `hdac_probe': > hdac.c:866: error: `PCIS_MULTIMEDIA_HDA' undeclared (first use in this function) > hdac.c:866: error: (Each undeclared identifier is reported only once > hdac.c:866: error: for each function it appears in.) > *** Error code 1) > kldload went ok, but without any noticable effect to the system (still no sound, nothing in dmesg, etc). > uname: 6.1-STABLE Hi, It seems that I have forgotten to include a small patch to make the driver compile. Apply the following small patch and it should compile after: Index: pcireg.h =================================================================== RCS file: /home/FreeBSD/ncvs/src/sys/dev/pci/pcireg.h,v retrieving revision 1.51 diff -u -r1.51 pcireg.h --- pcireg.h 30 Dec 2005 20:25:40 -0000 1.51 +++ pcireg.h 25 Feb 2006 18:57:53 -0000 @@ -233,6 +233,7 @@ #define PCIS_MULTIMEDIA_VIDEO 0x00 #define PCIS_MULTIMEDIA_AUDIO 0x01 #define PCIS_MULTIMEDIA_TELE 0x02 +#define PCIS_MULTIMEDIA_HDA 0x03 #define PCIS_MULTIMEDIA_OTHER 0x80 #define PCIC_MEMORY 0x05 Unfortunately, even with that you'll find that the driver doesn't do much so far. It's just probing for the HDA controller and then tries to scan for some child devices. I haven't got the chance to put as much efforts into this lately as I would have liked to do but it's progressing. The driver that I have in my local tree now really probe for child devices using newbus and tries to attach drivers to them. I'll try to make it available within a few days in case anybody wants to look at it. Regards, Steph