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
@@ -181,13 +181,23 @@ void hci_setup_sync(struct hci_conn *conn, __u16 handle)
|
||||
conn->attempt++;
|
||||
|
||||
cp.handle = cpu_to_le16(handle);
|
||||
cp.pkt_type = cpu_to_le16(conn->pkt_type);
|
||||
|
||||
cp.tx_bandwidth = cpu_to_le32(0x00001f40);
|
||||
cp.rx_bandwidth = cpu_to_le32(0x00001f40);
|
||||
cp.max_latency = cpu_to_le16(0x000A);
|
||||
cp.voice_setting = cpu_to_le16(hdev->voice_setting);
|
||||
cp.retrans_effort = 0x01;
|
||||
if (conn->hdev->is_wbs) {
|
||||
/* Transparent Data */
|
||||
uint16_t voice_setting = hdev->voice_setting | ACF_TRANS;
|
||||
cp.max_latency = cpu_to_le16(0x000D);
|
||||
cp.pkt_type = cpu_to_le16(ESCO_WBS);
|
||||
cp.voice_setting = cpu_to_le16(voice_setting);
|
||||
/* Retransmission Effort */
|
||||
cp.retrans_effort = RE_LINK_QUALITY;
|
||||
} else {
|
||||
cp.max_latency = cpu_to_le16(0x000A);
|
||||
cp.pkt_type = cpu_to_le16(conn->pkt_type);
|
||||
cp.voice_setting = cpu_to_le16(hdev->voice_setting);
|
||||
cp.retrans_effort = RE_POWER_CONSUMP;
|
||||
}
|
||||
|
||||
hci_send_cmd(hdev, HCI_OP_SETUP_SYNC_CONN, sizeof(cp), &cp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user