aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/dma.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@linux.intel.com>2011-10-14 01:19:30 -0400
committerVinod Koul <vinod.koul@linux.intel.com>2011-10-31 00:10:27 -0400
commit35e16581ed6bff55009a0bac34c755140407b03f (patch)
treea3d8e027d102e618c9602a0bbf8e693640c8a3d5 /sound/soc/samsung/dma.c
parenta485df4b4404379786c4bdd258bc528b2617449d (diff)
sound-soc: move to dma_transfer_direction
fixup usage of dma direction by introducing dma_transfer_direction, this patch moves asoc drivers to use new enum Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com> Cc: Liam Girdwood <lrg@ti.com> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/samsung/dma.c')
-rw-r--r--sound/soc/samsung/dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c
index 851346f7d68d..87a39575fb61 100644
--- a/sound/soc/samsung/dma.c
+++ b/sound/soc/samsung/dma.c
@@ -85,7 +85,7 @@ static void dma_enqueue(struct snd_pcm_substream *substream)
85 dma_info.cap = (samsung_dma_has_circular() ? DMA_CYCLIC : DMA_SLAVE); 85 dma_info.cap = (samsung_dma_has_circular() ? DMA_CYCLIC : DMA_SLAVE);
86 dma_info.direction = 86 dma_info.direction =
87 (substream->stream == SNDRV_PCM_STREAM_PLAYBACK 87 (substream->stream == SNDRV_PCM_STREAM_PLAYBACK
88 ? DMA_TO_DEVICE : DMA_FROM_DEVICE); 88 ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM);
89 dma_info.fp = audio_buffdone; 89 dma_info.fp = audio_buffdone;
90 dma_info.fp_param = substream; 90 dma_info.fp_param = substream;
91 dma_info.period = prtd->dma_period; 91 dma_info.period = prtd->dma_period;
@@ -170,7 +170,7 @@ static int dma_hw_params(struct snd_pcm_substream *substream,
170 dma_info.client = prtd->params->client; 170 dma_info.client = prtd->params->client;
171 dma_info.direction = 171 dma_info.direction =
172 (substream->stream == SNDRV_PCM_STREAM_PLAYBACK 172 (substream->stream == SNDRV_PCM_STREAM_PLAYBACK
173 ? DMA_TO_DEVICE : DMA_FROM_DEVICE); 173 ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM);
174 dma_info.width = prtd->params->dma_size; 174 dma_info.width = prtd->params->dma_size;
175 dma_info.fifo = prtd->params->dma_addr; 175 dma_info.fifo = prtd->params->dma_addr;
176 prtd->params->ch = prtd->params->ops->request( 176 prtd->params->ch = prtd->params->ops->request(