From: "Frédéric Dalleau" <frederic.dalleau@linux.intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: "Frédéric Dalleau" <frederic.dalleau@linux.intel.com>
Subject: [RFC v2 1/6] lib: SCO voice setting support header
Date: Fri, 5 Jul 2013 17:46:42 +0200 [thread overview]
Message-ID: <1373039207-20959-2-git-send-email-frederic.dalleau@linux.intel.com> (raw)
In-Reply-To: <1373039207-20959-1-git-send-email-frederic.dalleau@linux.intel.com>
Modify headers to enable support for changing SCO voice setting.
Corresponding commit implements functionality on kernel side.
---
lib/bluetooth.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 48323f0..012fde4 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -104,6 +104,14 @@ struct bt_security {
*/
#define BT_CHANNEL_POLICY_AMP_PREFERRED 2
+#define BT_VOICE 11
+struct bt_voice {
+ uint16_t setting;
+};
+
+#define BT_VOICE_TRANSPARENT 0x0003
+#define BT_VOICE_CVSD_16BIT 0x0060
+
/* Connection and socket states */
enum {
BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */
--
1.7.9.5
next prev parent reply other threads:[~2013-07-05 15:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-05 15:46 [RFC v2 0/6] sco: Integrate SCO socket option in user space Frédéric Dalleau
2013-07-05 15:46 ` Frédéric Dalleau [this message]
2013-07-05 15:46 ` [RFC v2 2/6] btio: Add option for SCO voice setting Frédéric Dalleau
2013-07-09 11:39 ` Johan Hedberg
2013-07-05 15:46 ` [RFC v2 3/6] btiotest: " Frédéric Dalleau
2013-07-05 15:46 ` [RFC v2 4/6] scotest: " Frédéric Dalleau
2013-07-05 15:46 ` [RFC v2 5/6] sco-tester: Initial sco tester implementation Frédéric Dalleau
2013-07-09 11:41 ` Johan Hedberg
2013-07-05 15:46 ` [RFC v2 6/6] sco-tester: Test BT_VOICE option with 1.1 adapter Frédéric Dalleau
2013-07-09 11:42 ` Johan Hedberg
2013-08-01 9:57 ` Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1373039207-20959-2-git-send-email-frederic.dalleau@linux.intel.com \
--to=frederic.dalleau@linux.intel.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).