ALSA: x86: intel_hdmi_audio: enable pm_runtime and set autosuspend delay
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 16 Jun 2022 22:29:09 +0000 (17:29 -0500)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Jun 2022 08:46:22 +0000 (10:46 +0200)
commite87c65aeb46ca4f5b7dc08531200bcb8a426c62e
treeaeebfcf479cf6b0d7a9c800d0e801d49fafabced
parent6376ab02374822e1e8758a848ee736a182786a2e
ALSA: x86: intel_hdmi_audio: enable pm_runtime and set autosuspend delay

The existing code uses pm_runtime_get_sync/put_autosuspend, but
pm_runtime was not explicitly enabled. The autosuspend delay was not
set either, the value is set to 5s since HDMI is rather painful to
resume.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220616222910.136854-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c