From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 3/4] Add Routing property to MediaTransport interface
Date: Tue, 18 Jan 2011 12:00:14 +0200 [thread overview]
Message-ID: <1295344815-1404-3-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1295344815-1404-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
This should indicate to the endpoint what routing the transport is using
---
audio/transport.c | 4 ++++
doc/media-api.txt | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/audio/transport.c b/audio/transport.c
index d575590..b5a9e48 100644
--- a/audio/transport.c
+++ b/audio/transport.c
@@ -599,12 +599,16 @@ static void get_properties_headset(struct media_transport *transport,
DBusMessageIter *dict)
{
gboolean nrec, inband;
+ const char *routing;
nrec = headset_get_nrec(transport->device);
dict_append_entry(dict, "NREC", DBUS_TYPE_BOOLEAN, &nrec);
inband = headset_get_inband(transport->device);
dict_append_entry(dict, "InbandRingtone", DBUS_TYPE_BOOLEAN, &inband);
+
+ routing = headset_get_sco_hci(transport->device) ? "HCI" : "PCM";
+ dict_append_entry(dict, "Routing", DBUS_TYPE_STRING, &routing);
}
void transport_get_properties(struct media_transport *transport,
diff --git a/doc/media-api.txt b/doc/media-api.txt
index 92b8b3f..84903d6 100644
--- a/doc/media-api.txt
+++ b/doc/media-api.txt
@@ -152,3 +152,9 @@ Properties object Device [readonly]
Optional. Indicates if the transport support sending
ringtones, this property is only writeable when the
transport was acquired by the sender.
+
+ string Routing [readonly]
+
+ Optional. Indicates where is the transport being routed
+
+ Possible Values: "HCI" or "PCM"
--
1.7.1
next prev parent reply other threads:[~2011-01-18 10:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-18 10:00 [PATCH 1/4] Remove IMTU and OMTU properties and return its values on Acquire reply Luiz Augusto von Dentz
2011-01-18 10:00 ` [PATCH 2/4] Updade a2dpsink to use new Acquire API Luiz Augusto von Dentz
2011-01-19 15:16 ` Johan Hedberg
2011-01-18 10:00 ` Luiz Augusto von Dentz [this message]
2011-01-19 15:20 ` [PATCH 3/4] Add Routing property to MediaTransport interface Johan Hedberg
2011-01-18 10:00 ` [PATCH 4/4] Add proper tracking mechanism to NREC Luiz Augusto von Dentz
2011-01-19 15:22 ` Johan Hedberg
2011-01-19 15:14 ` [PATCH 1/4] Remove IMTU and OMTU properties and return its values on Acquire reply 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=1295344815-1404-3-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.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