]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - More robustify the power-up/down sequence
authorTakashi Iwai <tiwai@suse.de>
Wed, 9 May 2012 10:36:22 +0000 (12:36 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 9 May 2012 10:36:22 +0000 (12:36 +0200)
commit4828359ec57b804fa93269e925821c66b3c0f62a
treeda44538e096a40b3549100c43cae0fd640159111
parent0c0742d6419a74a921061919bd716872f6f1b05e
ALSA: hda - More robustify the power-up/down sequence

Check the power_transition up/down state instead of boolean bit, so
that the power-up sequence can cancel the pending power-down work
properly.  Also, by moving cancel_delayed_work_sync() before the
actual power-up sequence, make sure that the delayed power-down is
completed.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h