UPSTREAM: ALSA: hda - Fix leftover codec->power_transition
authorTakashi Iwai <tiwai@suse.de>
Mon, 20 Aug 2012 19:25:22 +0000 (21:25 +0200)
committerGerrit <chrome-bot@google.com>
Fri, 12 Oct 2012 17:12:39 +0000 (10:12 -0700)
commitaffe1d2f52a563b7c3df138527c067cf492797e2
tree29a631a162078b88797795662199b26c1c54ffee
parent36bcaabb338a60572f4f987e47203aa085904d88
UPSTREAM: ALSA: hda - Fix leftover codec->power_transition

When the codec turn-on operation is canceled by the immediate
power-on, the driver left the power_transition flag as is.
This caused the persistent avoidance of power-save behavior.

Cc: <stable@vger.kernel.org> [v3.5+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 535b6c51fe8293c88ce919cdfc4390c67a1cb6d1)

BUG=chrome-os-partner:15121
TEST=turn on tracepoints for hda_power_up/hda_power_down and verify
hda_power_down is called after specified timeout.

Change-Id: I023c7aedbbb77e1f68c2b45ebad7e29101089df5
Reviewed-on: https://gerrit.chromium.org/gerrit/35399
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Ready: Chih-Chung Chang <chihchung@chromium.org>
Tested-by: Chih-Chung Chang <chihchung@chromium.org>
sound/pci/hda/hda_codec.c