]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1f30935f2753ab31c277e989fa638416ed381c2
treeecb9ddf873761452d2ff775a4374b2ea208d9a6a
parent0823347a9c2f549e5f248c7b9a93449dc1b5577f
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