]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: hda - Fix path power activation
authorTakashi Iwai <tiwai@suse.de>
Mon, 24 Aug 2015 08:52:06 +0000 (10:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Aug 2015 05:59:02 +0000 (07:59 +0200)
commitc7cd0ef66aade29e37ee08821a0e195ee776c6e6
tree3ea3e88cb85c6405f4562f78236cd55c89254f00
parent9d2b48f7304aafaefbf0794a556ab4e307929d24
ALSA: hda - Fix path power activation

The widget power-saving code tries to turn up/down the power of each
widget in the I/O paths that are modified at each jack plug/unplug.
The recent report revealed that the power activation leaves some
widgets unpowered after plugging.  This is because
snd_hda_activate_path() turns on path->active flag at the end of the
function while the path power management is done before that.  Then
it's regarded as if nothing is active, and the driver turns off the
power.

The fix is simply to set the flag at the beginning of the function,
before trying to power up.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=102521
Cc: <stable@vger.kernel.org> [v4.1+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c