aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2015-01-15 03:09:26 -0500
committerMark Brown <broonie@kernel.org>2015-01-15 06:37:49 -0500
commit1ceeab2679069738fc73da6d8256014d3e195dab (patch)
tree325cc3c0b5d755a79cece7ae0a57388c135b88af
parent765ae7c8dda7d06d7ce74b35beb4c7ec06b78643 (diff)
ASoC: rsnd: tidyup DMA start/stop timing on SSI
Current DMA starts after SSI, and stops before SSI. but we need to reverse these order. Otherwise, under/over run error might happen. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/sh/rcar/ssi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c
index 4b646124ab8a..9e7b627c08e2 100644
--- a/sound/soc/sh/rcar/ssi.c
+++ b/sound/soc/sh/rcar/ssi.c
@@ -535,10 +535,10 @@ static int rsnd_ssi_dma_start(struct rsnd_mod *mod,
535{ 535{
536 struct rsnd_dma *dma = rsnd_mod_to_dma(mod); 536 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
537 537
538 rsnd_ssi_start(mod, priv);
539
540 rsnd_dma_start(dma); 538 rsnd_dma_start(dma);
541 539
540 rsnd_ssi_start(mod, priv);
541
542 return 0; 542 return 0;
543} 543}
544 544
@@ -547,10 +547,10 @@ static int rsnd_ssi_dma_stop(struct rsnd_mod *mod,
547{ 547{
548 struct rsnd_dma *dma = rsnd_mod_to_dma(mod); 548 struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
549 549
550 rsnd_dma_stop(dma);
551
552 rsnd_ssi_stop(mod, priv); 550 rsnd_ssi_stop(mod, priv);
553 551
552 rsnd_dma_stop(dma);
553
554 return 0; 554 return 0;
555} 555}
556 556