diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-09-16 16:48:44 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-09-16 16:54:08 +0200 |
commit | 84093984f3e50cfac5e0b66a1adc05870184b0ea (patch) | |
tree | 9dc079bb89ec18edd745c6bcf0686f31223f6733 /ril | |
parent | 9427510d0f95d8e5c3595bc7d82017b02d1451fa (diff) | |
download | android_hardware_samsung-84093984f3e50cfac5e0b66a1adc05870184b0ea.tar.gz android_hardware_samsung-84093984f3e50cfac5e0b66a1adc05870184b0ea.tar.bz2 android_hardware_samsung-84093984f3e50cfac5e0b66a1adc05870184b0ea.zip |
ril: Support new sound manger RIL responses
New version of Samsung RIL do not use RIL_UNSOL_WB_AMR_STATE anymore.
There is a Sound Manager (SND-MGR) which has its own response base
(20000). So to be able to register a handler for
RIL_UNSOL_SNDMGR_WB_AMR_REPORT
with libsecril-client we need to know about it. This allows us to
register a callback in the audio HAL to turn WB support on.
WB_AMR_REPORT report 0x00, 0x01 or 0x02. I guess 0x01 is WB ON and
0x02 is WB + NS ON.
Change-Id: I403c86781551fc3b08354187322e8443402d56f6
Diffstat (limited to 'ril')
-rw-r--r-- | ril/libril/ril_unsol_commands_vendor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ril/libril/ril_unsol_commands_vendor.h b/ril/libril/ril_unsol_commands_vendor.h index 43ba5d1..0a9b657 100644 --- a/ril/libril/ril_unsol_commands_vendor.h +++ b/ril/libril/ril_unsol_commands_vendor.h @@ -47,3 +47,9 @@ {RIL_UNSOL_UTS_GETSMSMSG, responseVoid, WAKE_PARTIAL}, // 11030 {RIL_UNSOL_UTS_GET_UNREAD_SMS_STATUS, responseVoid, WAKE_PARTIAL}, // 11031 {RIL_UNSOL_MIP_CONNECT_STATUS, responseVoid, WAKE_PARTIAL}, // 11032 +#ifdef RIL_UNSOL_SNDMGR_WB_AMR_REPORT + {RIL_UNSOL_SNDMGR_WB_AMR_REPORT, responseInts, WAKE_PARTIAL}, // 20017 +#endif +#ifdef RIL_UNSOL_SNDMGR_CLOCK_CTRL + {RIL_UNSOL_SNDMGR_CLOCK_CTRL, responseInts, WAKE_PARTIAL}, // 20022 +#endif |