Add RIL_UNSOL_RESEND_INCALL_MUTE.
For bug 2400052.
Notification requires user resend mute/unmute to get uplink audio in a call.
diff --git a/include/telephony/ril.h b/include/telephony/ril.h
index 4dd4bea..99fd355 100644
--- a/include/telephony/ril.h
+++ b/include/telephony/ril.h
@@ -3314,6 +3314,17 @@
*/
#define RIL_UNSOL_RINGBACK_TONE 1029
+/**
+ * RIL_UNSOL_RESEND_INCALL_MUTE
+ *
+ * Indicates that framework/application need reset the uplink mute state.
+ *
+ * There may be situations where the mute state becomes out of sync
+ * between the application and device in some GSM infrastructures.
+ *
+ * "data" is null
+ */
+#define RIL_UNSOL_RESEND_INCALL_MUTE 1030
/***********************************************************************/
diff --git a/libril/ril.cpp b/libril/ril.cpp
index 6f36b8d..8ec9bba 100644
--- a/libril/ril.cpp
+++ b/libril/ril.cpp
@@ -3025,6 +3025,7 @@
case RIL_UNSOL_CDMA_INFO_REC: return "UNSOL_CDMA_INFO_REC";
case RIL_UNSOL_OEM_HOOK_RAW: return "UNSOL_OEM_HOOK_RAW";
case RIL_UNSOL_RINGBACK_TONE: return "UNSOL_RINGBACK_TONE";
+ case RIL_UNSOL_RESEND_INCALL_MUTE: return "UNSOL_RESEND_INCALL_MUTE";
default: return "<unknown request>";
}
}
diff --git a/libril/ril_unsol_commands.h b/libril/ril_unsol_commands.h
index 2dc31e6..3660702 100644
--- a/libril/ril_unsol_commands.h
+++ b/libril/ril_unsol_commands.h
@@ -43,4 +43,5 @@
{RIL_UNSOL_CDMA_OTA_PROVISION_STATUS, responseInts, WAKE_PARTIAL},
{RIL_UNSOL_CDMA_INFO_REC, responseCdmaInformationRecords, WAKE_PARTIAL},
{RIL_UNSOL_OEM_HOOK_RAW, responseRaw, WAKE_PARTIAL},
- {RIL_UNSOL_RINGBACK_TONE, responseInts, WAKE_PARTIAL}
+ {RIL_UNSOL_RINGBACK_TONE, responseInts, WAKE_PARTIAL},
+ {RIL_UNSOL_RESEND_INCALL_MUTE, responseVoid, WAKE_PARTIAL}