mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
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>
This commit is contained in:
parent
f0b433e9f3
commit
535b6c51fe
@ -4454,6 +4454,8 @@ static void __snd_hda_power_up(struct hda_codec *codec, bool wait_power_down)
|
||||
* then there is no need to go through power up here.
|
||||
*/
|
||||
if (codec->power_on) {
|
||||
if (codec->power_transition < 0)
|
||||
codec->power_transition = 0;
|
||||
spin_unlock(&codec->power_lock);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user