Skip to contentSkip to conversation

ASoC: rsnd: fixup index of src/dst mod when capture

PATCH Applied Kuninori Morimoto 2 participants 2 messages Jun 11, 2014

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

PATCH 1/1 ASoC: rsnd: fixup index of src/dst mod when capture

From: Kuninori Morimoto <[email protected]>

Index of dma name should use -1, not +1 when capture case. Thank you Dan.

---
 sound/soc/sh/rcar/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/sh/rcar/core.c +1 -1
index 2d0f98f..5a4d7e0 100644
@@ -289,7 +289,7 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma,
 		dst_mod = mod[index];
 	} else {
 		src_mod = mod[index];
-		dst_mod = mod[index + 1];
+		dst_mod = mod[index - 1];
 	}
 
 	index = 0;
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw
Quoted 4 lines · Kuninori Morimoto

From: Kuninori Morimoto <[email protected]>

Index of dma name should use -1, not +1 when capture case. Thank you Dan.

Applied, thanks.