]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "ALSA: hda - Set codec to D3 forcibly even if not used"
authorTakashi Iwai <tiwai@suse.de>
Tue, 8 May 2012 14:30:59 +0000 (16:30 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 May 2012 14:35:42 +0000 (16:35 +0200)
commit8c06ec19117c2bb00e4305ca71d5a501ade6e6e7
tree5591466d5546206424eafc7eeaeb79738e48d53d
parent5a549d6d84ddb6ad5f5309a77dfc272e0042dbc4
Revert "ALSA: hda - Set codec to D3 forcibly even if not used"

This reverts commit 612240a981fedd83afa02881a0a72845e5a73ac3.

The commit causes a problem with the wrong D3 state after suspend
because the call of hda_set_power_state() involves with the power-up
sequence, which changes the power_count, and this confuses the resume
sequence that checks the power_count as well.

Originally, this go-to-D3 sequence should be a simple task without the
power-up sequence.  But, it'd need some proper sanity checks in the
case of power-saved state, so it's not too easy to write now in the
3.4-rc cycle.

In short, the safest option now is to revert this affecting commit.

Of course, we need to clean up and robustify the power-saving code
better for 3.5 kernel.

Reported-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_intel.c