@@ -392,7 +392,7 @@ static int snd_sof_enable_trace(struct snd_sof_dev *sdev)
392392 struct sof_ipc_reply ipc_reply ;
393393 int ret ;
394394
395- if (!sdev -> dtrace_is_supported )
395+ if (!sdev -> fw_trace_is_supported )
396396 return 0 ;
397397
398398 if (sdev -> dtrace_state == SOF_DTRACE_ENABLED || !sdev -> dma_trace_pages )
@@ -459,9 +459,9 @@ int snd_sof_init_trace(struct snd_sof_dev *sdev)
459459
460460 /* dtrace is only supported with SOF_IPC */
461461 if (sdev -> pdata -> ipc_type != SOF_IPC )
462- sdev -> dtrace_is_supported = false;
462+ sdev -> fw_trace_is_supported = false;
463463
464- if (!sdev -> dtrace_is_supported )
464+ if (!sdev -> fw_trace_is_supported )
465465 return 0 ;
466466
467467 /* set false before start initialization */
@@ -521,7 +521,7 @@ EXPORT_SYMBOL(snd_sof_init_trace);
521521int snd_sof_trace_update_pos (struct snd_sof_dev * sdev ,
522522 struct sof_ipc_dma_trace_posn * posn )
523523{
524- if (!sdev -> dtrace_is_supported )
524+ if (!sdev -> fw_trace_is_supported )
525525 return 0 ;
526526
527527 if (sdev -> dtrace_state == SOF_DTRACE_ENABLED &&
@@ -541,7 +541,7 @@ int snd_sof_trace_update_pos(struct snd_sof_dev *sdev,
541541/* an error has occurred within the DSP that prevents further trace */
542542void snd_sof_trace_notify_for_error (struct snd_sof_dev * sdev )
543543{
544- if (!sdev -> dtrace_is_supported )
544+ if (!sdev -> fw_trace_is_supported )
545545 return ;
546546
547547 if (sdev -> dtrace_state == SOF_DTRACE_ENABLED ) {
@@ -559,7 +559,7 @@ static void snd_sof_release_trace(struct snd_sof_dev *sdev, bool only_stop)
559559 struct sof_ipc_reply ipc_reply ;
560560 int ret ;
561561
562- if (!sdev -> dtrace_is_supported || sdev -> dtrace_state == SOF_DTRACE_DISABLED )
562+ if (!sdev -> fw_trace_is_supported || sdev -> dtrace_state == SOF_DTRACE_DISABLED )
563563 return ;
564564
565565 ret = snd_sof_dma_trace_trigger (sdev , SNDRV_PCM_TRIGGER_STOP );
@@ -611,7 +611,7 @@ EXPORT_SYMBOL(snd_sof_trace_resume);
611611
612612void snd_sof_free_trace (struct snd_sof_dev * sdev )
613613{
614- if (!sdev -> dtrace_is_supported )
614+ if (!sdev -> fw_trace_is_supported )
615615 return ;
616616
617617 /* release trace */
0 commit comments