]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ASoC: rsnd: fixup SSI clock during suspend/resume modes
authorDmytro Prokopchuk <dmytro.prokopchuk@globallogic.com>
Fri, 21 Sep 2018 04:59:59 +0000 (04:59 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 21 Sep 2018 17:03:54 +0000 (10:03 -0700)
commit624d1a7cd8991e33dad96ab4629a52c412540e65
treed3df916e4d21553cd9b577808eb72c7c3a9f5a00
parentc78d42c7fbd6f2a27a665bcd1ab60c9df617f7c9
ASoC: rsnd: fixup SSI clock during suspend/resume modes

Prepare <-> Cleanup functions pair has balanced calls.
But in case of suspend mode no call to rsnd_soc_dai_shutdown()
function, so cleanup isn't called. OTOH during resume mode
function rsnd_soc_dai_prepare() is called, but calling
rsnd_ssi_prepare() is skipped (rsnd_status_update() returns zero,
bacause was not cleanup before).
We need to call rsnd_ssi_prepare(), because it enables SSI clocks
by calling rsnd_ssi_master_clk_start().

This patch allows to call prepare/cleanup functions always.

Signed-off-by: Dmytro Prokopchuk <dmytro.prokopchuk@globallogic.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
[kuninori: adjusted to upstream]
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dma.c
sound/soc/sh/rcar/rsnd.h