File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,9 @@ int snd_sof_dbg_init(struct snd_sof_dev *sdev)
353
353
return err ;
354
354
}
355
355
356
- return 0 ;
356
+ return snd_sof_debugfs_buf_item (sdev , & sdev -> fw_state ,
357
+ sizeof (sdev -> fw_state ),
358
+ "fw_state" , 0444 );
357
359
}
358
360
EXPORT_SYMBOL_GPL (snd_sof_dbg_init );
359
361
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ static int sof_suspend(struct device *dev, bool runtime_suspend)
182
182
const struct sof_ipc_pm_ops * pm_ops = sdev -> ipc -> ops -> pm ;
183
183
const struct sof_ipc_tplg_ops * tplg_ops = sdev -> ipc -> ops -> tplg ;
184
184
pm_message_t pm_state ;
185
- u32 target_state = 0 ;
185
+ u32 target_state = snd_sof_dsp_power_target ( sdev ) ;
186
186
int ret ;
187
187
188
188
/* do nothing if dsp suspend callback is not set */
@@ -192,6 +192,9 @@ static int sof_suspend(struct device *dev, bool runtime_suspend)
192
192
if (runtime_suspend && !sof_ops (sdev )-> runtime_suspend )
193
193
return 0 ;
194
194
195
+ if (tplg_ops && tplg_ops -> tear_down_all_pipelines )
196
+ tplg_ops -> tear_down_all_pipelines (sdev , false);
197
+
195
198
if (sdev -> fw_state != SOF_FW_BOOT_COMPLETE )
196
199
goto suspend ;
197
200
@@ -206,7 +209,6 @@ static int sof_suspend(struct device *dev, bool runtime_suspend)
206
209
}
207
210
}
208
211
209
- target_state = snd_sof_dsp_power_target (sdev );
210
212
pm_state .event = target_state ;
211
213
212
214
/* Skip to platform-specific suspend if DSP is entering D0 */
@@ -217,9 +219,6 @@ static int sof_suspend(struct device *dev, bool runtime_suspend)
217
219
goto suspend ;
218
220
}
219
221
220
- if (tplg_ops -> tear_down_all_pipelines )
221
- tplg_ops -> tear_down_all_pipelines (sdev , false);
222
-
223
222
/* suspend DMA trace */
224
223
sof_fw_trace_suspend (sdev , pm_state );
225
224
You can’t perform that action at this time.
0 commit comments