diff options
author | Arthur Ishiguro <arthuri@google.com> | 2017-08-29 16:22:25 -0700 |
---|---|---|
committer | Arthur Ishiguro <arthuri@google.com> | 2017-08-29 16:41:59 -0700 |
commit | 8d0e0251dc82dec80d458dada7d5345c1967b556 (patch) | |
tree | 592bc8b7b8da6c315085d70a46c74dd2de8aaa3b | |
parent | b1ad261016a32ad3a509964bd7e73bbee469840c (diff) | |
download | chre-8d0e0251dc82dec80d458dada7d5345c1967b556.tar.gz |
Enter big image before sending SMR requests
Bug: 63601406
Test: Run sensor world, verify we can call sendReqSyncUntyped without
crashing, and that we can continue streaming samples in uimg mode
Change-Id: I3c5b8fefda32547fbfcfdb843e92593dff8cd970
-rw-r--r-- | platform/slpi/smr_helper.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/slpi/smr_helper.cc b/platform/slpi/smr_helper.cc index 092ad313..70a876ca 100644 --- a/platform/slpi/smr_helper.cc +++ b/platform/slpi/smr_helper.cc @@ -20,6 +20,7 @@ #include "chre/platform/assert.h" #include "chre/platform/log.h" +#include "chre/platform/slpi/power_control_util.h" #include "chre/util/lock_guard.h" namespace chre { @@ -92,6 +93,9 @@ bool SmrHelper::sendReqSyncUntyped( CHRE_ASSERT(!mWaiting); bool waitSuccess = true; + // Force big image since smr_client_send_req is not supported in micro-image + slpiForceBigImage(); + // Note that null txn_handle means we can't abandon the transaction, but it's // only supported for QMI (non-SMR) services, and we don't expect that anyway. // SMR itself does not support canceling transactions made to SMR services. |