summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-10-12 23:21:28 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-10-12 23:21:28 +0000
commitd1c8c4673ff4fe20b727856e487aeadcadd112da (patch)
treea5f49ebbac534d5000553c0454272567813f61b3
parentbfaf73f7a87ee7b2b275d555f1af42bcb55abb8a (diff)
parente29271563c307e355e0ebe990fc95eb274a6ae38 (diff)
downloadandroid_hardware_knowles_athletico_sound_trigger_hal-d1c8c4673ff4fe20b727856e487aeadcadd112da.tar.gz
android_hardware_knowles_athletico_sound_trigger_hal-d1c8c4673ff4fe20b727856e487aeadcadd112da.tar.bz2
android_hardware_knowles_athletico_sound_trigger_hal-d1c8c4673ff4fe20b727856e487aeadcadd112da.zip
Snap for 5936642 from e29271563c307e355e0ebe990fc95eb274a6ae38 to qt-qpr2-release
Change-Id: I680eb0b75db42bc4fef9a353491a4e5ea026aa5a
-rw-r--r--cvq_ioctl.h3
-rw-r--r--cvq_util.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/cvq_ioctl.h b/cvq_ioctl.h
index e8777be..abce7f2 100644
--- a/cvq_ioctl.h
+++ b/cvq_ioctl.h
@@ -71,7 +71,7 @@
#define CHRE_INSTANCE_ID 5
#define CHRE_EVT_ID 3
#define CHRE_EVT_PARAM_ID 8
-#define CHRE_BUF_SIZE 60480
+#define CHRE_BUF_SIZE 64000 // 320B (160 samples) per 10ms -> 64000B per 2s
#define CHRE_CONFIGURED (0x203)
#define CHRE_DESTROYED (0x204)
#define CHRE_EVT_MASK (0x1f)
@@ -116,6 +116,7 @@
#define BUFFER_CONFIG_OSLO_VAL "BufferConfigValOslo.bin"
#define BUFFER_CONFIG_VAL_MULTI_SEC "BufferConfigVal.bin"
#define BUFFER_CONFIG_VAL_2_SEC "BufferConfigVal2Sec.bin"
+#define BUFFER_CONFIG_VAL_CHRE "BufferConfigValCHRE.bin"
#define OK_GOOGLE_PACKAGE "OkGooglePackage.bin"
#define AMBIENT_EC_PACKAGE "AmbientECPackage.bin"
#define AMBIENT_DA_PACKAGE "AmbientDAPackage.bin"
diff --git a/cvq_util.c b/cvq_util.c
index 45f5230..112d4e2 100644
--- a/cvq_util.c
+++ b/cvq_util.c
@@ -903,7 +903,7 @@ int setup_chre_package(struct iaxxx_odsp_hw *odsp_hdl)
/* Create CHRE plugins */
cdata.type = CONFIG_FILE;
- cdata.data.fdata.filename = BUFFER_CONFIG_VAL_2_SEC;
+ cdata.data.fdata.filename = BUFFER_CONFIG_VAL_CHRE;
err = iaxxx_odsp_plugin_set_creation_config(odsp_hdl,
CHRE_INSTANCE_ID,
IAXXX_HMD_BLOCK_ID,