From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3v1mMF4J3NzDqVQ for ; Mon, 16 Jan 2017 06:16:57 +1100 (AEDT) Received: by mail-pf0-x242.google.com with SMTP id y143so12730709pfb.1 for ; Sun, 15 Jan 2017 11:16:57 -0800 (PST) Date: Sun, 15 Jan 2017 11:16:50 -0800 From: Nicolin Chen To: Nicolas Iooss Cc: Timur Tabi , Xiubo Li , Fabio Estevam , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] ASoC: fsl_asrc: use dma_transfer_direction enum when calling dmaengine_prep_dma_cyclic Message-ID: <20170115191649.GA4465@Asurada-CZ80> References: <20170115124331.3546-1-nicolas.iooss_linux@m4x.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170115124331.3546-1-nicolas.iooss_linux@m4x.org> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, Jan 15, 2017 at 01:43:31PM +0100, Nicolas Iooss wrote: > When fsl_asrc_dma_prepare_and_submit() calls > dmaengine_prep_dma_cyclic(), it uses either DMA_TO_DEVICE or > DMA_FROM_DEVICE. These values are both items of dma_data_direction enum, > not of dma_data_direction enum, which is the type expected by > dmaengine_prep_dma_cyclic(). > > Replace DMA_TO_DEVICE with DMA_MEM_TO_DEV and DMA_FROM_DEVICE with > DMA_DEV_TO_MEM to fix this type mismatch issue. > > Signed-off-by: Nicolas Iooss Acked-by: Nicolin Chen Thanks.