High Definition Audio driver

Stephane E. Potvin sepotvin at videotron.ca
Wed May 17 03:29:03 UTC 2006

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


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_TELE   0x02
+#define PCIS_MULTIMEDIA_HDA    0x03

 #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.



More information about the freebsd-multimedia mailing list