diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-04-27 17:24:11 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-04-27 17:24:11 -0700 |
commit | c6d046432127977475d3a06f1f60acf85adb3fbf (patch) | |
tree | d4c92ca4b1aae4f8e89686f02604ba31baf89593 /audio | |
parent | 2ad1015a1660a0e87e04adb7b7f5ef0d62e8fc23 (diff) | |
download | bluez-c6d046432127977475d3a06f1f60acf85adb3fbf.tar.gz |
Accept Apple specific headset commands
Diffstat (limited to 'audio')
-rw-r--r-- | audio/headset.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c index 33c3d850..7e68746c 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 } }; |