File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -408,11 +408,13 @@ static int hda_dsp_set_D0_state(struct snd_sof_dev *sdev,
408
408
value = SOF_HDA_VS_D0I3C_I3 ;
409
409
410
410
/*
411
- * Trace DMA is disabled by default when the DSP enters D0I3.
412
- * But it can be kept enabled when the DSP enters D0I3 while the
413
- * system is in S0 for debug.
411
+ * Trace DMA need to be disabled when the DSP enters
412
+ * D0I3 for S0Ix suspend, but it can be kept enabled
413
+ * when the DSP enters D0I3 while the system is in S0
414
+ * for debug purpose.
414
415
*/
415
- if (hda_enable_trace_D0I3_S0 &&
416
+ if (!sdev -> dtrace_is_supported ||
417
+ !hda_enable_trace_D0I3_S0 ||
416
418
sdev -> system_suspend_target != SOF_SUSPEND_NONE )
417
419
flags = HDA_PM_NO_DMA_TRACE ;
418
420
} else {
You can’t perform that action at this time.
0 commit comments