From 92a03a85dbfc882ed216fd2cbd58f0238c0bc809 Mon Sep 17 00:00:00 2001 From: Rios Kao Date: Tue, 20 Aug 2019 13:10:31 -0700 Subject: sthal: adjust priority for Oslo Bug: 138848272 Test: manually test Oslo Change-Id: I25e51b2f235386ffa0614dafec7ecc3bd7187b38 --- cvq_ioctl.h | 3 ++- 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 diff --git a/cvq_util.c b/cvq_util.c index 9c80c0d..45f5230 100644 --- a/cvq_util.c +++ b/cvq_util.c @@ -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)); -- cgit v1.2.3