summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKiran K <kiran.k@intel.com>2021-09-07 13:12:42 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-09-08 00:09:18 +0300
commitf6873401a60865702069fb2e3f67671fff9c082c (patch)
treeeb9cef3800da1e8221bb4bb4cf1dedee2bd5970c /include
parentd586029c282c3ef398cba0d8d55d7ce1e5e40faa (diff)
downloadlinux-f6873401a60865702069fb2e3f67671fff9c082c.tar.xz
Bluetooth: Allow setting of codec for HFP offload use case
This patch allows user space to set the codec that needs to be used for HFP offload use case. The codec details are cached and the controller is configured before opening the SCO connection. Signed-off-by: Kiran K <kiran.k@intel.com> Reviewed-by: Chethan T N <chethan.tumkur.narayan@intel.com> Reviewed-by: Srivatsa Ravishankar <ravishankar.srivatsa@intel.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/bluetooth.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index 64cddff0c9c4..536cae9a8bd7 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -173,6 +173,8 @@ struct bt_codecs {
struct bt_codec codecs[];
} __packed;
+#define BT_CODEC_CVSD 0x02
+
__printf(1, 2)
void bt_info(const char *fmt, ...);
__printf(1, 2)