Skip to content

Commit

Permalink
comp: Add initial keyword detector testing component.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ranjani Sridharan <[email protected]>
Signed-off-by: Slawomir Blauciak <[email protected]>
  • Loading branch information
lrgirdwo authored and lgirdwood committed Apr 18, 2019
1 parent 0bcc7a5 commit 738c83d
Show file tree
Hide file tree
Showing 7 changed files with 740 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/arch/xtensa/configs/baytrail_defconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
CONFIG_BAYTRAIL=y
CONFIG_COMP_TEST_KEYPHRASE=n
1 change: 1 addition & 0 deletions src/arch/xtensa/configs/cherrytrail_defconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
CONFIG_CHERRYTRAIL=y
CONFIG_COMP_TEST_KEYPHRASE=n
5 changes: 5 additions & 0 deletions src/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ if(NOT BUILD_HOST)
selector_generic.c
)
endif()
if(CONFIG_COMP_TEST_KEYPHRASE)
add_local_sources(sof
detect_test.c
)
endif()
return()
endif()

Expand Down
7 changes: 7 additions & 0 deletions src/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,11 @@ config COMP_SEL
help
Select for SEL component

config COMP_TEST_KEYPHRASE
bool "KEYPHRASE_TEST component"
default y
help
Select for KEYPHRASE_TEST component.
Provides basic functionality for use in testing of keyphrase detection pipelines.

endmenu
Loading

0 comments on commit 738c83d

Please sign in to comment.