1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/kernel.h>
8 #include "feedback.h"
9 
10 #warning "No target specific feedback code, overruns/underruns will occur"
11 
12 #define FEEDBACK_K		10
13 
feedback_init(void)14 struct feedback_ctx *feedback_init(void)
15 {
16 	return NULL;
17 }
18 
feedback_process(struct feedback_ctx * ctx)19 void feedback_process(struct feedback_ctx *ctx)
20 {
21 	ARG_UNUSED(ctx);
22 }
23 
feedback_reset_ctx(struct feedback_ctx * ctx)24 void feedback_reset_ctx(struct feedback_ctx *ctx)
25 {
26 	ARG_UNUSED(ctx);
27 }
28 
feedback_start(struct feedback_ctx * ctx,int i2s_blocks_queued)29 void feedback_start(struct feedback_ctx *ctx, int i2s_blocks_queued)
30 {
31 	ARG_UNUSED(ctx);
32 	ARG_UNUSED(i2s_blocks_queued);
33 }
34 
feedback_value(struct feedback_ctx * ctx)35 uint32_t feedback_value(struct feedback_ctx *ctx)
36 {
37 	/* Always request nominal number of samples */
38 	return SAMPLES_PER_SOF << FEEDBACK_K;
39 }
40