diff mbox

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

Message ID 87fvjcj6d3.wl%kuninori.morimoto.gx@gmail.com (mailing list archive)
State Accepted
Commit 4cf612780cec81317a0278b28679a8b69ea8f09c
Headers show

Commit Message

Kuninori Morimoto June 11, 2014, 6:41 a.m. UTC
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

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

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/sh/rcar/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown June 11, 2014, 11:33 p.m. UTC | #1
On Tue, Jun 10, 2014 at 11:41:03PM -0700, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> Index of dma name should use -1, not +1 when capture case.
> Thank you Dan.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 2d0f98f..5a4d7e0 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -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;