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>
This commit is contained in:
parent
e1d4d3c854
commit
4cf612780c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue