From: Kuninori Morimoto Date: Wed, 11 Jun 2014 06:41:03 +0000 (-0700) Subject: ASoC: rsnd: fixup index of src/dst mod when capture X-Git-Tag: v3.14.28+ltsi~311 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e55d37d30bb0b2bc1b2640372eac1348abb6ef58;p=platform%2Fkernel%2Flinux-stable.git 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 Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown (cherry picked from commit 4cf612780cec81317a0278b28679a8b69ea8f09c) Signed-off-by: Simon Horman --- diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index f014209893ee..97b5fb5c0d4c 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;