ASoC: Tegra WM8753 machine: Disable regulator when not in use
authorSumit Bhattacharya <sumitb@nvidia.com>
Wed, 7 Dec 2011 15:00:34 +0000 (20:00 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 23 Mar 2012 22:58:22 +0000 (15:58 -0700)
commitc8cd4d2632a0ef86b4665b1549271faf9bd3e718
tree49389da96b82d354ecb7f5388ef4de71c99a23ad
parenta2d4ea72d9eaad49e0f2b25f9cea70953ac85eaa
ASoC: Tegra WM8753 machine: Disable regulator when not in use

On whistler audio regulator used to remain enabled always independent
of whether audio playback/capture is going on or not. Only enable
audio regulator when any playback/capture is going on using audio
codec.

Change-Id: Ifb8bf722434306a429aa08345215efde75c8ab38
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/68695
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Re6ba0fcd9608f5b7f8f8b64215c53e8420053582
sound/soc/tegra/tegra_wm8753.c