[PATCH BlueZ v2 2/2] Profiles: Enable bt_vcp_set_debug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Set bt_vcp_set_debug to be used for VCP.
---
 profiles/audio/vcp.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/profiles/audio/vcp.c b/profiles/audio/vcp.c
index e7e84174e7d4..b42b0a4f79dd 100644
--- a/profiles/audio/vcp.c
+++ b/profiles/audio/vcp.c
@@ -62,6 +62,11 @@ struct vcp_data {
 
 static struct queue *sessions;
 
+static void vcp_debug(const char *str, void *user_data)
+{
+	DBG_IDX(0xffff, "%s", str);
+}
+
 static int vcp_disconnect(struct btd_service *service)
 {
 	DBG("");
@@ -87,6 +92,8 @@ static void vcp_data_add(struct vcp_data *data)
 		return;
 	}
 
+	bt_vcp_set_debug(data->vcp, vcp_debug, NULL, NULL);
+
 	if (!sessions)
 		sessions = queue_new();
 
-- 
2.25.1




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux