diff options
author | Victor Liu <victorliu@google.com> | 2019-09-20 22:48:55 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-09-20 22:48:55 +0000 |
commit | bfaf73f7a87ee7b2b275d555f1af42bcb55abb8a (patch) | |
tree | 6b7398a12ffde7942ac81af0ecc1c77e9879f70b | |
parent | 6251f072f4d425b9d60775507580b9f7b1d87965 (diff) | |
parent | 92a03a85dbfc882ed216fd2cbd58f0238c0bc809 (diff) | |
download | android_hardware_knowles_athletico_sound_trigger_hal-bfaf73f7a87ee7b2b275d555f1af42bcb55abb8a.tar.gz android_hardware_knowles_athletico_sound_trigger_hal-bfaf73f7a87ee7b2b275d555f1af42bcb55abb8a.tar.bz2 android_hardware_knowles_athletico_sound_trigger_hal-bfaf73f7a87ee7b2b275d555f1af42bcb55abb8a.zip |
Merge "sthal: adjust priority for Oslo" into qt-qpr1-dev
-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)); |