提交 ef30da1c 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

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: NHiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 90ffc1ec
...@@ -390,6 +390,9 @@ static int rsnd_src_init(struct rsnd_mod *mod, ...@@ -390,6 +390,9 @@ static int rsnd_src_init(struct rsnd_mod *mod,
{ {
struct rsnd_src *src = rsnd_mod_to_src(mod); struct rsnd_src *src = rsnd_mod_to_src(mod);
/* reset sync convert_rate */
src->sync.val = 0;
rsnd_mod_power_on(mod); rsnd_mod_power_on(mod);
rsnd_src_activation(mod); rsnd_src_activation(mod);
...@@ -398,9 +401,6 @@ static int rsnd_src_init(struct rsnd_mod *mod, ...@@ -398,9 +401,6 @@ static int rsnd_src_init(struct rsnd_mod *mod,
rsnd_src_status_clear(mod); rsnd_src_status_clear(mod);
/* reset sync convert_rate */
src->sync.val = 0;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册