Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2006 23:28:53 -0400
From:      "Stephane E. Potvin" <sepotvin@videotron.ca>
To:        feature <feature.id@gmail.com>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: High Definition Audio driver
Message-ID:  <446A9875.1050404@videotron.ca>
In-Reply-To: <20060513010217.2f0cd472.feature.id@gmail.com>
References:  <20060513010217.2f0cd472.feature.id@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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