ASoC: img-parallel-out: Add pm_runtime_get/put to set_fmt callback
authorEd Blake <ed.blake@sondrel.com>
Mon, 2 Oct 2017 10:00:33 +0000 (11:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:26:28 +0000 (14:26 +0100)
commitf5fec0590cd8732c810c0b6d9ae9e3a42021f2cb
tree414d57ca2cbe4e3267cf017531008933be310c3c
parentf9e51fb046db69a2e83d7d7422e33f3402d1800b
ASoC: img-parallel-out: Add pm_runtime_get/put to set_fmt callback

[ Upstream commit c70458890ff15d858bd347fa9f563818bcd6e457 ]

Add pm_runtime_get_sync and pm_runtime_put calls to set_fmt callback
function. This fixes a bus error during boot when CONFIG_SUSPEND is
defined when this function gets called while the device is runtime
disabled and device registers are accessed while the clock is disabled.

Signed-off-by: Ed Blake <ed.blake@sondrel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/img/img-parallel-out.c