ALSA: hda: cs35l41: Check runtime suspend capability at runtime_idle
authorTakashi Iwai <tiwai@suse.de>
Thu, 5 Jan 2023 09:35:31 +0000 (10:35 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 7 Jan 2023 08:29:53 +0000 (09:29 +0100)
commitae50e2ab122cef68f46b7799fb9deffe3334f5e2
tree818342adab5597c8f7191d022c4e5c6e72d3c903
parent15a59cb0a3d6ddf2cb79f8dc3081b3130aad3767
ALSA: hda: cs35l41: Check runtime suspend capability at runtime_idle

The runtime PM core checks with runtime_idle callback whether it can
goes to the runtime suspend or not, and we can put the boost type
check there instead of runtime_suspend and _resume calls.  This will
reduce the unnecessary runtime_suspend() calls.

Fixes: 1873ebd30cc8 ("ALSA: hda: cs35l41: Support Hibernation during Suspend")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20230105093531.16960-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda.c