From bcba81611b0d07063d9df924adb44f79b0e75aac Mon Sep 17 00:00:00 2001 From: "Cristina Feies (ilie)" Date: Wed, 17 Mar 2021 22:03:31 +0200 Subject: [PATCH] kwd demo: expose detect_test_notify function for other modules Expose detect_test_notify function for other modules which would implement an alternative of default kwd detection Signed-off-by: Cristina Feies (ilie) --- src/include/sof/samples/audio/detect_test.h | 2 ++ src/samples/audio/detect_test.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/sof/samples/audio/detect_test.h b/src/include/sof/samples/audio/detect_test.h index 0779306ae..9fc206d43 100644 --- a/src/include/sof/samples/audio/detect_test.h +++ b/src/include/sof/samples/audio/detect_test.h @@ -39,6 +39,8 @@ struct sof_detect_test_config { uint32_t reserved[1]; } __attribute__((packed)); +void detect_test_notify(const struct comp_dev *dev); + /** used for binary blob size sanity checks */ #define SOF_DETECT_TEST_MAX_CFG_SIZE sizeof(struct sof_detect_test_config) diff --git a/src/samples/audio/detect_test.c b/src/samples/audio/detect_test.c index 1dae013d7..1e42bbe5e 100644 --- a/src/samples/audio/detect_test.c +++ b/src/samples/audio/detect_test.c @@ -136,7 +136,7 @@ static void notify_kpb(const struct comp_dev *dev) sizeof(cd->event_data)); } -static void detect_test_notify(const struct comp_dev *dev) +void detect_test_notify(const struct comp_dev *dev) { notify_host(dev); notify_kpb(dev);