ASoC: tegra: call pm_runtime APIs around register accesses
authorStephen Warren <swarren@nvidia.com>
Fri, 15 Nov 2013 18:29:45 +0000 (11:29 -0700)
committerStephen Warren <swarren@nvidia.com>
Wed, 11 Dec 2013 23:43:44 +0000 (16:43 -0700)
commit768db0b93d6f0ed10f351b5eca34ef44b456369c
treeecb9ddf873761452d2ff775a4374b2ea208d9a6a
parent5185e0acc831e250257ba04f5204dc5f5c1e5d0a
ASoC: tegra: call pm_runtime APIs around register accesses

Call pm_runtime_get_sync() before all register accesses; the HW requires
clocks to be running when accessing registers.

This hasn't been needed to date, since all register IO was performed
while playback was active, and hence the ASoC core had already called
pm_runtime_get(). However, an imminent future commit will allocate and
set up the FIFOs and routing during probe(), when that "protection"
won't be in place.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Mark Brown <broonie@linaro.org>
sound/soc/tegra/tegra30_ahub.c