diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-06-18 17:55:09 +0900 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2015-02-04 11:15:42 +0100 |
commit | d966177e184572a35f9a83bce199e44654516c06 (patch) | |
tree | 52c4c2e75c225e0e463dff253fdd5389ce76cf79 | |
parent | 74944e27e19884719afaf926d171700945cbcd08 (diff) | |
download | linux-stable-d966177e184572a35f9a83bce199e44654516c06.tar.gz linux-stable-d966177e184572a35f9a83bce199e44654516c06.tar.bz2 linux-stable-d966177e184572a35f9a83bce199e44654516c06.zip |
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>
(cherry picked from commit c08c3b088053cec1465051258844e7934d3e3e37)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-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 97b5fb5c0d4c..6d826c4f89d5 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, for (i = 1; i < MOD_MAX; i++) { if (!src) { mod[i] = ssi; - break; } else if (!dvc) { mod[i] = src; src = NULL; @@ -308,6 +307,9 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma, if (mod[i] == this) index = i; + + if (mod[i] == ssi) + break; } if (is_play) { |