diff options
author | 2018-10-31 00:48:12 +0000 | |
---|---|---|
committer | 2018-10-31 10:30:03 +0000 | |
commit | 3ee9a76a8c5a10e1bfb04b81db767c6d562ddaf3 (patch) | |
tree | 2deb6fbdeb43592fe4bf9329eb06c809bca8c16d /sound | |
parent | ASoC: fix oops w/ for_each_rtd_codec_dai_rollback() macro (diff) | |
download | linux-3ee9a76a8c5a10e1bfb04b81db767c6d562ddaf3.tar.gz linux-3ee9a76a8c5a10e1bfb04b81db767c6d562ddaf3.tar.bz2 linux-3ee9a76a8c5a10e1bfb04b81db767c6d562ddaf3.zip |
ASoC: rsnd: fixup clock start checker
commit 4d230d12710646 ("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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sh/rcar/ssi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c index fcb4df23248c..6ec78f3096dd 100644 --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c @@ -306,7 +306,7 @@ static int rsnd_ssi_master_clk_start(struct rsnd_mod *mod, if (rsnd_ssi_is_multi_slave(mod, io)) return 0; - if (ssi->rate) { + if (ssi->usrcnt > 1) { if (ssi->rate != rate) { dev_err(dev, "SSI parent/child should use same rate\n"); return -EINVAL; |