| From 1b4f4d85fa2a5c943ef1b6ad607a13130a49f21d Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Tue, 10 Jun 2014 23:41:03 -0700 |
| Subject: ASoC: rsnd: fixup index of src/dst mod when capture |
| |
| 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> |
| Signed-off-by: Mark Brown <broonie@linaro.org> |
| (cherry picked from commit 4cf612780cec81317a0278b28679a8b69ea8f09c) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| sound/soc/sh/rcar/core.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c |
| index 91880156e1ae..4e86265f625c 100644 |
| --- a/sound/soc/sh/rcar/core.c |
| +++ b/sound/soc/sh/rcar/core.c |
| @@ -315,7 +315,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; |
| -- |
| 2.1.2 |
| |