]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Jan 2023 09:33:46 +0000 (10:33 +0100)
commitcb9b3951d6366c30f0085c9830381b1334cdcf62
tree52c969343c60fe976c3f2ffd8e9f0d1aff50b276
parenta6d58eff4f8367af588c49cbceed28147b1030c7
ALSA: hda: cs35l41: Check runtime suspend capability at runtime_idle

commit ae50e2ab122cef68f46b7799fb9deffe3334f5e2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/cs35l41_hda.c