ASoC: Tegra: Acquire wake_lock during playback capture
authorSumit Bhattacharya <sumitb@nvidia.com>
Wed, 7 Dec 2011 12:28:14 +0000 (17:28 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 15 Dec 2011 06:17:34 +0000 (11:17 +0530)
commit96d3f4ab25478b4b108118c6839cc386853a78ef
tree05636de6653a7db68a92e89de99461cd90d53bd5
parentc37dac584d6f0af1dc2b3c941b103bd81d11bd91
ASoC: Tegra: Acquire wake_lock during playback capture

Acquire wake_lock from alsa kernel when pcm playback/capture
starts and hold it until playack/capture ends. It is needed
to prevent device from going into suspend state in middle
of audio playback.

Change-Id: I71e5fae0268f73a3e57f8d886c1b228d46899ea4
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/68671
Reviewed-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
sound/soc/tegra/tegra_pcm.c
sound/soc/tegra/tegra_pcm.h