From patchwork Thu Apr 20 06:36:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 9689527 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 4D53B601D4 for ; Thu, 20 Apr 2017 06:34:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FA0F28437 for ; Thu, 20 Apr 2017 06:34:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3410528445; Thu, 20 Apr 2017 06:34:37 +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_SIGNED, 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 750D528459 for ; Thu, 20 Apr 2017 06:34:35 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1A57D2669D8; Thu, 20 Apr 2017 08:34:32 +0200 (CEST) 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 A5B10266A7A; Thu, 20 Apr 2017 08:34:30 +0200 (CEST) Received: from mail.kmu-office.ch (mail.kmu-office.ch [178.209.48.109]) by alsa0.perex.cz (Postfix) with ESMTP id 7AF1E266954 for ; Thu, 20 Apr 2017 08:34:27 +0200 (CEST) Received: from trochilidae.lan (unknown [IPv6:2601:602:8801:c3e0::edf]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 514E45C09CD; Thu, 20 Apr 2017 08:34:14 +0200 (CEST) From: Stefan Agner To: timur@tabi.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com Date: Wed, 19 Apr 2017 23:36:07 -0700 Message-Id: <20170420063607.23990-1-stefan@agner.ch> X-Mailer: git-send-email 2.12.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1492670056; bh=687TA2t70LX994Q5sRDt8Ww7cfAM0W6nb+q99Bs6lqs=; h=From:To:Cc:Subject:Date:Message-Id; b=NFfJR0Wrn+t6i9KnuxQbrnYSFLGg+Bgved80mJKlOznAHQgFEVWR44FgdaaYASkmG7OiWRr17Es8sAw1PqxAnahZ5UoYpqBs/d1m63I5794qh/AmaSCgqT/rF5EGSVRjQmL3IqPGr2Tsq+oO1AFg9xymSp9W/teMPRpFj6WF53o= Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, tiwai@suse.com, Stefan Agner , lgirdwood@gmail.com, broonie@kernel.org, fabio.estevam@nxp.com Subject: [alsa-devel] [PATCH] ASoC: fsl_asrc_dma: use correct direction enum type 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 The direction argument is of type enum dma_transfer_direction, and not enum dma_data_direction. The enumeration values are the same so this did not had an effect in practise. Signed-off-by: Stefan Agner Acked-by: Nicolin Chen --- sound/soc/fsl/fsl_asrc_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_asrc_dma.c b/sound/soc/fsl/fsl_asrc_dma.c index dc30d780f874..282d841840b1 100644 --- a/sound/soc/fsl/fsl_asrc_dma.c +++ b/sound/soc/fsl/fsl_asrc_dma.c @@ -76,7 +76,7 @@ static int fsl_asrc_dma_prepare_and_submit(struct snd_pcm_substream *substream) pair->dma_chan[!dir], runtime->dma_addr, snd_pcm_lib_buffer_bytes(substream), snd_pcm_lib_period_bytes(substream), - dir == OUT ? DMA_TO_DEVICE : DMA_FROM_DEVICE, flags); + dir == OUT ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM, flags); if (!pair->desc[!dir]) { dev_err(dev, "failed to prepare slave DMA for Front-End\n"); return -ENOMEM;