summaryrefslogtreecommitdiff
path: root/include/net/bluetooth/hci.h
diff options
context:
space:
mode:
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>2011-03-17 12:17:30 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:07:32 +0200
commitcca20365f85a272c284fc91e901a7da6180ca876 (patch)
treeb1768331df254e60dd7334c6cd2bd73d0105d35f /include/net/bluetooth/hci.h
parent5bcdc61f0f3f1765382a1840cdd52a8237bd4246 (diff)
bluetooth: Add SCO parameters support for socket
Adds ability to setup SCO connection parameters through socket option. ST-Ericsson Linux next: Not tested, ER 256277 ST-Ericsson ID: 256277 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10137 Change-Id: If859341019fd9f7cc7c0efe95750779e84fac801 Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30136 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Tested-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
Diffstat (limited to 'include/net/bluetooth/hci.h')
-rw-r--r--include/net/bluetooth/hci.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index d47e523c9d8..15da4460f24 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -176,6 +176,8 @@ enum {
#define SCO_ESCO_MASK (ESCO_HV1 | ESCO_HV2 | ESCO_HV3)
#define EDR_ESCO_MASK (ESCO_2EV3 | ESCO_3EV3 | ESCO_2EV5 | ESCO_3EV5)
+#define ALL_ESCO_MASK (SCO_ESCO_MASK | ESCO_EV3 | ESCO_EV4 | ESCO_EV5 | \
+ EDR_ESCO_MASK)
/* ACL flags */
#define ACL_START_NO_FLUSH 0x00
@@ -458,6 +460,21 @@ struct hci_cp_setup_sync_conn {
__le16 pkt_type;
} __packed;
+/* Air coding format types */
+#define HCI_SYNC_AIR_CODING_CVSD 0x00
+#define HCI_SYNC_AIR_CODING_ULAW 0x01
+#define HCI_SYNC_AIR_CODING_ALAW 0x02
+#define HCI_SYNC_AIR_CODING_TRANSPARENT 0x03
+
+/* Max latency constants */
+#define HCI_SYNC_MAX_LATENCY_DONTCARE 0xffff
+
+/* Retransmission effort constants */
+#define HCI_SYNC_RETRANS_EFFORT_NO 0x00
+#define HCI_SYNC_RETRANS_EFFORT_POWER 0x01
+#define HCI_SYNC_RETRANS_EFFORT_QUALITY 0x02
+#define HCI_SYNC_RETRANS_EFFORT_DONTCARE 0xff
+
#define HCI_OP_ACCEPT_SYNC_CONN_REQ 0x0429
struct hci_cp_accept_sync_conn_req {
bdaddr_t bdaddr;