From patchwork Thu Jan 11 06:43:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 10157319 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 4867A601A1 for ; Thu, 11 Jan 2018 06:46:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3AB99286AE for ; Thu, 11 Jan 2018 06:46:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F835286B5; Thu, 11 Jan 2018 06:46:57 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no 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 70507286AE for ; Thu, 11 Jan 2018 06:46:56 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 441F52678CB; Thu, 11 Jan 2018 07:44:27 +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 D6D7C267890; Thu, 11 Jan 2018 07:44:21 +0100 (CET) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by alsa0.perex.cz (Postfix) with ESMTP id DB04E266E70 for ; Thu, 11 Jan 2018 07:44:15 +0100 (CET) Received: by mail-pf0-f196.google.com with SMTP id y5so874710pff.13 for ; Wed, 10 Jan 2018 22:44:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1qnVB9eBhs9Q71EbuaPqwtaxuqGF67tyRZUJqBCV53o=; b=RJnBpCSDq5mHkf68zzH2lYUdQVJhWRl1JwhpTzbBB7Q+fTB+gSgyZUzs381Qaxzwfr EXgxap8BmVdpwmjL6GkazbfHAa28wlPgYzzULukUrI8c23z7KXH+BBSxnarEFxrx0Tsk FcB3g7PWHO98D0/eToD8rvsHqZwALZNbiSs2X+P4J7inBQgnmXyOJgQQYDDyx2CMMqDX CUPVFFfDAHZVaJNGsHRQCwBUtbDZtNJAaF1XQmm92qescAgKchVRoFTgl79vx1h8Ecpj FSVhDhZSWuUyx6lsbINTzosxjN9oFh+kw/IsQGf8DfeUbNCtOVOVu+PQbwmfg/MVo/JV CFtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1qnVB9eBhs9Q71EbuaPqwtaxuqGF67tyRZUJqBCV53o=; b=BCRBhCX3DHq5VrcxTDiITcFqYerAuB8ADLoeK9fJ1JHNJjo9IpPttWZ+V7wFbPbO19 G6f4DVtdRYIHnEx0bW9Y02CBpQ1TilFdfapFnAVaK8Chx+XpdMIfAjxQvTAh8PsUUR6o niEjrkf8yE2P643aJdfP68K+V2vcz9tZZ0AgtzPt73TRdlRys0iYkIG4gfcW87deL0js RYhhqCntdpelmE6L7M0HiDOs1mliN27vq2hFzuLg0rXTQxZlEk4u3Ygo6Zl6zNlR6mWo oAxYcayhdIP357AgHdL9iCXVmto3feVct5X5XOPvxloSflDDa/pXicXZ1xu9pMecEd3C ms3Q== X-Gm-Message-State: AKwxyteYPpkfLJzRP+EE9DNaKXyMYdO1OuMDnuwr1YT1I3Tg0LWRczjj 8JVrOfFgXndjCAxL/G4I+js= X-Google-Smtp-Source: ACJfBotJ6y66bbB7QV+BtXPKanjJB8I0F+dd/S8eyOyiQC80biCSkQQUQ2wIRbe3jTFDkR5hMbPBdA== X-Received: by 10.159.255.4 with SMTP id bi4mr953061plb.171.1515653054688; Wed, 10 Jan 2018 22:44:14 -0800 (PST) Received: from Asurada-CZ80.localdomain (c-73-231-2-134.hsd1.ca.comcast.net. [73.231.2.134]) by smtp.gmail.com with ESMTPSA id b69sm27959666pfk.128.2018.01.10.22.44.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jan 2018 22:44:14 -0800 (PST) From: Nicolin Chen To: timur@tabi.org, broonie@kernel.org, mail@maciej.szmigiero.name Date: Wed, 10 Jan 2018 22:43:09 -0800 Message-Id: <1515652995-15996-11-git-send-email-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515652995-15996-1-git-send-email-nicoleotsuka@gmail.com> References: <1515652995-15996-1-git-send-email-nicoleotsuka@gmail.com> Cc: alsa-devel@alsa-project.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org, caleb@crome.org, lgirdwood@gmail.com, arnaud.mouiche@invoxia.com, lukma@denx.de, fabio.estevam@nxp.com, linuxppc-dev@lists.ozlabs.org Subject: [alsa-devel] [PATCH v2 10/16] ASoC: fsl_ssi: Use snd_soc_init_dma_data instead 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 Since there is a helper function, use it to help readability. Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --- sound/soc/fsl/fsl_ssi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index e75b57d..2c179a7 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -1105,10 +1105,9 @@ static int fsl_ssi_dai_probe(struct snd_soc_dai *dai) { struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai); - if (ssi->soc->imx && ssi->use_dma) { - dai->playback_dma_data = &ssi->dma_params_tx; - dai->capture_dma_data = &ssi->dma_params_rx; - } + if (ssi->soc->imx && ssi->use_dma) + snd_soc_dai_init_dma_data(dai, &ssi->dma_params_tx, + &ssi->dma_params_rx); return 0; }