Commit 9c66eedc authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: rsnd: fixup rsnd_dmapp_stop() return value

45a4394d03("ASoC: rsnd: use mod base common method on DMA phase3")
Exchanged "void rsnd_dmapp_stop()" to "int rsnd_dmapp_stop()",
but it returns inverted value. This patch fixup it.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f36a8226
...@@ -368,11 +368,11 @@ static int rsnd_dmapp_stop(struct rsnd_mod *mod, ...@@ -368,11 +368,11 @@ static int rsnd_dmapp_stop(struct rsnd_mod *mod,
for (i = 0; i < 1024; i++) { for (i = 0; i < 1024; i++) {
if (0 == rsnd_dmapp_read(dma, PDMACHCR)) if (0 == rsnd_dmapp_read(dma, PDMACHCR))
return -EIO; return 0;
udelay(1); udelay(1);
} }
return 0; return -EIO;
} }
static int rsnd_dmapp_start(struct rsnd_mod *mod, static int rsnd_dmapp_start(struct rsnd_mod *mod,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment