From patchwork Thu Jun 5 10:40:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 4304431 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 70007BEEA7 for ; Thu, 5 Jun 2014 10:41:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC15E20328 for ; Thu, 5 Jun 2014 10:41:14 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 6A5FF20306 for ; Thu, 5 Jun 2014 10:41:13 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4D5C7264F3A; Thu, 5 Jun 2014 12:41:12 +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 BB3A926548B; Thu, 5 Jun 2014 12:41:01 +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 3B424265555; Thu, 5 Jun 2014 12:41:00 +0200 (CEST) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by alsa0.perex.cz (Postfix) with ESMTP id EB542265662 for ; Thu, 5 Jun 2014 12:40:41 +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=mreue103) with ESMTP (Nemesis) id 0LsNui-1Wlzpt08z2-011w7B; Thu, 05 Jun 2014 12:40:05 +0200 From: Arnd Bergmann To: broonie@kernel.org Date: Thu, 05 Jun 2014 12:40:04 +0200 Message-ID: <4367111.vzeoBg4u5h@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:6i6orC2ftU48ErDJ+HfEutwe9e1BltADNUd4PYmkc2i Am4p3mvuaRKAD1qG41SpxiT1cfZvCE2HjoS4HTgN6U6tu8lg/N qXeeBzYrMJib4JLUTWJbGJEktVqBVmjOYO7pU3gHmSvTOImWr4 A89T9cKWTPrdX9jhvJ59NAcAcD/sVzQTOJ4x/nnWX5TOV9spTu 3gcstvihpploHlHQAIlHv/NvrwMfevCyUpvUFoeUZ4TfXogk5q KQsbjzqNTZu0EjL6Xac74N+UFlrJSb1BS7IW6u3+9BAQ55KZvg oDi23LHiRvNxgVZbXcOHt3B/vXCGdgJhXp4XUJLNQ3xaiCLS/n gBOhWoaqmdE4ZSymdDXY= Cc: alsa-devel@alsa-project.org, Eric Miao , lgirdwood@gmail.com, Haojian Zhuang , Qiao Zhou , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH] ASoC: MMP audio needs sram support 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 From e7a94bb7fb871c73cc85712d89c1f48d0271c1be Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Thu, 5 Jun 2014 12:31:28 +0200 Subject: [PATCH] ASoC: MMP audio needs sram support Building the pxa/mmp audio driver without support for the mmp sram driver enabled results in this link error: sound/built-in.o: In function `mmp_pcm_free_dma_buffers': :(.text+0x3e734): undefined reference to `sram_get_gpool' sound/built-in.o: In function `mmp_pcm_new': :(.text+0x3e7c0): undefined reference to `sram_get_gpool' The sram driver is cannot be manually enabled and needs to be turned on by selecting MMP_SRAM from each module that needs it, which is what this patch does. Ideally, MMP should move over to the generic SRAM support, but for the moment, we can avoid the build error. Signed-off-by: Arnd Bergmann Cc: Eric Miao Cc: Haojian Zhuang Cc: Qiao Zhou diff --git a/sound/soc/pxa/Kconfig b/sound/soc/pxa/Kconfig index 42b305e..12a6da8 100644 --- a/sound/soc/pxa/Kconfig +++ b/sound/soc/pxa/Kconfig @@ -11,6 +11,7 @@ config SND_PXA2XX_SOC config SND_MMP_SOC bool "Soc Audio for Marvell MMP chips" depends on ARCH_MMP + select MMP_SRAM select SND_SOC_GENERIC_DMAENGINE_PCM select SND_ARM help