From: Takashi Iwai Subject: Re: [PATCH] ASoC: Hide TLV320AIC26 configuration option for non-OpenFirwmare users Date: Tue, 14 Oct 2008 07:47:11 +0200 Message-ID: References: <1223915914-12196-1-git-send-email-broonie@opensource.wolfsonmicro.com> <20081013181458.GA23014@opensource.wolfsonmicro.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 5D4DB243AE for ; Tue, 14 Oct 2008 07:47:29 +0200 (CEST) In-Reply-To: <20081013181458.GA23014@opensource.wolfsonmicro.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 13 Oct 2008 19:14:58 +0100, Mark Brown wrote: > > On Mon, Oct 13, 2008 at 07:33:01PM +0200, Takashi Iwai wrote: > > > Hmm, I'm afraid this may disable CONFIG_SND_SOC_TLV320AIC26 when > > CONFIG_SND_SOC_OF_SIMPLE=n automatically, no? > > Yes, I'd feared that too but it doesn't do that, at least not in my > testing - the dependencies are just completely ignored. > > > > Thanks to Takashi for the suggestion. > > > Actually I proposed a wrong solution. What I meant was the form using > > "if" instead of "depends on": > > > config SND_SOC_TLV320AIC26 > > tristate "TI TLV320AIC26 Codec support" if SND_SOC_OF_SIMPLE > > ... > > > In this way, the selectable item appears only when > > CONFIG_SND_SOC_OF_SIMPLE is set. The other dependencies remain as > > they are. > > Ah, yes. That seems to work too and is a bit neater, though still a bit > nasty since it looks like the tristate is conditional on the > OpenFirmware support now so it's still not entirely clear that the right > thing will happen. Well, this is a standard technique. You can find "if EMBEDDED" in many Kconfig items, too. Takashi