Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef30da1c authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

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: default avatarHiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 90ffc1ec
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -390,6 +390,9 @@ static int rsnd_src_init(struct rsnd_mod *mod,
{
	struct rsnd_src *src = rsnd_mod_to_src(mod);

	/* reset sync convert_rate */
	src->sync.val = 0;

	rsnd_mod_power_on(mod);

	rsnd_src_activation(mod);
@@ -398,9 +401,6 @@ static int rsnd_src_init(struct rsnd_mod *mod,

	rsnd_src_status_clear(mod);

	/* reset sync convert_rate */
	src->sync.val = 0;

	return 0;
}