diff options
author | Sathish Narasimman <sathish.narasimman@intel.com> | 2022-09-21 15:57:32 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-09-21 16:37:35 -0700 |
commit | 7233b50f4135a9e533a997bbb7b3fceeb1dc1bff (patch) | |
tree | c5cd1e2e710efe33aa877fe92d34dcda37234936 /profiles | |
parent | 89ac7b826557c48cc8038c2eec6854aa07909eed (diff) | |
download | bluez-7233b50f4135a9e533a997bbb7b3fceeb1dc1bff.tar.gz |
Profiles: Enable bt_vcp_set_debug
Set bt_vcp_set_debug to be used for VCP.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/audio/vcp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/profiles/audio/vcp.c b/profiles/audio/vcp.c index e7e84174e..b42b0a4f7 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(); |