Don't advertise AVRCP Controller support in SDP records.
We are a AVRCP 1.0 target, not a controller.
This is identical to the change we applied to Bluez 3.x
diff --git a/audio/control.c b/audio/control.c
index 0b07ff0..5709f8e 100644
--- a/audio/control.c
+++ b/audio/control.c
@@ -162,7 +162,9 @@
bdaddr_t src;
GIOChannel *io;
uint32_t tg_record_id;
+#ifndef ANDROID
uint32_t ct_record_id;
+#endif
};
struct control {
@@ -892,6 +894,7 @@
}
server->tg_record_id = record->handle;
+#ifndef ANDROID
record = avrcp_ct_record();
if (!record) {
error("Unable to allocate new service record");
@@ -906,10 +909,13 @@
return -1;
}
server->ct_record_id = record->handle;
+#endif
server->io = avctp_server_socket(src, master);
if (!server->io) {
+#ifndef ANDROID
remove_record_from_server(server->ct_record_id);
+#endif
remove_record_from_server(server->tg_record_id);
g_free(server);
return -1;
@@ -946,7 +952,9 @@
servers = g_slist_remove(servers, server);
+#ifndef ANDROID
remove_record_from_server(server->ct_record_id);
+#endif
remove_record_from_server(server->tg_record_id);
g_io_channel_shutdown(server->io, TRUE, NULL);