aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorKuninori Morimoto2015-10-28 04:31:03 +0000
committerMark Brown2015-11-16 10:09:29 +0000
commit9c66eedc17bdf180d952e8d3550a23c2f93d9fff (patch)
tree1827abd78295f731b345b86157876d0f7ea0e5db /sound
parentf36a82264d5a4ba90f093d397d65b7fdc763885a (diff)
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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/sh/rcar/dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/dma.c b/sound/soc/sh/rcar/dma.c
index fc70e97500ad..9917b985c403 100644
--- a/sound/soc/sh/rcar/dma.c
+++ b/sound/soc/sh/rcar/dma.c
@@ -368,11 +368,11 @@ static int rsnd_dmapp_stop(struct rsnd_mod *mod,
for (i = 0; i < 1024; i++) {
if (0 == rsnd_dmapp_read(dma, PDMACHCR))
- return -EIO;
+ return 0;
udelay(1);
}
- return 0;
+ return -EIO;
}
static int rsnd_dmapp_start(struct rsnd_mod *mod,