From e7c4a24e8896d4624eacc0c2d58c703f1dfe070b Mon Sep 17 00:00:00 2001 From: Jaroslaw Stelter Date: Tue, 17 Oct 2023 11:22:26 +0200 Subject: [PATCH] [MTL-006] DP: fix DP thread priority After enabling deadline calculation DP threads began to lose priority in relation to logger thread which currently is set to the same priority but has zeroed deadline. Since processing should be not disturbed by logging operations, the ZEPHYR_DP_THREAD_PRIORITY must be set to lower value than logger. Signed-off-by: Jaroslaw Stelter --- src/audio/pipeline/pipeline-schedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/pipeline/pipeline-schedule.c b/src/audio/pipeline/pipeline-schedule.c index 4e7ea69744f9..b504382b0402 100644 --- a/src/audio/pipeline/pipeline-schedule.c +++ b/src/audio/pipeline/pipeline-schedule.c @@ -48,7 +48,7 @@ DECLARE_SOF_UUID("dp-task", dp_task_uuid, 0xee755917, 0x96b9, 0x4130, /** * \brief a priority of the DP threads in the system. */ -#define ZEPHYR_DP_THREAD_PRIORITY (CONFIG_NUM_PREEMPT_PRIORITIES - 1) +#define ZEPHYR_DP_THREAD_PRIORITY (CONFIG_NUM_PREEMPT_PRIORITIES - 2) #endif /* CONFIG_ZEPHYR_DP_SCHEDULER */