From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v2 2/5] ALSA: hda: move parts of NHLT code to new module Date: Mon, 22 Jul 2019 14:26:37 +0200 Message-ID: References: <20190719203752.11151-1-pierre-louis.bossart@linux.intel.com> <20190719203752.11151-3-pierre-louis.bossart@linux.intel.com> <97359d3a-a3a0-696a-3d3f-64bd608eea5f@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 mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 80479F803D1 for ; Mon, 22 Jul 2019 14:26:39 +0200 (CEST) In-Reply-To: <97359d3a-a3a0-696a-3d3f-64bd608eea5f@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Pierre-Louis Bossart Cc: Cezary Rojewski , Curtis Malainey , alsa-devel@alsa-project.org, Daniel Drake , Hui Wang , broonie@kernel.org List-Id: alsa-devel@alsa-project.org On Mon, 22 Jul 2019 14:14:28 +0200, Pierre-Louis Bossart wrote: > > > > On 7/22/19 3:54 AM, Takashi Iwai wrote: > > On Sat, 20 Jul 2019 23:06:46 +0200, > > Cezary Rojewski wrote: > >> > >>> --- a/sound/hda/Kconfig > >>> +++ b/sound/hda/Kconfig > >>> @@ -29,3 +29,6 @@ config SND_HDA_PREALLOC_SIZE > >>> Note that the pre-allocation size can be changed dynamically > >>> via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too. > >>> + > >>> +config SND_INTEL_NHLT > >>> + tristate > >> > >> If above is true, "depends on ACPI" would be expected. > > > > This won't fix things in practice as the Kconfig reverse selection > > ignores the dependencies of the selected item. It'd be as a help for > > readers, though. > > There is a fallback if ACPI is not defined, so the code would always > compile. Configurations which select SND_INTEL_NHLT already depend on > ACPI. IIUC, the question above came from the point: #if IS_ENABLED(CONFIG_ACPI) && IS_ENABLED(CONFIG_SND_INTEL_NHLT) .... #else .... #endif and here Cezary suggested to drop IS_ENABLED(CONFIG_ACPI) *iff* the dependency can be assured in Kconfig side. But for that assurance, putting "depends on ACPI" in config SND_INTEL_NHLT block won't suffice; that was my followup. So, as of the current code, we can drop IS_ENABLED(CONFIG_ACPI) from the ifdef above, yes. But the dependency is no rock solid at this point, so either some comments or keeping the extra ifdef like the above would be needed, IMO. thanks, Takashi