diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-06-18 04:55:09 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-18 06:07:09 -0400 |
commit | c08c3b088053cec1465051258844e7934d3e3e37 (patch) | |
tree | 18262749f4556ffcc5cde6a3618dbf0434044fd3 | |
parent | 64eae986fc1e3a281b00f04b7c9c00b145ec8a57 (diff) |
ASoC: rsnd: fixup loop exit timing of dma name search
Current dma name search loop didn't care about SSI index
This patch fixes it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/sh/rcar/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 4e86265f625c..ed76901f8202 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
@@ -297,7 +297,6 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma, | |||
297 | for (i = 1; i < MOD_MAX; i++) { | 297 | for (i = 1; i < MOD_MAX; i++) { |
298 | if (!src) { | 298 | if (!src) { |
299 | mod[i] = ssi; | 299 | mod[i] = ssi; |
300 | break; | ||
301 | } else if (!dvc) { | 300 | } else if (!dvc) { |
302 | mod[i] = src; | 301 | mod[i] = src; |
303 | src = NULL; | 302 | src = NULL; |
@@ -308,6 +307,9 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma, | |||
308 | 307 | ||
309 | if (mod[i] == this) | 308 | if (mod[i] == this) |
310 | index = i; | 309 | index = i; |
310 | |||
311 | if (mod[i] == ssi) | ||
312 | break; | ||
311 | } | 313 | } |
312 | 314 | ||
313 | if (is_play) { | 315 | if (is_play) { |