* [PATCH 4/5] For AVRCP Connect, eliminate dependency on sink
@ 2011-08-11 14:15 David Stockwell
0 siblings, 0 replies; only message in thread
From: David Stockwell @ 2011-08-11 14:15 UTC (permalink / raw)
To: linux-bluetooth; +Cc: lucas.demarchi, luiz.dentz, david_stockwell
For AVRCP Connect, eliminate dependency on sink
Required for case where device connecting is only an AVRCP
remote, without audio (sink) capability.
Based on Release 4.96
---
audio/manager.c | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/audio/manager.c b/audio/manager.c
index 911af45..b3c8773 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -222,8 +222,21 @@ static void handle_uuid(const char *uuidstr, struct
audio_device *device)
control_update(device, uuid16);
else
device->control = control_init(device, uuid16);
- if (device->sink && sink_is_active(device))
+
+ /* Eliminate dependency on sink if remote without Sink. */
+
+ if (device->sink) {
+ if (sink_is_active(device)) {
+ DBG("Connecting to AVRCP with active sink");
+ avrcp_connect(device);
+ } else {
+ DBG("Connecting to AVRCP with inactive sink");
+ avrcp_connect(device);
+ }
+ } else {
+ DBG("Connecting to AVRCP without sink");
avrcp_connect(device);
+ }
break;
default:
DBG("Unrecognized UUID: 0x%04X", uuid16);
--
1.7.4.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-11 14:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-11 14:15 [PATCH 4/5] For AVRCP Connect, eliminate dependency on sink David Stockwell
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).