ALSA: hda: Let LED cdev handling suspend/resume
authorTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2020 11:08:42 +0000 (13:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2020 11:24:33 +0000 (13:24 +0200)
commitc9e272f9e03d412073a3ae2c1814efbec10b6278
tree641782e2fd83947b47896765074f759e454ba285
parent766538ac4af8c833990a563ed98a04a6ea5f6407
ALSA: hda: Let LED cdev handling suspend/resume

Set LED_CORE_SUSPENDRESUME to LED cdev flags, so that the LED core
would store and restore the LED status at suspend/resume.

In theory, the codec driver should be responsible for all LED bits,
but this might be safer and cover the overlooked cases.

Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20200618110842.27238-14-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c