Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c888c2b authored by Yuyang Huang's avatar Yuyang Huang
Browse files

update CSIS bit support and reserved capabilities bits based on updated ASHA documentation

Bug: 290978261
Test: m aosp_cf_x86_64_phone-userdebug
Change-Id: I85f1fde70ef13fb6f21332774172b2f771c9ee77
parent 65c3d5b9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -907,8 +907,10 @@ class HearingAidImpl : public HearingAid {
    hearingDevice->capabilities = capabilities;
    bool side = capabilities & CAPABILITY_SIDE;
    bool standalone = capabilities & CAPABILITY_BINAURAL;
    LOG_DEBUG("capabilities: %s, %s", (side ? "right" : "left"),
              (standalone ? "binaural" : "monaural"));
    bool csis_capable = capabilities & CAPABILITY_CSIS;
    LOG_DEBUG("capabilities: %s, %s, CSIS %s", (side ? "right" : "left"),
              (standalone ? "binaural" : "monaural"),
              (csis_capable ? "capable" : "not capable"));

    if (capabilities & CAPABILITY_RESERVED) {
      LOG_WARN("reserved capabilities are set");
+2 −1
Original line number Diff line number Diff line
@@ -36,7 +36,8 @@ constexpr uint16_t HA_INTERVAL_20_MS = 20;
// Masks for checking capability support
constexpr uint8_t CAPABILITY_SIDE = 0x01;
constexpr uint8_t CAPABILITY_BINAURAL = 0x02;
constexpr uint8_t CAPABILITY_RESERVED = 0xFC;
constexpr uint8_t CAPABILITY_CSIS = 0x04;
constexpr uint8_t CAPABILITY_RESERVED = 0xF8;

// Number of retry for phy update. This targets to reduce phy update collision.
const static uint8_t PHY_UPDATE_RETRY_LIMIT =