diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-02-02 00:01:05 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-02-03 06:24:23 -0500 |
commit | ef30da1c52c633a6eaa017ad0d075aaa809a6154 (patch) | |
tree | 30dc7beeec45ec3f07f654543b2301a0e88226f5 | |
parent | 90ffc1ecc500c04bf43a45d804bb151505c0d6a6 (diff) |
ASoC: rsnd: fixup reset timing of sync convert_rate
Sync convert rate settings should be availabled *after* Playing.
Thus, src->sync should be reset first of init function.
Otherwise, it will set remaining settings when it start playing.
This patch fixes it. Thanks to Yokoyama-san
Reported-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 3a8f65bd1bf9..42db48db09ba 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c | |||
@@ -390,6 +390,9 @@ static int rsnd_src_init(struct rsnd_mod *mod, | |||
390 | { | 390 | { |
391 | struct rsnd_src *src = rsnd_mod_to_src(mod); | 391 | struct rsnd_src *src = rsnd_mod_to_src(mod); |
392 | 392 | ||
393 | /* reset sync convert_rate */ | ||
394 | src->sync.val = 0; | ||
395 | |||
393 | rsnd_mod_power_on(mod); | 396 | rsnd_mod_power_on(mod); |
394 | 397 | ||
395 | rsnd_src_activation(mod); | 398 | rsnd_src_activation(mod); |
@@ -398,9 +401,6 @@ static int rsnd_src_init(struct rsnd_mod *mod, | |||
398 | 401 | ||
399 | rsnd_src_status_clear(mod); | 402 | rsnd_src_status_clear(mod); |
400 | 403 | ||
401 | /* reset sync convert_rate */ | ||
402 | src->sync.val = 0; | ||
403 | |||
404 | return 0; | 404 | return 0; |
405 | } | 405 | } |
406 | 406 | ||