linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/4] sco: Another SCO socket option :)
@ 2012-11-28 18:28 Frédéric Dalleau
  2012-11-28 18:28 ` [RFC 1/4] Bluetooth: Add option for SCO socket codec Frédéric Dalleau
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Frédéric Dalleau @ 2012-11-28 18:28 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Frédéric Dalleau

Hi,

This patch implements codec socket option on SCO sockets.
Currently it proposes T2 codec settins (see HFP 1.6 p.102)


How to test:
$ scotest -W 1 -C 1

on another machine with same patches run:
$ scotest -n $ADDR -C 1

Check result with btmon.

This took more time than I expected for I met the following issues :
* bluetooth-next branch crashed in apparmor after login.
* At some point, unplugging my usb dongle would also crash the kernel. It is
possible this one was a mix between different versions of kernel modules.
* if the connection request is not accepted, the initiator gets in timeout, and
there is a crash. I think this one will need be fixed.

Next step is to implement fallback between T2 and T1. I'm thinking about using
another bit in hconn->flags to store current settings selection.

Let me know what you think.
Best regards,
Frédéric


Frédéric Dalleau (4):
  Bluetooth: Add option for SCO socket codec
  Bluetooth: Add option for SCO socket socket
  Bluetooth: Use codec to create SCO connection
  Bluetooth: Set link parameters for outgoing connections

 include/net/bluetooth/hci_core.h |    6 +++--
 include/net/bluetooth/sco.h      |    2 ++
 net/bluetooth/hci_conn.c         |   24 ++++++++++++++----
 net/bluetooth/hci_event.c        |   23 ++++++++++++++---
 net/bluetooth/l2cap_core.c       |    4 +--
 net/bluetooth/mgmt.c             |    4 +--
 net/bluetooth/sco.c              |   51 ++++++++++++++++++++++++++++++++++++--
 7 files changed, 97 insertions(+), 17 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-11-29  9:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-28 18:28 [RFC 0/4] sco: Another SCO socket option :) Frédéric Dalleau
2012-11-28 18:28 ` [RFC 1/4] Bluetooth: Add option for SCO socket codec Frédéric Dalleau
2012-11-28 18:28 ` [RFC 2/4] Bluetooth: Add option for SCO socket socket Frédéric Dalleau
2012-11-28 18:28 ` [RFC 3/4] Bluetooth: Use codec to create SCO connection Frédéric Dalleau
2012-11-28 18:28 ` [RFC 4/4] Bluetooth: Set link parameters for outgoing connections Frédéric Dalleau
2012-11-29  9:31   ` Andrei Emeltchenko
2012-11-29  8:41 ` [RFC 0/4] sco: Another SCO socket option :) Arnaud Mouiche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).