From patchwork Tue Mar 15 21:42:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8592671 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 62A769F44D for ; Tue, 15 Mar 2016 21:44:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9281020412 for ; Tue, 15 Mar 2016 21:44:23 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 33D2D203EB for ; Tue, 15 Mar 2016 21:44:22 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4EC982658AB; Tue, 15 Mar 2016 22:44:19 +0100 (CET) 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, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id DF540260881; Tue, 15 Mar 2016 22:44:11 +0100 (CET) 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 786C72608BB; Tue, 15 Mar 2016 22:44:10 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by alsa0.perex.cz (Postfix) with ESMTP id 0F7C8260789 for ; Tue, 15 Mar 2016 22:44:03 +0100 (CET) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue005) with ESMTPA (Nemesis) id 0MRhYD-1aDjjU2GPh-00Syyf; Tue, 15 Mar 2016 22:43:53 +0100 From: Arnd Bergmann To: Mark Brown Date: Tue, 15 Mar 2016 22:42:50 +0100 Message-Id: <1458078220-551551-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:fZYtatozMIHioaFvdltBqvf04B2RdL2wz+Td14EML88wBxM7KCZ 89AG9dZw0ztjjJB9JEOx5tnUbHstwpLdQ7lNlN54qSn4m+NomePUl3weh40ezZYZyEb+k2x K3h2kB16RFQU0eudwePvpOAZ41YfpScjwsoVl2ORTEGcPaWlVZsTOdzrs8f/hTQ//tgShyv 8y8WaZXcrGNMMFOzIRiAQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:IbxtlMbdsNA=:GYIg6B/lVJD+YjIDwUn+n+ GFvGM2rgmjuzUYLSo9/9v9aBfEi9LK2ZkZcOXY6NX/TMJRHUg4qXXLFHRQmHJPeMKI/N5Afcs pgDKdvQa+wMy611Q3zn/VeZnatXtuqW1IzKztOoMMny8HD67J56AmeCM4Gw5o4vvgjzO8Vd8W Hp+4NkUMkQ52FBhAhd2x6I9DBdtHXiQnVC4WTBVvhg0xXjKnRo1ScGe9m6PehO13kVlBMU4Be vJZKsXSG4ZDaTDjqoYoIFP8nwfVJuRCtCt3B1o57h2aQAdtrL56U4BL2DCAXHtErglM2ntbZz qMDa2eaVyrbOul4hxvIjFcYcRvnOFgwIeIS5C9b1V3NCK0oWCnrR6ELnQ/qK8W873xCQo14CN SmTSGXr+S949FAdZTYEaHhWLNbelynt3YG3NaxFWuzeL+fwMRl9EbhWlPFzSd4/C+daYZeVB4 ipO+E0Dnua1SiqkAX3whGCW4aAx+XPofGIFY0ssIQiJ/ZoxplLWVfKHG/pX15UbBrP/D0V7GT +LKc5tgWOt5pC7q9Pri1G04x+1bs/syMQBFtb2pGMtRF9HgWtRxw7czOj8OIOG+L0rPKFGU0f 7KASJ+W8FctYneaGSDuIPpt4mMSNwAYk6qaXXWms7/fIa8LMXN3gjGNcy3fourAaLXodAjzO0 UOD6FLocmQ0PipJlhfdOe01Tvhl7YOzJ12lauzpfsVvAvtVi1mSWfODpvqhBC0wFc/qs= Cc: Oder Chiou , alsa-devel@alsa-project.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Liam Girdwood , Caesar Wang Subject: [alsa-devel] [PATCH] ASoC: rt5616: add I2C dependency 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The rt5616 codec registers itself as an i2c driver, but can be enabled even when i2c is turned off, which leads to a build error: codecs/rt5616.c:1419:1: error: data definition has no type or storage class [-Werror] module_i2c_driver(rt5616_i2c_driver); This adds an explicit Kconfig dependency, like the other codec drivers. Signed-off-by: Arnd Bergmann Fixes: 288bc356a881 ("ASoC: rt5616: allow to build with CONFIG_SND_SOC_RT5616") --- sound/soc/codecs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 649e92a252ae..7ef3a0c16478 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -629,6 +629,7 @@ config SND_SOC_RT5514 config SND_SOC_RT5616 tristate "Realtek RT5616 CODEC" + depends on I2C config SND_SOC_RT5631 tristate "Realtek ALC5631/RT5631 CODEC"