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

Commit 8326e0ec authored by kuanyuhuang's avatar kuanyuhuang Committed by Ray Kuo
Browse files

Fix BTA_AV_API_SET_LATENCY_EVT not handled

BTA_AV_API_SET_LATENCY_EVT is the last AV event enum item.
Modified BTA_AV_LAST_NSM_EVT and BTA_AV_LAST_NSM_EVT to
BTA_AV_API_SET_LATENCY_EVT.

Bug: 240637363
Bug: 223126227
Tag: #feature
Ignore-AOSP-First: TM QPR1 feature
Test: test on sink device support dynamic spatial audio
Change-Id: I1e547456d073dbb0cef2233e0d6806b405aaae37
parent 739bf6dc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -127,13 +127,13 @@ enum {

/* events that do not go through state machine */
#define BTA_AV_FIRST_NSM_EVT BTA_AV_API_ENABLE_EVT
#define BTA_AV_LAST_NSM_EVT BTA_AV_API_STOP_EVT
#define BTA_AV_LAST_NSM_EVT BTA_AV_API_SET_LATENCY_EVT

/* API events passed to both SSMs (by bta_av_api_to_ssm) */
#define BTA_AV_FIRST_A2S_API_EVT BTA_AV_API_START_EVT
#define BTA_AV_FIRST_A2S_SSM_EVT BTA_AV_AP_START_EVT

#define BTA_AV_LAST_EVT BTA_AV_API_STOP_EVT
#define BTA_AV_LAST_EVT BTA_AV_API_SET_LATENCY_EVT

/* maximum number of SEPS in stream discovery results */
#define BTA_AV_NUM_SEPS 32