]> nv-tegra.nvidia Code Review - linux-3.10.git/commit
ALSA: HDA: Disable all references of clocks at end of suspend
authorSumit Bhattacharya <sumitb@nvidia.com>
Thu, 15 Dec 2011 13:03:06 +0000 (18:33 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:11:32 +0000 (01:11 -0700)
commit1af9748ed23eaf13d5e07422011956c84f4e46e1
treea33288bdc7f221c022207d635e096fb09c16b4da
parent43bd40f06f0a5751f489ca1ce21057e6ffc34671
ALSA: HDA: Disable all references of clocks at end of suspend

HDA driver used to enable clocks during suspend only if there is no
active clock. But this logic causes a race condition when hda codec
power work thread disables the active instance of hda clocks in
middle of suspend. To avoid this race condition always enable
HDA clocks at start of suspend operation and disable all active
references of HDA clocks at end of suspend. Since HDA driver
suspend also suspends all active codecs there is no chance of
getting HDA clock disable call after completion of suspend.

Bug 915436

Change-Id: I4956ba28488d6d445ea2d53fb2592897a2ad83bb
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/70315
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Rebase-Id: Rd18fd4b147208bd88343fe117381cb6045f194bc
sound/pci/hda/hda_intel.c