From: Takashi Iwai Subject: Re: [PATCH 1/6] ASoC: Intel: allow for DW_DMAC_CORE as module Date: Wed, 09 Mar 2016 18:19:58 +0100 Message-ID: References: <1457062599-10032-1-git-send-email-pierre-louis.bossart@linux.intel.com> <1457062599-10032-2-git-send-email-pierre-louis.bossart@linux.intel.com> <20160305040303.GY18327@sirena.org.uk> <56DDBF29.2010809@linux.intel.com> <20160309024326.GE3898@sirena.org.uk> <56E0581F.10500@linux.intel.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 mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 657FD265475 for ; Wed, 9 Mar 2016 18:19:59 +0100 (CET) In-Reply-To: <56E0581F.10500@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, Mark Brown List-Id: alsa-devel@alsa-project.org On Wed, 09 Mar 2016 18:06:39 +0100, Pierre-Louis Bossart wrote: > > On 3/8/16 8:43 PM, Mark Brown wrote: > > On Mon, Mar 07, 2016 at 11:49:29AM -0600, Pierre-Louis Bossart wrote: > >> On 3/4/16 10:03 PM, Mark Brown wrote: > >>> On Thu, Mar 03, 2016 at 09:36:33PM -0600, Pierre-Louis Bossart wrote: > > > >>>> - depends on DW_DMAC_CORE=y && (SND_SST_IPC_ACPI = n) > >>>> + depends on (DW_DMAC_CORE != n) && (SND_SST_IPC_ACPI = n) > > > >>> What is the expected difference between a dependency on DW_DMAC_CORE and > >>> one on DW_DMAC_CORE != n? > > > >> No functional difference, it's more to make the menuconfig options more > >> obvious. > >> Without this patch, menuconfig will not show the legacy byt-max98090 and > >> byt-rt5640 options if the DW_DMAC_CORE is built as a module. > >> While we want to encourage folks to use the newer DPCM drivers, we also want > >> to leave these options accessible. > > > > My point is that you've written the above in a very confusing manner - I > > have to think about what it means while just a dependency would be clear > > and obvious. > > Are you asking about the intent/functionality or just a simplification > to do this (un-tested): > depends on DW_DMAC_CORE && (SND_SST_IPC_ACPI = n) A=n is usually written like !A, too. So a simpler form would be depends on DW_DMAC_CORE && !SND_SST_IPC_ACPI Takashi