Skip to content

Commit

Permalink
ASoC: rsnd: fixup index of src/dst mod when capture
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Jun 11, 2014
1 parent e1d4d3c commit 4cf6127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/sh/rcar/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cf6127

Please sign in to comment.