From: Kuninori Morimoto Date: Wed, 18 Jun 2014 08:55:09 +0000 (+0900) Subject: ASoC: rsnd: fixup loop exit timing of dma name search X-Git-Tag: MMI-PSA29.97-13-9~11465^2~21^2~4^2~3^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c08c3b088053cec1465051258844e7934d3e3e37;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Mark Brown --- 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, 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) {