diff --git a/include/uapi/sound/sof/abi.h b/include/uapi/sound/sof/abi.h index 13a4eca04577cb..0868eb47acf7e8 100644 --- a/include/uapi/sound/sof/abi.h +++ b/include/uapi/sound/sof/abi.h @@ -26,7 +26,7 @@ /* SOF ABI version major, minor and patch numbers */ #define SOF_ABI_MAJOR 3 -#define SOF_ABI_MINOR 5 +#define SOF_ABI_MINOR 6 #define SOF_ABI_PATCH 0 /* SOF ABI version number. Format within 32bit word is MMmmmppp */ diff --git a/include/uapi/sound/sof/detect_test.h b/include/uapi/sound/sof/detect_test.h new file mode 100644 index 00000000000000..4ac1bc58551d60 --- /dev/null +++ b/include/uapi/sound/sof/detect_test.h @@ -0,0 +1,39 @@ +/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ +/* + * This file is provided under a dual BSD/GPLv2 license. When using or + * redistributing this file, you may do so under either license. + * + * Copyright(c) 2019 Intel Corporation. All rights reserved. + */ + +#ifndef __INCLUDE_UAPI_USER_DETECT_TEST_H__ +#define __INCLUDE_UAPI_USER_DETECT_TEST_H__ + +/** IPC blob types */ +#define SOF_DETECT_TEST_CONFIG 0 +#define SOF_DETECT_TEST_MODEL 1 + +struct sof_detect_test_config { + uint32_t size; + + /** synthetic system load settings */ + uint32_t load_mips; + uint32_t load_memory_size; + + /** length of the keyphrase in milliseconds */ + uint32_t keyphrase_length; + + /** activation right shift, determines the speed of activation */ + uint16_t activation_shift; + + /** activation threshold */ + int16_t activation_threshold; + + /** reserved for future use */ + uint32_t reserved[3]; +} __packed; + +/** used for binary blob size sanity checks */ +#define SOF_DETECT_TEST_MAX_CFG_SIZE sizeof(struct sof_detect_test_config) + +#endif