From patchwork Tue Dec 5 10:09:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10092611 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 1A6A460327 for ; Tue, 5 Dec 2017 10:10:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E811291D1 for ; Tue, 5 Dec 2017 10:10:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09A392959A; Tue, 5 Dec 2017 10:10:53 +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 16F002959E for ; Tue, 5 Dec 2017 10:10:42 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C95E126771A; Tue, 5 Dec 2017 11:10:40 +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 4C4BE267721; Tue, 5 Dec 2017 11:10:14 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by alsa0.perex.cz (Postfix) with ESMTP id BBAC2266E71 for ; Tue, 5 Dec 2017 11:10:08 +0100 (CET) Received: from wuerfel.lan ([149.172.96.106]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lv638-1f3eAt45vW-010HgG; Tue, 05 Dec 2017 11:10:02 +0100 From: Arnd Bergmann To: Nicolas Ferre , Mark Brown , Alexandre Belloni Date: Tue, 5 Dec 2017 11:09:38 +0100 Message-Id: <20171205101000.968887-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:9n8G86Q7faT8ZSKyzX6+LMSzUGjPyQnuJqD3+2ik3r+y6yzrrOl XuNCbk+RLTChIb0vBq3sd/yoDv7f9JAiQn8h/ueeCBV0nPg6AhxL0hgSHBD2uoHpBqsmKev zggI3IzYCqvVGWzQvwvpxg3SHANZLzYp+b/p5nFux2Otl5yVRi1rzTJcwSQ+3aKIyFcW7bG tW7sJ+2bfSqqBKz7aMPOA== X-UI-Out-Filterresults: notjunk:1; V01:K0:jaZukYymSvA=:H51r5wIxptgxLrAWT/lhgX bjurQgGKOxX0DpdfAL3NIwMkoe/HuU5seZykVx05M0uwtaLpK+8b/BswsNfEpzSQ19NHv93ZF p1KjFIPheLzF2pcgkEx4Qq1LwBpU8zmIQyuIgIQA0IZVqHB4NuS1/p3lLZd0uYJWDfXwkhD6y GvZWsCvF6AO6s3SNU2LTjbzkpzeui1SM1G1Dd1jpHoLV3QQLYn6IOqw31TeXpxb1UAR2TaNuF oAYj6VQvECYoY7oJ+kLQAWgjlOd0oWZz1kCj8SzO3ZtWWO0bs0s3ZyI5SayxsCNecafWiY3bI 7YEuds/FTPfrd/Z1qKt3255PIo1y6yqM4LCxv2OVbE1SRc0DfKYo6u+oPUDwTNUcUkTwObaPx tBfk6v3VqxkWxwjTii9PQ9EYQuxo+gsymwKHYNbVwBvNCSXADRK2R4n83YVehjo0rijEqDua1 lB0hkuGiQ6MgaRSxo5kaVeVAI07tv5rJ3Fq+sVAZy93IIzdDU4aa/Y2Rp8z5j0Y2WOstauljz QnNjyFisEynvpNL55ekJvm4sD98hMyXZytqam9cibzs4dp0WX27e7ZObbMmDccVz0wKmaHqcA JgwuJkG0lK5tjdC2O+LEKIq++qvgyEkaL6YOXXkKwUcvrZgokvL7topjln5pr960kpz/IRt/6 iJIuSTLEg8SDag+9i4lFOvs+MqahgYdKT4I1tI6CcgMYMUGwzzckhaX3BBeMbAJPhfiRsXFGt jHkcoZUXgQUTsSRp6RzOWReC/3OnCohyYVVEgA== Cc: alsa-devel@alsa-project.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH] ASoC: atmel-classd: select correct Kconfig symbol 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 Commit 061981ff8cc8 ("ASoC: atmel: properly select dma driver state") changed the way that the dependencies are handled, but then the Class D amplifier support got merged, which used the old method. This seems to have triggered a very rare randconfig condition for me now, leading to a link error: sound/soc/atmel/atmel_ssc_dai.o: In function `atmel_ssc_set_audio': atmel_ssc_dai.c:(.text+0x79c): undefined reference to `atmel_pcm_dma_platform_register' atmel_ssc_dai.c:(.text+0x79c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `atmel_pcm_dma_platform_register' sound/soc/atmel/atmel_ssc_dai.o: In function `atmel_ssc_put_audio': atmel_ssc_dai.c:(.text+0xf24): undefined reference to `atmel_pcm_dma_platform_unregister' atmel_ssc_dai.c:(.text+0xf24): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `atmel_pcm_dma_platform_unregister' Changing it to select SND_ATMEL_SOC_SSC_DMA as intended rather than SND_ATMEL_SOC_DMA directly makes it work again. Fixes: e0a25b6d1862 ("ASoC: atmel-classd: add the Audio Class D Amplifier") Signed-off-by: Arnd Bergmann Acked-by: Alexandre Belloni --- sound/soc/atmel/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/atmel/Kconfig b/sound/soc/atmel/Kconfig index 4a56f3dfba51..2d998e5c4fb5 100644 --- a/sound/soc/atmel/Kconfig +++ b/sound/soc/atmel/Kconfig @@ -64,7 +64,7 @@ config SND_AT91_SOC_SAM9X5_WM8731 config SND_ATMEL_SOC_CLASSD tristate "Atmel ASoC driver for boards using CLASSD" depends on ARCH_AT91 || COMPILE_TEST - select SND_ATMEL_SOC_DMA + select SND_ATMEL_SOC_SSC_DMA select REGMAP_MMIO help Say Y if you want to add support for Atmel ASoC driver for boards using