asoc: tegra: utils: fix for multiple instances of extern1 clock.
authorAnkit Gupta <ankitgupta@nvidia.com>
Wed, 23 May 2012 06:25:13 +0000 (11:25 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 30 May 2012 08:40:43 +0000 (13:40 +0530)
commitd365ea985f147979dbca44f0eaef6179f26850e8
tree22f3039265224941ebd11fcae4e43f1725990461
parent9beec2dd5f984744c8096d7e36e11bc504e755dd
asoc: tegra: utils: fix for multiple instances of extern1 clock.

The extern1 codec clock was not getting switched off whenever
codec goes below BIAS_OFF level. Moreover, there were two
instances of extern1 clock whenever codec was on. Reason behind
this was that, those codecs for which probe function was called
and were not present on board, turned on their extern1 clock, but
clean up routine (for switch device register failure) was not able
to turn off the clock. With this change, a conditional check is
put to turn off the clock.

(Bug 984678)
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>

Change-Id: I585ecf73c0cabca856592dcd84e67588dfe13beb
Reviewed-on: http://git-master/r/104073
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ankit Gupta (Engrg-SW) <ankitgupta@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
sound/soc/tegra/tegra_asoc_utils.c