From patchwork Mon Mar 4 20:30:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 159611 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4183303jad; Mon, 4 Mar 2019 12:32:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzr8XWp7ZijVXq8sFc0SduvCiiPZiW5g/Ir1YXKDrAzLB9dtrta70LV59ybSeu3Dt4+NlAu X-Received: by 2002:a17:902:59d6:: with SMTP id d22mr5227004plj.307.1551731559616; Mon, 04 Mar 2019 12:32:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551731559; cv=none; d=google.com; s=arc-20160816; b=KJC/jM8dKn3y5/AEf3vE6wt13oxhaDUw+btDADt7DH8MlFOvwT38Q9rofzvMSkISXp 9AboMuX8egK4EiQeC+OIEgM8hYULvH9GxTrYJ+fD/PEULHXmN8MV+5ARh6MhmIghAccR RhSEZi1OngX9Cep0wjzJPyu9Y5cnJ1fYkHVM/pGTGoxV8iEtO7d15T4BCu3vjxHLXSHD h953CGmO+jlfRfpwxH9wKV24FKu7OyPDN3Z98y7xft4m0VjM/20nN4fb3raqHvyqvxqH 46Tyo1hwPaXowvMaFTeuIckGTZ2GPc82jZLuso7vnBGpzOafrJTFxNIhci5Gzt7KfHbW bxOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iFXkZn9k7viqdWQ2LRyzDv0YRuQe8tGCz26uxoLGEyA=; b=uYm8P4ozwzyPbJPeVDjpM8g3iXYJAdJNVq+a1+clY4Ezqn/bLLl2GJ0YbUHnKar9JE zjMNbP+hMr/yQW22w6e0TULYRjRhBk+/GjsQmEHhNUz3on3mSP/QFiW2cogLky11gLEo l9SZjV6klhXAcDunO/0iaAW7+kCJfIw5qOE1rtd1Pbzs9H4JcnV+PmfIEHN3m0SqQmqt W+BLsIdnmZcOG20nML7J8mtHxZwqx/Qclp5c4q7VJLX6vFxFqKFpl8hoHjkmRu9N40Kp vcmiMFQkQpxCPMd9O3C272aaiEIPRojzbFOCOmmAiMeCK/eQmgCyoREmd3/Xmrk8HUZ0 cT5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 y186si5903369pgd.315.2019.03.04.12.32.39; Mon, 04 Mar 2019 12:32:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726170AbfCDUci (ORCPT + 5 others); Mon, 4 Mar 2019 15:32:38 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:37819 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbfCDUci (ORCPT ); Mon, 4 Mar 2019 15:32:38 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MofLl-1hKKoo0TY9-00p0vk; Mon, 04 Mar 2019 21:31:51 +0100 From: Arnd Bergmann To: Peter Ujfalusi , Mark Brown Cc: Arnd Bergmann , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Jarkko Nikula , Tony Lindgren , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 2/3] ASoC: ti: remove compat dma probing Date: Mon, 4 Mar 2019 21:30:51 +0100 Message-Id: <20190304203114.1894822-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190304203114.1894822-1-arnd@arndb.de> References: <20190304203114.1894822-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:23zV7yiwQbGvoR6NSOw+FcqidDd3dA6fErRuKWTjmyD7MdmC+nw XwIU2b9OhxTFai7Wzym7Ww+fjFwr3EQzIMc7oDopmtD5TtPhxri+q3tZjaL7TadR2OXFOA3 UpWqjGInXBBsWPR+vfFM5BmKUT1pCWCV3WetpsNNKM2Un2aojuWibWescy2dp5tfhvVLNJL bpkx+3U+AuU9p9/wZlt6A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:NWqV2wJR8PE=:0+AF6lWNa0GjvFa6H71OYu gtLjM0pjCayaUSg/tF7w3giEbH4JU/YfXsmEKoJA61xIT/qRCXA9jca7zuwRa/KIe1MOJczBQ Fm5xVUJblS9fCOKbyHqZPSUw0I0MvDF3MEN6fI6x85/aUVZ0csqZNJHvC1uCd133PF4w4P0i0 M89LqJfULpebVOXTam7701GBYHxCVA0hGLqNFLRucWI2+uD+WJTDfyH7L2gwJffhed+7pnHVf dlNJajKHq1EKswxTUvij4uNWZqo4M92A9qOufmgX409PGszONYPEuMR1m2XfxWfNSZa+AbcX3 ekumBnSMbSM7uhqZjeO8tSOo/UfGf2gqJizx6OGYOJQ2s+Zvm6I+yHuX+Wl7KbjrZcu7wWey6 Gli7mM7GrKwokRs2Fu0jgnkbv9pqjfxfFsGUllRaHvKiStgWYzGwEl06KGLv72TMZ1h4k7JWM JSmyZSCpokIThna0VmV+J9fQAEiW9pcqfg8OIt4u6iiF23tUmpf0gti2wIliZapiva8tw4WNL zMH1QR46CtAv5o/pot7hK4ddJwc7ajjxgb8PeF/XlGb+YksT6upSogjixF9H/vXjekGpKHzDI 7fveZBjSI1ZKzGnt+8WbuVHLVDg04YO5Plpbjc9a7ikNv1iGk5MBGZ6v5plCpXD4vIHqaRA5/ nnNp0xo7zYYGjBya0VNuAIau7XthX7OmPxod2C2/7ipuJF3S3r3PjjBu7+n1nPkVgVmHgHsjs iH0mN0fyILGQtn0TbWOJQA8SHW4zWZYejb1I4g== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org After running into a link error: sound/soc/ti/edma-pcm.o:(.rodata+0x18): undefined reference to `edma_filter_fn' I checked all users of this, and they have new-style 'dma_slave_map' tables, so none of them should still need it. Removing the associated lines simplifies the code and avoids the build-time dependency on the respective dmaengine drivers. Signed-off-by: Arnd Bergmann --- sound/soc/ti/edma-pcm.c | 4 +--- sound/soc/ti/sdma-pcm.c | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) -- 2.20.0 diff --git a/sound/soc/ti/edma-pcm.c b/sound/soc/ti/edma-pcm.c index 59e588abe54b..5b9e341309f0 100644 --- a/sound/soc/ti/edma-pcm.c +++ b/sound/soc/ti/edma-pcm.c @@ -43,14 +43,12 @@ static const struct snd_pcm_hardware edma_pcm_hardware = { static const struct snd_dmaengine_pcm_config edma_dmaengine_pcm_config = { .pcm_hardware = &edma_pcm_hardware, .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, - .compat_filter_fn = edma_filter_fn, .prealloc_buffer_size = 128 * 1024, }; int edma_pcm_platform_register(struct device *dev) { - return devm_snd_dmaengine_pcm_register(dev, &edma_dmaengine_pcm_config, - SND_DMAENGINE_PCM_FLAG_COMPAT); + return devm_snd_dmaengine_pcm_register(dev, &edma_dmaengine_pcm_config, 0); } EXPORT_SYMBOL_GPL(edma_pcm_platform_register); diff --git a/sound/soc/ti/sdma-pcm.c b/sound/soc/ti/sdma-pcm.c index 21a9c2499d48..3e83a3920dc7 100644 --- a/sound/soc/ti/sdma-pcm.c +++ b/sound/soc/ti/sdma-pcm.c @@ -31,7 +31,6 @@ static const struct snd_pcm_hardware sdma_pcm_hardware = { static const struct snd_dmaengine_pcm_config sdma_dmaengine_pcm_config = { .pcm_hardware = &sdma_pcm_hardware, .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, - .compat_filter_fn = omap_dma_filter_fn, .prealloc_buffer_size = 128 * 1024, }; @@ -39,13 +38,12 @@ int sdma_pcm_platform_register(struct device *dev, char *txdmachan, char *rxdmachan) { struct snd_dmaengine_pcm_config *config; - unsigned int flags = SND_DMAENGINE_PCM_FLAG_COMPAT; + unsigned int flags = 0; /* Standard names for the directions: 'tx' and 'rx' */ if (!txdmachan && !rxdmachan) return devm_snd_dmaengine_pcm_register(dev, - &sdma_dmaengine_pcm_config, - flags); + &sdma_dmaengine_pcm_config, 0); config = devm_kzalloc(dev, sizeof(*config), GFP_KERNEL); if (!config) @@ -65,7 +63,7 @@ int sdma_pcm_platform_register(struct device *dev, config->chan_names[0] = txdmachan; config->chan_names[1] = rxdmachan; - return devm_snd_dmaengine_pcm_register(dev, config, flags); + return devm_snd_dmaengine_pcm_register(dev, config, 0); } EXPORT_SYMBOL_GPL(sdma_pcm_platform_register);