提交 4cf61278 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 e1d4d3c8
...@@ -315,7 +315,7 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma, ...@@ -315,7 +315,7 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma,
dst_mod = mod[index]; dst_mod = mod[index];
} else { } else {
src_mod = mod[index]; src_mod = mod[index];
dst_mod = mod[index + 1]; dst_mod = mod[index - 1];
} }
index = 0; index = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册