diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-02-18 03:13:45 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-19 10:53:02 -0500 |
commit | 0fbab951db17085fbb521b3a50550990b763bdf4 (patch) | |
tree | 4ffc127d37004133ffec77b10522c3ef9f616986 | |
parent | d2240f0dad488c66e14c45762bd23999901f57a1 (diff) |
ASoC: rsnd: setup SRC_ROUTE_MODE0 before SRC_SRCIR
SRC_ROUTE_MODE0 determines whether to use SRC.
Thus, it should be setup before SRC_SRCIR.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/src.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index ab5f13155055..dab0954196b7 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c | |||
@@ -249,6 +249,8 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io, | |||
249 | break; | 249 | break; |
250 | } | 250 | } |
251 | 251 | ||
252 | rsnd_mod_write(mod, SRC_ROUTE_MODE0, route); | ||
253 | |||
252 | rsnd_mod_write(mod, SRC_SRCIR, 1); /* initialize */ | 254 | rsnd_mod_write(mod, SRC_SRCIR, 1); /* initialize */ |
253 | rsnd_mod_write(mod, SRC_ADINR, adinr); | 255 | rsnd_mod_write(mod, SRC_ADINR, adinr); |
254 | rsnd_mod_write(mod, SRC_IFSCR, ifscr); | 256 | rsnd_mod_write(mod, SRC_IFSCR, ifscr); |
@@ -258,7 +260,6 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io, | |||
258 | rsnd_mod_write(mod, SRC_BSISR, bsisr); | 260 | rsnd_mod_write(mod, SRC_BSISR, bsisr); |
259 | rsnd_mod_write(mod, SRC_SRCIR, 0); /* cancel initialize */ | 261 | rsnd_mod_write(mod, SRC_SRCIR, 0); /* cancel initialize */ |
260 | 262 | ||
261 | rsnd_mod_write(mod, SRC_ROUTE_MODE0, route); | ||
262 | rsnd_mod_write(mod, SRC_I_BUSIF_MODE, 1); | 263 | rsnd_mod_write(mod, SRC_I_BUSIF_MODE, 1); |
263 | rsnd_mod_write(mod, SRC_O_BUSIF_MODE, 1); | 264 | rsnd_mod_write(mod, SRC_O_BUSIF_MODE, 1); |
264 | rsnd_mod_write(mod, SRC_BUSIF_DALIGN, rsnd_get_dalign(mod, io)); | 265 | rsnd_mod_write(mod, SRC_BUSIF_DALIGN, rsnd_get_dalign(mod, io)); |