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: 124183 Delivered-To: patch@linaro.org Received: by 10.80.140.226 with SMTP id r31csp379030edr; Thu, 11 Jan 2018 02:34:48 -0800 (PST) X-Google-Smtp-Source: ACJfBournS2vSelqx7NLlxfi3xll7QXBpKMeBJJGzNSPpYvfKmraH3JntW+ZVFIyU2cnN9kxayWG X-Received: by 10.84.137.106 with SMTP id 97mr12793030plm.233.1515666888248; Thu, 11 Jan 2018 02:34:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515666888; cv=none; d=google.com; s=arc-20160816; b=xyCOCnJYmoKdVRHJC7kMOQ2vydLx+bbt7Irf0RTHkchQlXKQMDqsPH9bi1ta3aZzOK 2NidG1FjRJTK8ZWzqapZvJwh/dDqeIeED3JQDer1/K7jWTPy9TeaP8K5v0H6KKc7869l nkhZ8nsgaUAUnhxMOBfiEUk4OE6C4LzQo404sevAM6/Qk1nrFPEoAY0r8/Feaou2f8nV pr/3ZWy+ziHGvBsMuHytw9QgdyQt3X8FUzw536lpardvxlfmUaHghiN/GWJUE/PwJEWs Hc08txG7RQoT0gmxJATusMwbH2GwKJPgEHNTZly0LsH5kpabpZpjQOeU9GCutrhfWXmW D/3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kseaUhZL+and1KaRHvooRgHk9KTLZZegMEiE8WKt0us=; b=xHPNfPjEtTCdhGABeGuJiMmmBdhioFKWzF0A3neFaKwidYMcvxDKVy4IvXDz+r/v2i tRrM5TCtnDdKFGJAytgajmGmTUmfrj73Y+GKlhstA8BHm30bT/mhK1/mjZARJw0Gef5q 2XIJ0R0kSpW4JQydxGuNOOlWfTPU32gaH6Cg+KzC6/wGLtAm1HQiEQFpI7m+mBQl3R9f Yufil4K4kt7CED2plN1vfvMc0/crdFb7NQdHsoYYBYXyu87omkMeXVuFtIKwmMN10w5N ipBosR3gJK/ezZBxQsPfO230ym+daeeQpR8aFTpOLZtK0QQnvDLrqcMZC2tmKEyKVn1Q 1jEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m66si13284473pfj.294.2018.01.11.02.34.48; Thu, 11 Jan 2018 02:34:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754938AbeAKKeq (ORCPT + 28 others); Thu, 11 Jan 2018 05:34:46 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:51661 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754153AbeAKKep (ORCPT ); Thu, 11 Jan 2018 05:34:45 -0500 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 Cc: Arnd Bergmann , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , olivier moysan , Arnaud Pouliquen , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: stm32: select IIO_BUFFER Date: Thu, 11 Jan 2018 11:33:26 +0100 Message-Id: <20180111103346.1358598-1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l1eC/BpcZa3S/aukJKA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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