From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH] ASoC: codecs-ac97: make selectable in config Date: Thu, 14 May 2015 20:46:09 +0200 Message-ID: <5554ED71.4040608@metafoo.de> References: <554E8634.2010008@maciej.szmigiero.name> <20150512175807.GL3066@sirena.org.uk> <5553BAB4.3040209@maciej.szmigiero.name> <20150514175351.GQ2761@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150514175351.GQ2761@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org To: Mark Brown , "Maciej S. Szmigiero" Cc: alsa-devel@alsa-project.org, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Brian Austin , Bard Liao , Oder Chiou , Wolfram Sang , linux-kernel@vger.kernel.org, Fabio Estevam List-Id: alsa-devel@alsa-project.org On 05/14/2015 07:53 PM, Mark Brown wrote: > On Wed, May 13, 2015 at 10:57:24PM +0200, Maciej S. Szmigiero wrote: >> W dniu 12.05.2015 19:58, Mark Brown pisze: >>> On Sun, May 10, 2015 at 12:12:04AM +0200, Maciej S. Szmigiero wrote: > >>>> @@ -16,7 +16,7 @@ config SND_SOC_ALL_CODECS >>>> select SND_SOC_88PM860X if MFD_88PM860X >>>> select SND_SOC_L3 >>>> select SND_SOC_AB8500_CODEC if ABX500_CORE >>>> - select SND_SOC_AC97_CODEC if SND_SOC_AC97_BUS >>>> + select SND_SOC_AC97_CODEC >>>> select SND_SOC_AD1836 if SPI_MASTER >>>> select SND_SOC_AD193X_SPI if SPI_MASTER >>>> select SND_SOC_AD193X_I2C if I2C > >>> No, you're missing the point of what _ALL_CODECS does - it builds >>> everything possible. This will break the build for systems without >>> AC'97 support. > >> How? >> In the second hunk of the patch I've made SND_SOC_AC97_CODEC select >> SND_SOC_AC97_BUS. > > select doesn't respect dependencies, it'll just force on the selected > symbol. The patch works fine, neither SND_SOC_AC97_BUS nor the symbols selected by SND_SOC_AC97_BUS have any dependencies. Although one might argue that only AC97 host driver should select SND_SOC_AC97_BUS and the CODEC drivers should depend on it. - Lars