Message ID | 20210112130704.1201406-4-kai.heng.feng@canonical.com |
---|---|
State | Accepted |
Commit | ef4d764c99f792b725d4754a3628830f094f5c58 |
Headers | show |
Series | [v3,1/4] ALSA: hda/realtek: Power up codec when setting LED via COEF and GPIO | expand |
diff --git a/sound/soc/sof/intel/hda-dsp.c b/sound/soc/sof/intel/hda-dsp.c index 7d00107cf3b2..1c5e05b88a90 100644 --- a/sound/soc/sof/intel/hda-dsp.c +++ b/sound/soc/sof/intel/hda-dsp.c @@ -685,7 +685,8 @@ static int hda_resume(struct snd_sof_dev *sdev, bool runtime_resume) /* check jack status */ if (runtime_resume) { hda_codec_jack_wake_enable(sdev, false); - hda_codec_jack_check(sdev); + if (sdev->system_suspend_target == SOF_SUSPEND_NONE) + hda_codec_jack_check(sdev); } /* turn off the links that were off before suspend */