Skip to content

Commit 738c83d

Browse files
lrgirdwolgirdwood
authored andcommitted
comp: Add initial keyword detector testing component.
This is a testing component acting as a dummy keyword detector comp. Add the init/free and cmd op so as to be able to accept switch cmd from userspace. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
1 parent 0bcc7a5 commit 738c83d

7 files changed

Lines changed: 740 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CONFIG_BAYTRAIL=y
2+
CONFIG_COMP_TEST_KEYPHRASE=n
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CONFIG_CHERRYTRAIL=y
2+
CONFIG_COMP_TEST_KEYPHRASE=n

src/audio/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ if(NOT BUILD_HOST)
6767
selector_generic.c
6868
)
6969
endif()
70+
if(CONFIG_COMP_TEST_KEYPHRASE)
71+
add_local_sources(sof
72+
detect_test.c
73+
)
74+
endif()
7075
return()
7176
endif()
7277

src/audio/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,11 @@ config COMP_SEL
6666
help
6767
Select for SEL component
6868

69+
config COMP_TEST_KEYPHRASE
70+
bool "KEYPHRASE_TEST component"
71+
default y
72+
help
73+
Select for KEYPHRASE_TEST component.
74+
Provides basic functionality for use in testing of keyphrase detection pipelines.
75+
6976
endmenu

0 commit comments

Comments
 (0)