Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: hda - Don't clear the power state at snd_hda_codec_reset()

snd_hda_codec_reset() is called either in resetting the whole setup at
error paths or hwdep clear/reconfig sysfs triggers. But all of these
don't assume that the power has to be off, rather they want to keep
the power state unchanged (e.g. reconfig_codec() calls the power
up/down by itself). Thus, unconditionally clearing the power state in
snd_hda_codec_reset() leads to the inconsistency, confuses the further
operation. This patch gets rid of the lines doing that bad thing.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

-3
-3
sound/pci/hda/hda_codec.c
··· 2579 2579 cancel_delayed_work_sync(&codec->jackpoll_work); 2580 2580 #ifdef CONFIG_PM 2581 2581 cancel_delayed_work_sync(&codec->power_work); 2582 - codec->power_on = 0; 2583 - codec->power_transition = 0; 2584 - codec->power_jiffies = jiffies; 2585 2582 flush_workqueue(bus->workq); 2586 2583 #endif 2587 2584 snd_hda_ctls_clear(codec);