Bluetooth: Added support for HFP 1.6 Wide Band Speech
Signed-off-by: Kun Han Kim <kunhank@codeaurora.org> Change-Id: Ibc34a0170c1744ff50503a2c0c57dea721715aa8
This commit is contained in:
committed by
Stephen Boyd
parent
706754941e
commit
d69ac7ee48
@@ -159,11 +159,25 @@ enum {
|
||||
#define ESCO_2EV5 0x0100
|
||||
#define ESCO_3EV5 0x0200
|
||||
|
||||
#define ESCO_WBS (ESCO_EV3 | (EDR_ESCO_MASK ^ ESCO_2EV3))
|
||||
|
||||
#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)
|
||||
|
||||
/* Air Coding Format */
|
||||
#define ACF_CVSD 0x0000;
|
||||
#define ACF_ULAW 0x0001;
|
||||
#define ACF_ALAW 0x0002;
|
||||
#define ACF_TRANS 0x0003;
|
||||
|
||||
/* Retransmission Effort */
|
||||
#define RE_NO_RETRANS 0x00;
|
||||
#define RE_POWER_CONSUMP 0x01;
|
||||
#define RE_LINK_QUALITY 0x02;
|
||||
#define RE_DONT_CARE 0xFF;
|
||||
|
||||
/* ACL flags */
|
||||
#define ACL_START_NO_FLUSH 0x00
|
||||
#define ACL_CONT 0x01
|
||||
|
||||
@@ -168,6 +168,8 @@ struct hci_dev {
|
||||
__u32 amp_max_flush_to;
|
||||
__u32 amp_be_flush_to;
|
||||
|
||||
__s8 is_wbs;
|
||||
|
||||
unsigned long quirks;
|
||||
|
||||
atomic_t cmd_cnt;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
BlueZ - Bluetooth protocol stack for Linux
|
||||
Copyright (C) 2000-2001 Qualcomm Incorporated
|
||||
Copyright (c) 2011, Code Aurora Forum. All rights reserved.
|
||||
|
||||
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
|
||||
|
||||
@@ -38,6 +39,7 @@ struct sockaddr_sco {
|
||||
sa_family_t sco_family;
|
||||
bdaddr_t sco_bdaddr;
|
||||
__u16 sco_pkt_type;
|
||||
__s8 is_wbs;
|
||||
};
|
||||
|
||||
/* SCO socket options */
|
||||
|
||||
Reference in New Issue
Block a user