bluez/audio
Frédéric Danis 3163523575 audio: add profile version to HandsfreeAgent
Some phones with HFP Audio Gateway version previous to 1.5 (e.g.
Samsung SGH-D600 returning 0x0101 as profile version) do not accept an
AT+BRSF with latest features. The Handsfree agent should adapt its
AT+BRSF command depending on the remote version, so add version
information as parameter of NewConnection method.

Here is traces of buggy exchange:

< ACL data: handle 12 flags 0x02 dlen 20
    L2CAP(d): cid 0x0046 len 16 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 10 pf 0 ilen 12 fcs 0xb0
      0000: 41 54 2b 42 52 53 46 3d  31 31 38 0d              AT+BRSF=118.
> ACL data: handle 12 flags 0x02 dlen 18
    L2CAP(d): cid 0x0041 len 14 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 10 pf 1 ilen 9 fcs 0x76 credits 1
      0000: 0d 0a 45 52 52 4f 52 0d  0a                       ..ERROR..
< ACL data: handle 12 flags 0x02 dlen 8
    L2CAP(d): cid 0x0046 len 4 [psm 3]
      RFCOMM(s): DISC: cr 1 dlci 10 pf 1 ilen 0 fcs 0x6d

and after the fix (and corresponding fix in oFono):

< ACL data: handle 12 flags 0x02 dlen 19
    L2CAP(d): cid 0x0048 len 15 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 10 pf 0 ilen 11 fcs 0xb0
      0000: 41 54 2b 42 52 53 46 3d  32 32 0d                 AT+BRSF=22.
> ACL data: handle 12 flags 0x02 dlen 28
    L2CAP(d): cid 0x0041 len 24 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 10 pf 1 ilen 19 fcs 0x76 credits 1
      0000: 0d 0a 2b 42 52 53 46 3a  20 33 33 0d 0a 0d 0a 4f  ..+BRSF: 33....O
      0010: 4b 0d 0a                                          K..
< ACL data: handle 12 flags 0x02 dlen 18
    L2CAP(d): cid 0x0048 len 14 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 10 pf 0 ilen 10 fcs 0xb0
      0000: 41 54 2b 43 49 4e 44 3d  3f 0d                    AT+CIND=?.
2011-08-04 14:02:39 +03:00
..
a2dp-codecs.h Add support for media transport in gstreamer plugin 2010-09-15 15:05:44 +03:00
a2dp.c Fix possible invalid read/free when using g_slist_free_full 2011-07-05 10:51:57 +03:00
a2dp.h Add 'Protocol not supported' error in a2dp_add_sep 2011-03-17 14:35:55 +02:00
audio.conf Add fast connectable support to HFP 2010-08-18 13:46:03 +03:00
avdtp.c avdtp: fix race condition when starting a stream 2011-07-10 10:55:19 +03:00
avdtp.h Reuse same SEP when reconfiguring A2DP streams 2011-02-08 11:04:39 -08:00
bluetooth.conf Replace asound.conf with a more full-fledged bluetooth.conf 2009-04-17 01:45:19 +02:00
control.c avrcp: remove unused dbus reply message 2011-07-10 10:40:47 +03:00
control.h Update Nokia copyrights 2010-01-07 01:11:05 -08:00
ctl_bluetooth.c Remove unnecessary jumps 2011-06-01 14:41:01 +03:00
device.c Remove unneeded textfile header includes 2011-08-02 10:53:38 +03:00
device.h audio/device.h: use lower case in profile UUIDs 2010-10-20 12:01:22 +03:00
gateway.c audio: add profile version to HandsfreeAgent 2011-08-04 14:02:39 +03:00
gateway.h Implement HandsfreeGateway Interface 2010-02-04 10:54:45 -08:00
gsta2dpsink.c audio: Remove workaround for compiler warnings 2011-02-13 17:51:45 -08:00
gsta2dpsink.h audio: Remove workaround for compiler warnings 2011-02-13 17:51:45 -08:00
gstavdtpsink.c Fix common misspelled words 2011-07-03 14:36:14 +03:00
gstavdtpsink.h audio: Remove workaround for compiler warnings 2011-02-13 17:51:45 -08:00
gstbluetooth.c audio: fix memory leak with typefinding 2010-06-29 10:29:10 +03:00
gstpragma.h Fix C++ style comments 2011-05-10 17:17:03 +02:00
gstrtpsbcpay.c Add pragma based workaround for GStreamer warnings 2010-05-19 16:59:30 +02:00
gstrtpsbcpay.h audio: Remove workaround for compiler warnings 2011-02-13 17:51:45 -08:00
gstsbcdec.c Add pragma based workaround for GStreamer warnings 2010-05-19 16:59:30 +02:00
gstsbcdec.h audio: Remove workaround for compiler warnings 2011-02-13 17:51:45 -08:00
gstsbcenc.c Add pragma based workaround for GStreamer warnings 2010-05-19 16:59:30 +02:00
gstsbcenc.h audio: Remove workaround for compiler warnings 2011-02-13 17:51:45 -08:00
gstsbcparse.c Add pragma based workaround for GStreamer warnings 2010-05-19 16:59:30 +02:00
gstsbcparse.h audio: Remove workaround for compiler warnings 2011-02-13 17:51:45 -08:00
gstsbcutil.c Fix common misspelled words 2011-07-03 14:36:14 +03:00
gstsbcutil.h Update copyright information 2010-01-01 17:08:17 -08:00
headset.c Make use of g_slist_free_full on audio plugin 2011-06-30 14:38:59 +03:00
headset.h Add proper tracking mechanism to NREC 2011-01-19 20:50:29 +05:30
ipc.c Update copyright information 2010-01-01 17:08:17 -08:00
ipc.h Fix common misspelled words 2011-07-03 14:36:14 +03:00
main.c Add option to enable/disable unix ipc via audio.conf 2010-09-15 15:05:44 +03:00
manager.c Remove unneeded textfile header includes 2011-08-02 10:53:38 +03:00
manager.h Add initial implementation of org.bluez.Media spec 2010-09-15 15:21:53 +03:00
media.c Fix headset state callback in Media API 2011-07-10 10:57:17 +03:00
media.h Update a2dp transport delay when it changes 2010-09-15 15:22:14 +03:00
module-bluetooth-sink.c Update copyright information 2010-01-01 17:08:17 -08:00
pcm_bluetooth.c Report error if read failed in bluetooth_playback_poll_revents 2011-05-15 01:47:12 +03:00
rtp.h Update copyright information 2010-01-01 17:08:17 -08:00
sink.c Remove error_common_reply() 2010-12-16 11:27:43 +02:00
sink.h Update Nokia copyrights 2010-01-07 01:11:05 -08:00
source.c Remove error_common_reply() 2010-12-16 11:27:43 +02:00
source.h Update Nokia copyrights 2010-01-07 01:11:05 -08:00
telephony-dummy.c Fix cleaning up HFP state after calling telephony_exit 2010-12-12 23:06:16 +02:00
telephony-maemo5.c Fix cleaning up HFP state after calling telephony_exit 2010-12-12 23:06:16 +02:00
telephony-maemo6.c Fix telephony driver compilation with GLib < 2.28 2011-07-19 00:05:40 +03:00
telephony-ofono.c Fix telephony driver compilation with GLib < 2.28 2011-07-19 00:05:40 +03:00
telephony.h Fix cleaning up HFP state after calling telephony_exit 2010-12-12 23:06:16 +02:00
transport.c Fix headset state callback in Media API 2011-07-10 10:57:17 +03:00
transport.h Fix headset state callback in Media API 2011-07-10 10:57:17 +03:00
unix.c Make use of g_slist_free_full on audio plugin 2011-06-30 14:38:59 +03:00
unix.h Update Nokia copyrights 2010-01-07 01:11:05 -08:00