Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cf61278 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent e1d4d3c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;