1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2021 Realtek Semiconductor Corp. All rights reserved.
4  *
5  * Author: Ming Jen Tai <mingjen_tai@realtek.com>
6  */
7 
8 #ifndef __USER_RTNR_H__
9 #define __USER_RTNR_H__
10 
11 #include <stdint.h>
12 
13 #define SOF_RTNR_MAX_SIZE 256
14 
15 struct sof_rtnr_params {
16 	/* 1 to enable RTNR, 0 to disable it */
17 	int32_t enabled;
18 	uint32_t sample_rate;
19 	int32_t reserved;
20 } __attribute__((packed, aligned(4)));
21 
22 struct sof_rtnr_config {
23 	uint32_t size;
24 
25 	/* reserved */
26 	uint32_t reserved[4];
27 
28 	struct sof_rtnr_params params;
29 } __attribute__((packed, aligned(4)));
30 
31 #endif /* __USER_RTNR_H__ */
32 
33