Skip to content

Commit 68be79a

Browse files
author
Jyri Sarha
committed
ASoC: SOF: ipc4: Use generic function for mapping "exception" debugfs file
Remove ipc4-telemetry.[ch] and use sof_ipc4_create_debug_slot_debugfs_node() instead for mapping "exception" debugfs file. In running system the SOF_IPC4_DEBUG_SLOT_TELEMETRY is used for telemetry data, but if configured, Zephyr exception data is dumped in the same debug window slot, right after the separator word. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 503130b commit 68be79a

4 files changed

Lines changed: 4 additions & 170 deletions

File tree

sound/soc/sof/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ snd-sof-y += ipc3.o ipc3-loader.o ipc3-topology.o ipc3-control.o ipc3-pcm.o\
1111
endif
1212
ifneq ($(CONFIG_SND_SOC_SOF_IPC4),)
1313
snd-sof-y += ipc4.o ipc4-loader.o ipc4-topology.o ipc4-control.o ipc4-pcm.o\
14-
ipc4-mtrace.o ipc4-telemetry.o ipc4-debug-slot-debugfs.o
14+
ipc4-mtrace.o ipc4-debug-slot-debugfs.o
1515
endif
1616

1717
# SOF client support

sound/soc/sof/ipc4-telemetry.c

Lines changed: 0 additions & 95 deletions
This file was deleted.

sound/soc/sof/ipc4-telemetry.h

Lines changed: 0 additions & 73 deletions
This file was deleted.

sound/soc/sof/ipc4.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,9 @@ static int ipc4_fw_ready(struct snd_sof_dev *sdev, struct sof_ipc4_msg *ipc4_msg
580580
if (!sdev->first_boot)
581581
return 0;
582582

583-
sof_ipc4_create_exception_debugfs_node(sdev);
583+
/* sizeof(u32)is for skiping the first separator magic number */
584+
sof_ipc4_create_debug_slot_debugfs_node(sdev, SOF_IPC4_DEBUG_SLOT_TELEMETRY,
585+
sizeof(u32), "exception");
584586

585587
sof_ipc4_create_debug_slot_debugfs_node(sdev, SOF_IPC4_DEBUG_SLOT_DEBUG_STREAM,
586588
0, "debug_stream");

0 commit comments

Comments
 (0)