From patchwork Fri Nov 4 16:14:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 9412827 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 D870560585 for ; Fri, 4 Nov 2016 16:20:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9B8B2B126 for ; Fri, 4 Nov 2016 16:20:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BEA7E2B1C0; Fri, 4 Nov 2016 16:20:52 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1A5742B126 for ; Fri, 4 Nov 2016 16:20:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c2hCW-0007td-Lz; Fri, 04 Nov 2016 16:18:44 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c2hBa-0007D9-7R for linux-arm-kernel@lists.infradead.org; Fri, 04 Nov 2016 16:17:47 +0000 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OG400UYZL905F20@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Sat, 05 Nov 2016 01:17:24 +0900 (KST) X-AuditID: cbfee61a-f79916d0000062de-b9-581cb494e82b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id FF.D1.25310.494BC185; Sat, 5 Nov 2016 01:17:24 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OG400JDIL52T940@mmp2.samsung.com>; Sat, 05 Nov 2016 01:17:24 +0900 (KST) From: Sylwester Nawrocki To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org Subject: [PATCH RFC 5/7] ASoC: samsung: pcm: Do not use platform_data for DMA parameters Date: Fri, 04 Nov 2016 17:14:52 +0100 Message-id: <1478276094-19135-7-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1478276094-19135-1-git-send-email-s.nawrocki@samsung.com> References: <1478276094-19135-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPIsWRmVeSWpSXmKPExsVy+t9jQd0pW2QiDGZsMbHYfuQZq8XfScfY LaY+fMJm8W/KDXaL1VP/slq8ebuGyaL/8Wtmi02Pr7FazDi/j8ni8Jt2VouLK74wWbzs289i 0bPhP6sDr8fvX5MYPXbOusvusXjPSyaPTas62Tw2L6n3eDnxN5vHln6geN+WVYwenzfJBXBG udlkpCampBYppOYl56dk5qXbKoWGuOlaKCnkJeam2ipF6PqGBCkplCXmlAJ5RgZowME5wD1Y Sd8uwS2j58BM5oLNAhWnjy5gbWBczNvFyMkhIWAi0XzhIiuELSZx4d56ti5GLg4hgVmMEp+f vWOGcH4xSnTtb2YGqWITMJToPdrHCGKLCGRI3O48ww5SxCzwh1HiwI9udpCEsECUxNVPv8HG sgioSky9e4sJxOYVcJNY+OAmM8Q6OYmTxyaD1XAKuEtc3beCDcQWAqqZ9fIXywRG3gWMDKsY JVILkguKk9JzDfNSy/WKE3OLS/PS9ZLzczcxgiPnmdQOxoO73A8xCnAwKvHwNmyQiRBiTSwr rsw9xCjBwawkwlu/HijEm5JYWZValB9fVJqTWnyI0RTosInMUqLJ+cCoziuJNzQxNzE3NrAw t7Q0MVIS522c/SxcSCA9sSQ1OzW1ILUIpo+Jg1OqgfGCSsnnl79nvy3JWpwZnM/z3uHE5ngG 3oJpOX8mckzdNYvtkIHIUTVTXYfTth9mf3/kfvK10pfjWbr1ce5RbDF3GiV8XGZ7PE59lqGt zRq59dQyAff4u90fZ888VbHwPm//5v7Stha/U3dO2Kvwz7qzu/Egj+zrf7U9LiKHxW/wuOv+ 2OH2L12JpTgj0VCLuag4EQD9kUkOsgIAAA== X-MTR: 20000000000000000@CPGS X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161104_091746_505281_E5239D98 X-CRM114-Status: GOOD ( 13.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arnd@arndb.de, vinod.koul@intel.com, sbkim73@samsung.com, andi.shyti@samsung.com, javier@osg.samsung.com, broonie@kernel.org, kgene@kernel.org, Sylwester Nawrocki , ckeepax@opensource.wolfsonmicro.com, ym0914@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP All related platforms use either devicetree or the DMA slave map API for mapping DMA channels to slave devices so we can now stop using platform_data for passing DMA details. Signed-off-by: Sylwester Nawrocki Acked-by: Mark Brown --- sound/soc/samsung/pcm.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c index 43e367a..ccedab2 100644 --- a/sound/soc/samsung/pcm.c +++ b/sound/soc/samsung/pcm.c @@ -134,18 +134,22 @@ struct s3c_pcm_info { static struct snd_dmaengine_dai_dma_data s3c_pcm_stereo_out[] = { [0] = { .addr_width = 4, + .chan_name = "tx", }, [1] = { .addr_width = 4, + .chan_name = "tx", }, }; static struct snd_dmaengine_dai_dma_data s3c_pcm_stereo_in[] = { [0] = { .addr_width = 4, + .chan_name = "rx", }, [1] = { .addr_width = 4, + .chan_name = "rx", }, }; @@ -488,7 +492,6 @@ static int s3c_pcm_dev_probe(struct platform_device *pdev) struct s3c_pcm_info *pcm; struct resource *mem_res; struct s3c_audio_pdata *pcm_pdata; - dma_filter_fn filter; int ret; /* Check for valid device index */ @@ -555,13 +558,6 @@ static int s3c_pcm_dev_probe(struct platform_device *pdev) s3c_pcm_stereo_in[pdev->id].addr = mem_res->start + S3C_PCM_RXFIFO; s3c_pcm_stereo_out[pdev->id].addr = mem_res->start + S3C_PCM_TXFIFO; - filter = NULL; - if (pcm_pdata) { - s3c_pcm_stereo_in[pdev->id].filter_data = pcm_pdata->dma_capture; - s3c_pcm_stereo_out[pdev->id].filter_data = pcm_pdata->dma_playback; - filter = pcm_pdata->dma_filter; - } - pcm->dma_capture = &s3c_pcm_stereo_in[pdev->id]; pcm->dma_playback = &s3c_pcm_stereo_out[pdev->id]; @@ -574,7 +570,7 @@ static int s3c_pcm_dev_probe(struct platform_device *pdev) goto err5; } - ret = samsung_asoc_dma_platform_register(&pdev->dev, filter, + ret = samsung_asoc_dma_platform_register(&pdev->dev, NULL, NULL, NULL); if (ret) { dev_err(&pdev->dev, "failed to get register DMA: %d\n", ret);