]> git.ipfire.org Git - thirdparty/kernel/linux.git/blobdiff - sound/pci/hda/hda_codec.c
ALSA: hda - Optimize resume for codecs without jack detection
[thirdparty/kernel/linux.git] / sound / pci / hda / hda_codec.c
index e30e86ca6b72d5d1dd3ef34446315892c4119538..51f10ed9bc43205c8de07545f48588e050207d69 100644 (file)
@@ -2942,7 +2942,7 @@ static int hda_codec_runtime_resume(struct device *dev)
 static int hda_codec_force_resume(struct device *dev)
 {
        struct hda_codec *codec = dev_to_hda_codec(dev);
-       bool forced_resume = !codec->relaxed_resume;
+       bool forced_resume = !codec->relaxed_resume && codec->jacktbl.used;
        int ret;
 
        /* The get/put pair below enforces the runtime resume even if the