From c6d046432127977475d3a06f1f60acf85adb3fbf Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 27 Apr 2011 17:24:11 -0700 Subject: [PATCH] Accept Apple specific headset commands --- audio/headset.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/audio/headset.c b/audio/headset.c index 33c3d8508..7e68746ce 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 } }; -- 2.47.3