From patchwork Thu Jan 11 10:33:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10157791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C01D3601A1 for ; Thu, 11 Jan 2018 10:34:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE2C92674B for ; Thu, 11 Jan 2018 10:34:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F95828684; Thu, 11 Jan 2018 10:34:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B93A02674B for ; Thu, 11 Jan 2018 10:34:11 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 237A6266E7C; Thu, 11 Jan 2018 11:34:10 +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 C95E826707A; Thu, 11 Jan 2018 11:34:08 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by alsa0.perex.cz (Postfix) with ESMTP id 8077D266E76 for ; Thu, 11 Jan 2018 11:34:03 +0100 (CET) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0LrsLe-1f0gwz3Dig-013aAs; Thu, 11 Jan 2018 11:33:51 +0100 From: Arnd Bergmann To: Mark Brown Date: Thu, 11 Jan 2018 11:33:26 +0100 Message-Id: <20180111103346.1358598-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:3pBqkJZZzlDE+z6sN3U2JSbfQh/NN4CCvqrI/Gjfq2wxOFSl/c3 xCAH6n/h8t2xySgSosz0GVsEB4E+OF6Sw8bpCAmDucSK2wuC9WS4NuHNNa7yMsxeFeX7UhA vgOAJ3jDkjKgAbY7Sx38NOay1g3i/LeEsUKj1X2jCg/B4mOz4wUZTEAdobzwdb2nUAUIrRL imW6UwM4QoC/iWehvZZKQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:UwWc8l77/So=:MXkyRH8bpdILPss05mDLBO bnWbEsk2kPMLjem0tMO6EtP2f7vndjO3GFBIqZpmpgPP9OdIeYwUA4iewMJdSSTwRuIXPYDU0 AMNMDriyLqCuUs6krFQtBMiL3pwXlp4JSu2rnGGEWb+1co9m2dI5eLaAh18pueEwGpkgcypVP sFBch/CAT3cyVJHr5w1kFbTL8F9TIb0WydYz0FouaXmDIYcaBNPZm3cuGWbWeydu64H2wjWZT wtqn7j0GPgdpbYjKvQn0cNFkrpMHAjdBDHEbW+syfJPH26ta9aVTANW/hLTtJe2TqGW6VmcxP PU6Y0/OtEFR2SfLehQuBtD9yTKG7Q6U23BqrTSpbKOafGQTbGw63bPHjrXdd14t8YkcI6gfvZ rh6Baqc2YSMIr7xLnB1G5RLIfnz3n9hSehgwEjYU335hYdN5ihGjWqqdj81K2YrNr6tyu8CzM xUh856Zl82ZBa/JH9gqHgThIxCrMlcJgyU/ymQT0aTXVdtmDZ80axWvtwB2oNySf7jeE1Cof2 PPNQxSRnTtfraMOlCIoZwknqx5TBr0Plg8tLiGYWqeNHoodp7CbwtNE+OrI2VRwYHhpL4125z 7NnkRdxROP7Kva758hU3u2muXJxYelGEwc0CnMgVJH51Wqk15nBGm6tyVFX5TTfc1FmLBqNvO RXYc20AHBCUJbj2CFA1Q5BCSr2GsLUSaSIrH8Q1b0TJ0AEBphEH33jBI10v8jjVyEec72TyJI 0EdykMOnfUexctHkU0gl1eC/BpcZa3S/aukJKA== Cc: alsa-devel@alsa-project.org, olivier moysan , Arnd Bergmann , linux-kernel@vger.kernel.org, Arnaud Pouliquen , Takashi Iwai , Liam Girdwood Subject: [alsa-devel] [PATCH] ASoC: stm32: select IIO_BUFFER 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 new stm32_adfsdm driver has incomplete dependencies as shown by Kconfig: warning: (SND_SOC_STM32_DFSDM && LMP91000) selects IIO_BUFFER_CB which has unmet direct dependencies (IIO && IIO_BUFFER) sound/soc/stm/stm32_adfsdm.o: In function `stm32_adfsdm_trigger': stm32_adfsdm.c:(.text+0x8c): undefined reference to `stm32_dfsdm_get_buff_cb' stm32_adfsdm.c:(.text+0x9c): undefined reference to `stm32_dfsdm_release_buff_cb' This makes the dependency on SND_SOC_STM32_DFSDM unconditional, so we can always resolve the stm32_dfsdm_get_buff_cb/stm32_dfsdm_release_buff_cb symbols and get the implied IIO_BUFFER dependency. compile-testing on other platforms is still possible as long as that IIO driver is there. Fixes: 55da094824c4 ("ASoC: stm32: add DFSDM DAI support") Signed-off-by: Arnd Bergmann --- sound/soc/stm/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/stm/Kconfig b/sound/soc/stm/Kconfig index a78f7700d489..3ad881fc40a1 100644 --- a/sound/soc/stm/Kconfig +++ b/sound/soc/stm/Kconfig @@ -30,8 +30,9 @@ config SND_SOC_STM32_SPDIFRX config SND_SOC_STM32_DFSDM tristate "SoC Audio support for STM32 DFSDM" - depends on (ARCH_STM32 && OF && STM32_DFSDM_ADC) || COMPILE_TEST + depends on ARCH_STM32 || COMPILE_TEST depends on SND_SOC + depends on STM32_DFSDM_ADC select SND_SOC_GENERIC_DMAENGINE_PCM select SND_SOC_DMIC select IIO_BUFFER_CB