Bluetooth: HFP HF: SCO Initiate Audio connection
This patch adds support to initiate audio connection from the stack. < HCI Command: Setup Synchronous... (0x01|0x0028) plen 17 [hci0] Handle: 256 Transmit bandwidth: 8000 Receive bandwidth: 8000 Max latency: 7 Setting: 0x0060 Input Coding: Linear Input Data Format: 2's complement Input Sample Size: 16-bit # of bits padding at MSB: 0 Air Coding Format: CVSD Retransmission effort: Optimize for power consumption (0x01) Packet type: 0x003e HV2 may be used HV3 may be used EV3 may be used EV4 may be used EV5 may be used Change-Id: I4f4c0788760c9bdaf75651825511ff6bcd06df59 Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com>
This commit is contained in:
parent
dcf9a97b18
commit
d33ea09968
3 changed files with 84 additions and 0 deletions
|
@ -494,6 +494,17 @@ struct bt_br_conn_param {
|
|||
struct bt_conn *bt_conn_create_br(const bt_addr_t *peer,
|
||||
const struct bt_br_conn_param *param);
|
||||
|
||||
/** @brief Initiate an SCO connection to a remote device.
|
||||
*
|
||||
* Allows initiate new SCO link to remote peer using its address.
|
||||
* Returns a new reference that the the caller is responsible for managing.
|
||||
*
|
||||
* @param peer Remote address.
|
||||
*
|
||||
* @return Valid connection object on success or NULL otherwise.
|
||||
*/
|
||||
struct bt_conn *bt_conn_create_sco(const bt_addr_t *peer);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue