From patchwork Mon Jan 15 23:16:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 10165469 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 9DF7B602C2 for ; Mon, 15 Jan 2018 23:20:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E74D26E3A for ; Mon, 15 Jan 2018 23:20:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 833B227BFF; Mon, 15 Jan 2018 23:20:00 +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 CDD7726E3A for ; Mon, 15 Jan 2018 23:19:59 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 976DD267685; Tue, 16 Jan 2018 00:17:45 +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 E7ECE26765C; Tue, 16 Jan 2018 00:17:39 +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 B82FC26763C for ; Tue, 16 Jan 2018 00:17:35 +0100 (CET) Received: by mail-pf0-f196.google.com with SMTP id y26so1167624pfi.10 for ; Mon, 15 Jan 2018 15:17:35 -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=M27wy16Y8v9FXxKOQf/YxVDixLReDSwBpXps2TQE0nI=; b=RoYl5BSCLbvt5b01bMo4FMuDEGpRm2LL32urv7/TcopYgVDMUKC5+iJQQtNWRrUj87 XRaqoq98Aa3k8roeVApTKtjhMW8Tp3TIJW7dQRnRZMegPkxmCzfKBfBNsBhcR1DdcAM+ /0zR8V/RWn7bvtpVoXUYiudXTs26gFNT6kIInkx79bZFUUsMPvJGRPX4bu85hR2VsiPk psfau/rh4jvoBPaWaRT4alQyxhzxkgysAy1YikYpddOKQo4HEGO011KaZ4z0BoTIAI2u fP3Fbx7JW746KSLewbWv/HHFPD5r//aPKv1IEuXyYpOji/XBfi0eoAh1U0b0yGKwIJYq fQyg== 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=M27wy16Y8v9FXxKOQf/YxVDixLReDSwBpXps2TQE0nI=; b=d1WBgfZlueZA9bWiOJCjvCRzqFq9N5FRi75j14BYovG3Yf83Y2bSBP6n3ZpXAXQS1m P3eD5EmYv9HMdLLNdvjVa5KWfuXg/gy4dXLGynSVdstagAnAPUr1fkzqqUnVGCvmYcff qfK0TIi5Sp+jc9NOAqfWHBC+/2ZfhrHI22sq3WJZTIgaW44sGv6GbSl5YcbPoVZyt4Em PRk8Y36zCJsbptD1kq+e/Cie0G5o9N4O1dQ2z4bwk8Z7KN9fB08/TZC9xjqnXJvkO86r b/e70OsCKyU0O+rVdEKCkoroht3MZQpntWoTKLvSpDpWdANEViibXTa33Vx1ru21T9+e x4pw== X-Gm-Message-State: AKGB3mLKELyVKbxmx917U/iUI1Dn/UWsD+rWvKeLLIkDIPBEVcSuCpxB 01WQ1AF6pKAeyndxQe7sL6A= X-Google-Smtp-Source: ACJfBourlv3Cn2bxHw0uIkvXL9hh2zLUhEvN0RH8zWRWCaikgVaLYtLpnLgSV7fikk4Un+9RE84ecw== X-Received: by 10.99.95.3 with SMTP id t3mr26459682pgb.302.1516058254133; Mon, 15 Jan 2018 15:17:34 -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 b6sm776442pfe.85.2018.01.15.15.17.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Jan 2018 15:17:33 -0800 (PST) From: Nicolin Chen To: timur@tabi.org, broonie@kernel.org, mail@maciej.szmigiero.name Date: Mon, 15 Jan 2018 15:16:26 -0800 Message-Id: <1516058192-65519-12-git-send-email-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516058192-65519-1-git-send-email-nicoleotsuka@gmail.com> References: <1516058192-65519-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 v4 11/17] 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 ba06e94..e1fe511 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -1110,10 +1110,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; }