[alsa-devel] [PATCH 1/2] ASoC: rsnd: fixup loop exit timing of dma name search
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Thu Jun 5 10:05:13 CEST 2014
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
Current dma name search loop didn't care about SSI index
This patch fixes it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/soc/sh/rcar/core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index ebb5d46..2d28a7a 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -298,7 +298,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;
@@ -309,6 +308,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) {
--
1.7.9.5
More information about the Alsa-devel
mailing list