Skip to content

Commit 59d81c1

Browse files
committed
ALSA: hda - Optimize resume for codecs without jack detection
The codecs without jack detection also don't have to be resumed forcibly because, obviously, they have no jack. Skip the forced resume in such a case as optimization as well. Reviewed-by: Kai Vehmanen <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 4914da2 commit 59d81c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/hda/hda_codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2942,7 +2942,7 @@ static int hda_codec_runtime_resume(struct device *dev)
29422942
static int hda_codec_force_resume(struct device *dev)
29432943
{
29442944
struct hda_codec *codec = dev_to_hda_codec(dev);
2945-
bool forced_resume = !codec->relaxed_resume;
2945+
bool forced_resume = !codec->relaxed_resume && codec->jacktbl.used;
29462946
int ret;
29472947

29482948
/* The get/put pair below enforces the runtime resume even if the

0 commit comments

Comments
 (0)