All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: omap-pcm: Lower the dma coherent mask to 32bits
@ 2013-12-05  8:06 Peter Ujfalusi
  2013-12-05  9:56 ` Russell King - ARM Linux
  0 siblings, 1 reply; 18+ messages in thread
From: Peter Ujfalusi @ 2013-12-05  8:06 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: tiwai, alsa-devel, linux, Jarkko Nikula

The underlying API dma_coerce_mask_and_coherent() checks the requested bits
mask against the size of dma_addr_t which is 32bits on OMAP.
Because of the previously used 64bits mask audio was not probing after
commit c9bd5e6 (and 4dcfa6007).
32bits for the DMA_BIT_MASK looks to be the correct one to use.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
Hi Mark,

This is the fix for OMAP audio for 3.13-rc2+. The dma coherent changes went in
between -rc1 and -rc2 which broke things because omap-pcm was using 64bits for
dma coherent mask.

Regards,
Peter

 sound/soc/omap/omap-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
index b8fa986..01d59d0 100644
--- a/sound/soc/omap/omap-pcm.c
+++ b/sound/soc/omap/omap-pcm.c
@@ -202,7 +202,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;
 
-- 
1.8.4.5

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-12-13 11:50 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05  8:06 [PATCH] ASoC: omap-pcm: Lower the dma coherent mask to 32bits Peter Ujfalusi
2013-12-05  9:56 ` Russell King - ARM Linux
2013-12-05 15:33   ` Peter Ujfalusi
2013-12-05 19:28     ` Russell King - ARM Linux
2013-12-05 20:11       ` Takashi Iwai
2013-12-05 21:07         ` Russell King - ARM Linux
2013-12-06  8:12           ` Takashi Iwai
2013-12-06 12:25             ` Russell King - ARM Linux
2013-12-06 13:04               ` Takashi Iwai
2013-12-09  9:56                 ` Peter Ujfalusi
2013-12-09 17:03             ` Russell King - ARM Linux
2013-12-10  9:37               ` Peter Ujfalusi
2013-12-10 10:00                 ` Peter Ujfalusi
2013-12-13 11:46                 ` Peter Ujfalusi
2013-12-13 11:49                   ` Russell King - ARM Linux
2013-12-13 11:50                     ` Peter Ujfalusi
2013-12-06  9:31       ` Peter Ujfalusi
2013-12-06 12:33         ` Russell King - ARM Linux

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.