From patchwork Wed Jun 4 09:40:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 4292821 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CFED6BEEA7 for ; Wed, 4 Jun 2014 09:41:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 21F4F2021A for ; Wed, 4 Jun 2014 09:41:02 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 2416820179 for ; Wed, 4 Jun 2014 09:41:01 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 26E7C2625EE; Wed, 4 Jun 2014 11:41:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 23F96261A01; Wed, 4 Jun 2014 11:40:55 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9B56F261A7E; Wed, 4 Jun 2014 11:40:54 +0200 (CEST) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by alsa0.perex.cz (Postfix) with ESMTP id AA01E261A01 for ; Wed, 4 Jun 2014 11:40:46 +0200 (CEST) Received: from wuerfel.localnet (HSI-KBW-134-3-133-35.hsi14.kabel-badenwuerttemberg.de [134.3.133.35]) by mrelayeu.kundenserver.de (node=mreue005) with ESMTP (Nemesis) id 0M4Vnk-1WbQk100WS-00yk3c; Wed, 04 Jun 2014 11:40:41 +0200 From: Arnd Bergmann To: broonie@kernel.org Date: Wed, 04 Jun 2014 11:40:40 +0200 Message-ID: <7290614.Z7JFMYFomx@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.11.0-18-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V02:K0:X8SGpcrJ4l6G6xgUOiIfl4fYY2jl8+b1hV2dbUg8yoG GtFc/hPklv936ZJmka7Yt96p9Z3CpsePLvxluICz6pSl1gEGKO LGWsqmHRVmk17PhDEXMrMFMwahM9YRdMg1OHJbdQszH2ZGgXce y3gqm/MdQ71TickodIoDRlmH2+gLvSg2QGcljXqSxj3B2rBopz rdip7o0N9EvmDWxzboBrFsNCApwYM3c8gNKeb5ZhusDHql8fqc 73aDDyHmD1se3htp1K09akfYh1/tJzxE0jfjrVLkiceM/AhVCj sRNB9G/nL4BPZaLLxEKKUOKrRlIaGjVABUUVQG2VfggxDGfDwe MuZikSurGPLQHrFKlUcM= Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, linux-arm-kernel@lists.infradead.org, Tushar Behera Subject: [alsa-devel] [PATCH] ASoC: samsung: Add I2C dependency for snow X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" 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 X-Virus-Scanned: ClamAV using ClamSMTP Both codecs used by snow, max98090 and max98095 require the use of I2C, so we can only select this driver if I2C is there, otherwise we get a build error like: codecs/max98090.c:2494:1: warning: data definition has no type or storage class [enabled by default] module_i2c_driver(max98090_i2c_driver); ^ codecs/max98095.c:2443:1: warning: data definition has no type or storage class [enabled by default] module_i2c_driver(max98095_i2c_driver); ^ This adds one more I2C dependency to the hundreds we already have. Signed-off-by: Arnd Bergmann Cc: Tushar Behera Acked-by: Tushar Behera diff --git a/sound/soc/samsung/Kconfig b/sound/soc/samsung/Kconfig index a7cb8f6..cb7be4f 100644 --- a/sound/soc/samsung/Kconfig +++ b/sound/soc/samsung/Kconfig @@ -232,7 +232,7 @@ config SND_SOC_LITTLEMILL config SND_SOC_SNOW tristate "Audio support for Google Snow boards" - depends on SND_SOC_SAMSUNG + depends on SND_SOC_SAMSUNG && I2C select SND_SOC_MAX98090 select SND_SOC_MAX98095 select SND_SAMSUNG_I2S