ASoC: davinci-mcasp: Consolidate pm_runtime_get/put() use in the driver
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 30 Jan 2014 13:21:30 +0000 (15:21 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 31 Jan 2014 16:19:19 +0000 (16:19 +0000)
commit1d17a04ef2f2982fb81fde8ca3fe75723204a68a
tree7253824cde75c5731d940051ba99f305587cd425
parent2c56c4c27c59edfaa779da156f6a70a38bb1f2df
ASoC: davinci-mcasp: Consolidate pm_runtime_get/put() use in the driver

The use of pm_runtime in trigger() callback is not correct and it will lead
to unbalanced power.usage_count.
The only place which might need to call pm_runtime is the set_fmt callback.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/davinci/davinci-mcasp.c