Commit a152ff24 authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Mark Brown

ASoC: OMAP: Make DMA 64 aligned

Align DMA address to DMA burst transaction sizes.
Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@nokia.com>
Acked-by: default avatarJarkko Nikula <jhnikula@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 9599d485
...@@ -310,7 +310,7 @@ static struct snd_pcm_ops omap_pcm_ops = { ...@@ -310,7 +310,7 @@ static struct snd_pcm_ops omap_pcm_ops = {
.mmap = omap_pcm_mmap, .mmap = omap_pcm_mmap,
}; };
static u64 omap_pcm_dmamask = DMA_BIT_MASK(32); static u64 omap_pcm_dmamask = DMA_BIT_MASK(64);
static int omap_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, static int omap_pcm_preallocate_dma_buffer(struct snd_pcm *pcm,
int stream) int stream)
...@@ -360,7 +360,7 @@ static int omap_pcm_new(struct snd_card *card, struct snd_soc_dai *dai, ...@@ -360,7 +360,7 @@ static int omap_pcm_new(struct snd_card *card, struct snd_soc_dai *dai,
if (!card->dev->dma_mask) if (!card->dev->dma_mask)
card->dev->dma_mask = &omap_pcm_dmamask; card->dev->dma_mask = &omap_pcm_dmamask;
if (!card->dev->coherent_dma_mask) if (!card->dev->coherent_dma_mask)
card->dev->coherent_dma_mask = DMA_BIT_MASK(32); card->dev->coherent_dma_mask = DMA_BIT_MASK(64);
if (dai->playback.channels_min) { if (dai->playback.channels_min) {
ret = omap_pcm_preallocate_dma_buffer(pcm, ret = omap_pcm_preallocate_dma_buffer(pcm,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment