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 1/5] lib: SCO voice setting support header
Date: Wed, 26 Jun 2013 19:32:08 +0200 [thread overview]
Message-ID: <1372267932-10965-2-git-send-email-frederic.dalleau@linux.intel.com> (raw)
In-Reply-To: <1372267932-10965-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-06-26 17:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-26 17:32 [RFC 0/5] sco: Integrate SCO socket option in user space Frédéric Dalleau
2013-06-26 17:32 ` Frédéric Dalleau [this message]
2013-06-26 17:32 ` [RFC 2/5] btio: Add option for SCO voice setting Frédéric Dalleau
2013-07-01 7:54 ` Luiz Augusto von Dentz
2013-06-26 17:32 ` [RFC 3/5] btiotest: " Frédéric Dalleau
2013-06-26 17:32 ` [RFC 4/5] scotest: " Frédéric Dalleau
2013-06-26 17:32 ` [RFC 5/5] sco-tester: Initial sco tester implementation Frédéric Dalleau
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=1372267932-10965-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).