Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1559329

Re: [PATCH 1/1] ASoC: fsl_asrc: use dma_transfer_direction enum when calling dmaengine_prep_dma_cyclic

From Nicolin Chen <nicoleotsuka@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] ASoC: fsl_asrc: use dma_transfer_direction enum when calling dmaengine_prep_dma_cyclic
Date 2017-01-15 20:20 +0100
Message-ID <sZYvo-6jp-17@gated-at.bofh.it> (permalink)
References <sZSpX-2zL-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <nicolas.iooss_linux@m4x.org>

Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>

Thanks.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] ASoC: fsl_asrc: use dma_transfer_direction enum when calling dmaengine_prep_dma_cyclic Nicolas Iooss <nicolas.iooss_linux@m4x.org> - 2017-01-15 13:50 +0100
  Re: [alsa-devel] [PATCH 1/1] ASoC: fsl_asrc: use dma_transfer_direction  enum when calling dmaengine_prep_dma_cyclic Fabio Estevam <festevam@gmail.com> - 2017-01-15 14:30 +0100
  Re: [PATCH 1/1] ASoC: fsl_asrc: use dma_transfer_direction enum when  calling dmaengine_prep_dma_cyclic Nicolin Chen <nicoleotsuka@gmail.com> - 2017-01-15 20:20 +0100

csiph-web