Skip to contentSkip to conversation

ASoC: rsnd: call rsnd_dai_pointer_update() from outside of lock

PATCH Applied Kuninori Morimoto 2 participants 2 messages Apr 23, 2014 8 messages not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20140418.140133.428086893.ko-abe@nk4lx2

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20140418.145315.172551492.ko-abe@nk4lx2

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 5b6857d989484e3690995c92920930ac@HKXPR06MB040.apcprd06.prod.outlook.com

A message that is not in the archive (sent off-list or not yet received): 874n1kj3je.wl%[email protected]

A message that is not in the archive (sent off-list or not yet received): 8738h4j2wo.wl%[email protected]

A message that is not in the archive (sent off-list or not yet received): 3977b65ffbb84cc89b66739c5b13ebdd@HKXPR06MB040.apcprd06.prod.outlook.com

#8 lore raw

PATCH 1/1 ASoC: rsnd: call rsnd_dai_pointer_update() from outside of lock

From: Kuninori Morimoto <[email protected]>

rsnd_soc_dai_trigger() will be called
after rsnd_dai_pointer_update() function which is using rsnd_lock().
Thus, it should be called from outside of rsnd_lock(). Kernel will be hangup without this patch. Special thanks to Kataoka-san

---
 sound/soc/sh/rcar/core.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/sh/rcar/core.c +2 -3
index 1f6981a..964463d 100644
@@ -197,13 +197,12 @@ static void rsnd_dma_complete(void *data)
 	 * rsnd_dai_pointer_update() will be called twice,
 	 * ant it will breaks io->byte_pos
 	 */
-
-	rsnd_dai_pointer_update(io, io->byte_per_period);
-
 	if (dma->submit_loop)
 		rsnd_dma_continue(dma);
 
 	rsnd_unlock(priv, flags);
+
+	rsnd_dai_pointer_update(io, io->byte_per_period);
 }
 
 static void __rsnd_dma_start(struct rsnd_dma *dma)
Signature · 1 line
1.7.9.5
maintainer Applied
#9 lore raw
Quoted 8 lines · Kuninori Morimoto

From: Kuninori Morimoto <[email protected]>

rsnd_soc_dai_trigger() will be called
after rsnd_dai_pointer_update() function which is using rsnd_lock().
Thus, it should be called from outside of rsnd_lock(). Kernel will be hangup without this patch. Special thanks to Kataoka-san

Applied, thanks.