Skip to contentSkip to conversation

ASoC: omap-pcm: Correct dma mask

PATCH Applied Peter Ujfalusi 2 participants 4 messages Mar 3, 2015 – Mar 4, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: omap-pcm: Correct dma mask

DMA_BIT_MASK of 64 is not valid dma address mask for OMAPs, it should be set to 32.
The 64 was introduced by commit (in 2009):
a152ff24b978 ASoC: OMAP: Make DMA 64 aligned

But the dma_mask and coherent_dma_mask can not be used to specify alignment.

---
 sound/soc/omap/omap-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/omap/omap-pcm.c +1 -1
index 54d59e4f8f5f..d52a6d1ae55d 100644
@@ -227,7 +227,7 @@ static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd)
 	struct snd_pcm *pcm = rtd->pcm;
 	int ret;
 
-	ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(64));
+	ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32));
 	if (ret)
 		return ret;
 
Signature · 1 line
2.3.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Peter Ujfalusi

DMA_BIT_MASK of 64 is not valid dma address mask for OMAPs, it should be set to 32.
The 64 was introduced by commit (in 2009):
a152ff24b978 ASoC: OMAP: Make DMA 64 aligned

Applied, thanks.

#2 lore raw

Mark,

Quoted 7 lines · Mark Brown
Quoted 4 lines · Peter Ujfalusi

DMA_BIT_MASK of 64 is not valid dma address mask for OMAPs, it should be set to 32.
The 64 was introduced by commit (in 2009):
a152ff24b978 ASoC: OMAP: Make DMA 64 aligned

Applied, thanks.

Would it be possible to add this tags to the patch, I forgot it:

Thanks,
Péter