From patchwork Mon Feb 12 22:03:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 10214605 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 F3E0660467 for ; Mon, 12 Feb 2018 22:05:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D049726538 for ; Mon, 12 Feb 2018 22:05:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3463289C2; Mon, 12 Feb 2018 22:05:12 +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 1102A26538 for ; Mon, 12 Feb 2018 22:05:12 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id BB7102676A3; Mon, 12 Feb 2018 23:03:01 +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 6631D267699; Mon, 12 Feb 2018 23:03:00 +0100 (CET) Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by alsa0.perex.cz (Postfix) with ESMTP id 3907C26765B for ; Mon, 12 Feb 2018 23:02:52 +0100 (CET) Received: by mail-pl0-f67.google.com with SMTP id p5so5627901plo.12 for ; Mon, 12 Feb 2018 14:02:52 -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=XzXcFIkJd3rviJhlB3gL2oYs8XERyIITOaDFkGlK0eE=; b=kNHigw9wvXA4ZUkS75zoxcpcaubSgr4XpQH0I0TROmXt8lYhwNH8+ftZrDTveQA4eA 7mErgmgr2uiS4fP4ii2q1BrWTH6yGPIQfLefNwD1jOEtAZWFoMOOuDCzp6w7jcLCof7u 9hpyiBb/dFg2xW7lG3T8Et0I5lcn/w2VnyLwRxpI2LGY3GMIBnM4aG1CiEAeLR2qnewk LHKZgjl68rnrBMCt6ZohqZBDl8+sKHLuJPG1esMJVvejEfJ3Y015eBp+DsXeJpW3ALn4 OBW7DWem0ZqP9D+R7vx8RbySVaGtW8Qu0hM1a1Zju5LFUfdsD8dy++e7lbLno20VroVL laXw== 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=XzXcFIkJd3rviJhlB3gL2oYs8XERyIITOaDFkGlK0eE=; b=MeaJfxbScwO95qDjqmXg5Qp16gqVQ9bEtXNhXQE9DAEtGbXP6McnnmN5sg0pwP2VmP IJfU/hw9dID7j1No557BjARden/gH2uDvrIEGUM6qdz0qytVsRO9ZVrPmQTcxLbgYlA5 NmfPr8P+BnxgGJIE6IWua3Ts56849raXdk7GOfquJmDAvIv31jVEAAIXog7CHSvU+w6m 0siDamdSwZe91+bejC7top9lBCyozwRMTOVCeumqm8Gv0ddBhryIWt6JOcmhsk18SjSD seOcK5ghERQ6AEzIg7J/hBIt9nZmTdp7uoydrd3kuWeVBYZm8IyCARpUTaaSihK4nFWX X1iQ== X-Gm-Message-State: APf1xPBxb82KthWxBkU+2R4I9N2PzPuFzFZCNN7yDZc6k3AFG2EEtRBI C51qjnZP5mpdhQwJa0efRzU= X-Google-Smtp-Source: AH8x226GYqbEN0UbeRl9fRqV35j9LtuFCWexC25UsR9rlytBKV8eCRROYVTNR3rHCDPiaaqRH3XQyA== X-Received: by 2002:a17:902:5a8c:: with SMTP id r12-v6mr11656804pli.87.1518472971770; Mon, 12 Feb 2018 14:02:51 -0800 (PST) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id c8sm13386159pgn.72.2018.02.12.14.02.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Feb 2018 14:02:51 -0800 (PST) From: Nicolin Chen To: broonie@kernel.org, timur@tabi.org Date: Mon, 12 Feb 2018 14:03:19 -0800 Message-Id: <1518473005-14090-12-git-send-email-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1518473005-14090-1-git-send-email-nicoleotsuka@gmail.com> References: <1518473005-14090-1-git-send-email-nicoleotsuka@gmail.com> Cc: mail@maciej.szmigiero.name, kernel@pengutronix.de, lgirdwood@gmail.com, alsa-devel@alsa-project.org, caleb@crome.org, linux-kernel@vger.kernel.org, arnaud.mouiche@invoxia.com, lukma@denx.de, fabio.estevam@nxp.com, linuxppc-dev@lists.ozlabs.org Subject: [alsa-devel] [PATCH v6 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 Tested-by: Maciej S. Szmigiero Reviewed-by: Maciej S. Szmigiero --- 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 00dfdc7..7e15b30 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; }