From: Takashi Iwai Subject: Re: [PATCH] AC97 bus interface for ad-hoc drivers Date: Fri, 29 Jul 2005 12:45:47 +0200 Message-ID: References: <1121775624.14604.14.camel@cearnarfon> <1122582399.5371.90.camel@localhost.localdomain> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1122582399.5371.90.camel@localhost.localdomain> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Liam Girdwood Cc: Nicolas Pitre , alsa-devel@lists.sourceforge.net, Bill Gatliff List-Id: alsa-devel@alsa-project.org At Thu, 28 Jul 2005 21:26:39 +0100, Liam Girdwood wrote: > > On Wed, 2005-07-27 at 09:05 -0400, Nicolas Pitre wrote: > > On Wed, 27 Jul 2005, Takashi Iwai wrote: > > > > > > Better to keep snd- prefix for ac97_bus module (although it can be > > > used independently from ALSA)...? It's an open question. > > > > The idea is to be able to use ALSA as modules and the extra function > > driver linked in, or vice versa. Therefore ac97_bus.o should probably > > be selected with its own config symbol allowing for things like: > > > > config UCB1400_TS > > tristate "UCB1400 touchscreen interface" > > select AC97_BUS > > > > > > And similarly: > > > > config SND_AC97_CODEC > > ... > > select AC97_BUS > > > > This way there is no hard linkage depedency between ALSA and any ad-hoc > > codec function driver. > > I've just unsuccessfully tried to create this dependency in the Kconfig > system. It looks like you cannot do:- > > config SND_SOME_DRIVER > tristate "some driver" > select SND_AC97_CODEC > > config SND_AC97_CODEC > tristate > select SND_PCM > select SND_AC97_BUS > > config SND_AC97_BUS > tristate > > In this scenario SND_SOME_DRIVER selects SND_AC97_CODEC selects > SND_AC97_BUS and I could never get a SND_AC97_BUS=m or otherwise in > my .config. I was only ever successful by adding the select SND_AC97_BUS > line to SND_SOME_DRIVER. Is it a PCI driver? Since SND_AC97_CODEC and SND_AC97_BUS is in pci/Kconfig, it might the case that it's be selected only when PCI!=n. > I now don't think that the "select SND_PCM" is having any effect in the > AC97_CODEC config, although it still builds fine when remove it. Hmm, we didn't have problems with other similar cases... Takashi ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf