Subject: Re: 2.0: ukbd/ums sans wskbd/wsmouse
To: Eric Haszlakiewicz <>
From: Quentin Garnier <>
List: tech-kern
Date: 04/28/2005 00:05:58
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Apr 27, 2005 at 11:02:13AM -0500, Eric Haszlakiewicz wrote:
> On Wed, Apr 27, 2005 at 04:24:57PM +1000, matthew green wrote:
> > i think in general all of the audio drivers expect the mid-layer audio
> > ("audio* at audiobus?") to exist.  here i guess you need to guard the
> > call to audio_attach_mi() with '#if NAUDIO > 0" from "audio.h".
> 	Not having looked at the audio code at all, I would think that it might
> make more more sense to have audio_attach_mi() defined to a noop if the=
> audio* device isn't configured.  Or configuring an audio driver should

This is not the correct way of solving this.  audio_attach_mi() should
live in its own source file whose compilation depends on the audiobus
attribute, as it is an API provided for the audiobus attachment.  This
would make it much easier on the path towards modularisation.

> 	I ran into a similar problem when I tried to configure a kernel without
> an isa device.  Even though there's nothing in the config file that attac=
> "at isa?" things still use functions that are only pulled in when isa is
> configured.

Yes, there are quite a few places for which config dependencies are not

Quentin Garnier - -
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.6 (NetBSD)