diff options
author | Max Shi <meixuanshi@google.com> | 2019-09-11 19:40:18 -0700 |
---|---|---|
committer | rioskao <rioskao@google.com> | 2019-09-24 10:12:27 +0800 |
commit | e29271563c307e355e0ebe990fc95eb274a6ae38 (patch) | |
tree | a5f49ebbac534d5000553c0454272567813f61b3 | |
parent | bfaf73f7a87ee7b2b275d555f1af42bcb55abb8a (diff) | |
download | android_hardware_knowles_athletico_sound_trigger_hal-e29271563c307e355e0ebe990fc95eb274a6ae38.tar.gz android_hardware_knowles_athletico_sound_trigger_hal-e29271563c307e355e0ebe990fc95eb274a6ae38.tar.bz2 android_hardware_knowles_athletico_sound_trigger_hal-e29271563c307e355e0ebe990fc95eb274a6ae38.zip |
sthal: Adjust CHRE buffer threshold to 64000
Bug: 138461208
Test: Verified audio watchdog occurrence is reduced.
Change-Id: I6d48b75876e66685cf5b0cb3de51dc23ee9f8987
-rw-r--r-- | cvq_ioctl.h | 3 | ||||
-rw-r--r-- | cvq_util.c | 2 |
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" @@ -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, |