]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: fixup clock start checker
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 31 Oct 2018 00:48:12 +0000 (00:48 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 31 Oct 2018 10:30:03 +0000 (10:30 +0000)
commitb2225b3e8c5d7fe4bd3fe4df15094ea7dd9d4e95
tree2deb6fbdeb43592fe4bf9329eb06c809bca8c16d
parent129dc325a2eab6e4bb3b864b0f96fe9380f44658
ASoC: rsnd: fixup clock start checker

commit e796be34c4f400 ("ASoC: rsnd: fixup not to call clk_get/set under
non-atomic") fixuped clock start timing. But it exchanged clock start
checker from ssi->usrcnt to ssi->rate.

Current rsnd_ssi_master_clk_start() is called from .prepare,
but some player (for example GStreamer) might calls it many times.
In such case, the checker might returns error even though it was not
error. It should check ssi->usrcnt instead of ssi->rate.
This patch fixup it. Without this patch, GStreamer can't switch
48kHz / 44.1kHz.

Reported-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/ssi.c