Skip to content

Commit

Permalink
ASoC: rsnd: fixup loop exit timing of dma name search
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Jun 18, 2014
1 parent 64eae98 commit c08c3b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/soc/sh/rcar/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit c08c3b0

Please sign in to comment.