diff options
author | Rios Kao <rioskao@google.com> | 2019-08-20 13:10:31 -0700 |
---|---|---|
committer | Rios Kao <rioskao@google.com> | 2019-09-11 02:29:54 +0000 |
commit | 92a03a85dbfc882ed216fd2cbd58f0238c0bc809 (patch) | |
tree | 079b4516cec4f4445e617aba2b24cf6f44e6d741 | |
parent | f50bed92b024f2dcc2e375f8939ea244b06f8be0 (diff) | |
download | android_hardware_knowles_athletico_sound_trigger_hal-92a03a85dbfc882ed216fd2cbd58f0238c0bc809.tar.gz android_hardware_knowles_athletico_sound_trigger_hal-92a03a85dbfc882ed216fd2cbd58f0238c0bc809.tar.bz2 android_hardware_knowles_athletico_sound_trigger_hal-92a03a85dbfc882ed216fd2cbd58f0238c0bc809.zip |
sthal: adjust priority for Oslo
Bug: 138848272
Test: manually test Oslo
Change-Id: I25e51b2f235386ffa0614dafec7ecc3bd7187b38
-rw-r--r-- | cvq_ioctl.h | 3 | ||||
-rw-r--r-- | cvq_util.c | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/cvq_ioctl.h b/cvq_ioctl.h index fff94e4..e8777be 100644 --- a/cvq_ioctl.h +++ b/cvq_ioctl.h @@ -50,7 +50,7 @@ #define SENSOR_PKG_ID 0 #define SENSOR_PLUGIN_IDX 0 #define SENSOR_INSTANCE_ID 9 -#define SENSOR_PRIORITY 1 +#define SENSOR_PRIORITY 2 #define SENSOR_PRESENCE_MODE 0 #define SENSOR_DETECTED_MODE 1 #define SENSOR_MAX_MODE 2 @@ -60,6 +60,7 @@ #define OSLO_EP_DISCONNECT (0x205) #define CHRE_EP_DISCONNECT (0x206) #define OSLO_BUF_INSTANCE_ID 8 +#define OSLO_BUF_PRIORITY 2 #define AEC_PKG_ID 7 #define AEC_PLUGIN_IDX 0 @@ -1092,9 +1092,10 @@ int setup_sensor_package(struct iaxxx_odsp_hw *odsp_hdl) } // Create Buffer plugin - err = iaxxx_odsp_plugin_create(odsp_hdl, OSLO_BUF_INSTANCE_ID, BUF_PRIORITY, - BUF_PKG_ID, BUF_PLUGIN_IDX, - IAXXX_HMD_BLOCK_ID, PLUGIN_DEF_CONFIG_ID); + err = iaxxx_odsp_plugin_create(odsp_hdl, OSLO_BUF_INSTANCE_ID, + OSLO_BUF_PRIORITY, BUF_PKG_ID, + BUF_PLUGIN_IDX, IAXXX_HMD_BLOCK_ID, + PLUGIN_DEF_CONFIG_ID); if (err != 0) { ALOGE("%s: ERROR: Failed to create Sensor Buffer %d(%s)", __func__, errno, strerror(errno)); |