]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Initialize power_state field properly
authorTakashi Iwai <tiwai@suse.de>
Sat, 13 Apr 2019 08:04:49 +0000 (10:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 13 Apr 2019 08:04:49 +0000 (10:04 +0200)
commit944fa2091c59f0ce668ea044f7eb7c93e0843169
tree479df9b9a5cb4503ae669f4ad96b74a52298b595
parentfec38e2b8d10907cb951f600671f168a04f725e2
ALSA: hda: Initialize power_state field properly

The recent commit 5d855749e8a3 ("ALSA: hda - Record the current power
state before suspend/resume calls") made the HD-audio driver to store
the PM state in power_state field.  This forgot, however, the
initialization at power up.  Although the codec drivers usually don't
need to refer to this field in the normal operation, let's initialize
it properly for consistency.

Fixes: 5d855749e8a3 ("ALSA: hda - Record the current power state before suspend/resume calls")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c