From patchwork Mon Jan 15 04:21:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 10163023 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 F355F601C0 for ; Mon, 15 Jan 2018 04:25:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0050228904 for ; Mon, 15 Jan 2018 04:25:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7414289FF; Mon, 15 Jan 2018 04:25:10 +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 295EF28904 for ; Mon, 15 Jan 2018 04:25:10 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 0D9412673E8; Mon, 15 Jan 2018 05:22:39 +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 0F1B926739F; Mon, 15 Jan 2018 05:22:32 +0100 (CET) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by alsa0.perex.cz (Postfix) with ESMTP id A89AF26738C for ; Mon, 15 Jan 2018 05:22:28 +0100 (CET) Received: by mail-pg0-f65.google.com with SMTP id j2so7416152pgv.3 for ; Sun, 14 Jan 2018 20:22:28 -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=sO5Iuu1P7cD11bBrR32K5Mw2R7DPS9HSKN+mscXNpWpigqTbKfF+nMwClhDRwNYS2+ hQ+hrkugso5U7GFs4z195qu09h67HK/MbciyM3C5Ue1YmLjFrQEXut5ws4IiU55EtOZk OObqiEiOmckvnmwN50SicmkOLM7rbpnNZgsKIYxkjUgvLvmacly+mdRvYeSpyLmTJD9J fzAsQzjqrfRAhgYrWsf7bfueRuucAc/j9KFDEaLyPgHGRFzkwjCy9S0+2DMhYZdvmaEH 9UcCkodkaH8S53HEk5KwP8yIsyzyYINHG4vkklBpJs4vizXmBkWRof3MeXM+Q3DoINCZ ycvA== 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=mmJh4qW9D01zuIM3Hwgjik76RLjxHcPElxo/WhckEZFoyO3Kw5phtOG0hDfiEuO+vr 3sbUi/cbCgOUqi/SOfVyx2X8xOG4foLGt/03THm3/YWTDXi4BNURAEdmefsuNRMOVlcK sb1iTAF7nipiruehbi2zeC6Q/Pnl1AE+GgWH2NqLK+qzGh0KjgGbJ4XFbq0PG+ua65B8 Zel1dnNVX+IvQmxr1InfcCmc4BJPQIXqRWF+z5l2d70WPTRIGrsFlBuicdE8FSGYUl2Q ovnp1AmloJZSNoVwXP3dTaOZrhi65L8h9dk0K53HX3Dg+fCjmrZD38uUZbBHGcGlP92n iUxQ== X-Gm-Message-State: AKGB3mKNB0jttHbbGPd+vToxwylYLzaCv4C1dBuk/AbpzgAxXFzFBYGs p/TxbaifgZjUCigBU4lc81A= X-Google-Smtp-Source: ACJfBov41rCwDJp8mO/fHmbqBB8DzopMAJCYvCj7LFRENMqMHZSOJs6zgX0juN43Jbzl2A1iiIQphA== X-Received: by 10.99.95.4 with SMTP id t4mr24187188pgb.291.1515990147024; Sun, 14 Jan 2018 20:22:27 -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 v7sm17011018pgs.83.2018.01.14.20.22.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Jan 2018 20:22:26 -0800 (PST) From: Nicolin Chen To: timur@tabi.org, broonie@kernel.org, mail@maciej.szmigiero.name Date: Sun, 14 Jan 2018 20:21:21 -0800 Message-Id: <1515990087-11598-12-git-send-email-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515990087-11598-1-git-send-email-nicoleotsuka@gmail.com> References: <1515990087-11598-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 v3 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; }