From 84093984f3e50cfac5e0b66a1adc05870184b0ea Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 16 Sep 2015 16:48:44 +0200 Subject: [PATCH] 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 --- ril/libril/ril_unsol_commands_vendor.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ril/libril/ril_unsol_commands_vendor.h b/ril/libril/ril_unsol_commands_vendor.h index 43ba5d1d..0a9b657e 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