Diff between 2ad1015a1660a0e87e04adb7b7f5ef0d62e8fc23 and c6d046432127977475d3a06f1f60acf85adb3fbf

Changed Files

File Additions Deletions Status
audio/headset.c +9 -0 modified

Full Patch

diff --git a/audio/headset.c b/audio/headset.c
index 33c3d85..7e68746 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1198,6 +1198,13 @@ static int voice_dial(struct audio_device *device, const char *buf)
 	return 0;
 }
 
+static int apple_command(struct audio_device *device, const char *buf)
+{
+	DBG("Got Apple command: %s", buf);
+
+	return telephony_generic_rsp(device, CME_ERROR_NONE);
+}
+
 static struct event event_callbacks[] = {
 	{ "ATA", answer_call },
 	{ "ATD", dial_number },
@@ -1219,6 +1226,8 @@ static struct event event_callbacks[] = {
 	{ "AT+COPS", operator_selection },
 	{ "AT+NREC", nr_and_ec },
 	{ "AT+BVRA", voice_dial },
+	{ "AT+XAPL", apple_command },
+	{ "AT+IPHONEACCEV", apple_command },
 	{ 0 }
 };