ALSA: hda: Initialize power_state field properly
authorTakashi Iwai <tiwai@suse.de>
Sat, 13 Apr 2019 08:04:49 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:53:46 +0000 (09:53 +0200)
commit7e6af1fa80b8a83203da97196ce240cba68235f7
treebbb31d32e7b4248f1c6910a977326462dd3a4f41
parentc8c88293bf7202892de15ed62f82d6975d4c5ccb
ALSA: hda: Initialize power_state field properly

[ Upstream commit 183ab39eb0ea9879bb68422a83e65f750f3192f0 ]

The recent commit 98081ca62cba ("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: 98081ca62cba ("ALSA: hda - Record the current power state before suspend/resume calls")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/hda_codec.c