From f78bc06d9b49a286b795093bc6ef414aa7faf90d Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Thu, 2 Jun 2022 11:51:17 +0300 Subject: [PATCH] [HACK] ipc4-mtrace: move read pointer with mtrace slot size all the time this is wrong, but it looks like the user space wants this? We will in essence tell user space that we have given 0x1000 of data all the time while we never do that. Oh well. Signed-off-by: Peter Ujfalusi --- sound/soc/sof/ipc4-mtrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sof/ipc4-mtrace.c b/sound/soc/sof/ipc4-mtrace.c index 36eecde7a0fc80..d9aedf72dfee41 100644 --- a/sound/soc/sof/ipc4-mtrace.c +++ b/sound/soc/sof/ipc4-mtrace.c @@ -187,9 +187,9 @@ static ssize_t sof_ipc4_mtrace_read(struct file *file, char __user *buffer, slot_data->host_read_ptr = write_ptr; /* move debugfs reading position */ - *ppos += avail; + *ppos += SOF_MTRACE_SLOT_SIZE; - return avail; + return SOF_MTRACE_SLOT_SIZE; } static const struct file_operations sof_dfs_mtrace_fops = {