Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5122641rwb; Wed, 21 Sep 2022 03:34:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4u4colk1Y2L/lKl0cfwqC51BKfgJIxjbWl87OqsXWTIXyXKL7yZzNIQ3mOLLFZs4GrInIg X-Received: by 2002:a05:6402:e9b:b0:454:351c:c222 with SMTP id h27-20020a0564020e9b00b00454351cc222mr11366418eda.216.1663756455241; Wed, 21 Sep 2022 03:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663756455; cv=none; d=google.com; s=arc-20160816; b=jbuLoiaDn3DcJnSId1GU2gMDNFilajgzKhBpIMeBiZMJmw1VPGN1uf3HUeYEIMSo87 XtH0c3LFJKFJhoaq7ZJvJvavh0/Vh3uItLxeYSx+VBgpceGUn8HxNTzuKYrwUyrw40Xd s0qKn4nLhomdcp5G1y7+R+r3N318O0AjkhkVZZkzPeHM9MXiO5Bc5AOaG6EM7eoUu/0b BY/rEJlv8jeCwZ7DGDRxs1Jk2FZccwOoM3kgtkj9ASrVCAQ5FwD3Xeoti4R6j1kjvR/J TbBft5qIeyEWXNzldHXnZtd/p0MC4AVxCbUsgxSy3Chzxd4bh/cMLIzzldzOAHem3I9u XlTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aSQHjfpA9b+xoiNuW1QfVKCAbJs2CVYQcNSqZvmsUog=; b=rHVR9nxNx8ieI7c7j7W+R6Yjw43t4gOfWXMg+fFxhNTXW6IyNBKyLSFo51nHhYQ0ha ScgTjWCK4QWdhaVmxJd+FwTQVrnFMGVWNi6FNyWUDLConJnpu85xjDLRbV6p5UCHV44V NxVs+8xaVnTZKGFNvBiJDhGlaEErRLc+g8gotIcHzhxCcZgnZCskXKtW3dMhoeV6HHge WwQwpZNy9kHrx+wskRo94tBkITD0pO0HFeqmGkxXtTFVW8fhkZNuUZgiwmqvPYJ0Uywh xREFAOQDTBhrYgENMCdmQ1HAbI6AervUeU2bymjBAeNevliiWBFuRJq6LOnvvwzK/5I8 hnAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N0sW+GYF; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s2-20020a170906500200b0073ddab3aa79si2143716ejj.792.2022.09.21.03.33.49; Wed, 21 Sep 2022 03:34:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N0sW+GYF; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229891AbiIUK0O (ORCPT + 99 others); Wed, 21 Sep 2022 06:26:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbiIUK0H (ORCPT ); Wed, 21 Sep 2022 06:26:07 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A83228A7FB for ; Wed, 21 Sep 2022 03:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663755965; x=1695291965; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=B+c4oeqipEwnZ9r2wgg94HSONIC7ws6Pa5mDJTB3NtQ=; b=N0sW+GYFGj8T7Oj22mBRLTPuicASP98iupx9PAnrpGhQaAaCJQ+B+A0e 3e3YgwsBeoGgPMWVg6JuH8J2MlQyK3ypguQOjypx5yfGOaZ2hPOBK9Wgc 6g7Ml3TMkpzP6pOOFPB7BsvtHcNuw9S8YuUsHHWZsl15RKC4mg5kSbCZX WYCAMejyjfPbZdI4ge/kXzfaB90uRpjDAf4h48p4UPJdMPJ7LTwbq0Bd6 qqxgrBfha9W3KAf2h+Ry2tROAMxp1QEdPFoBhXPsCBIgbkklzVV5bGfV7 INGBR1T349slMRPyJ3CzT4QjNT7fQzVvdhdA7C5zTePTcPzIfwJNN4/MR A==; X-IronPort-AV: E=McAfee;i="6500,9779,10476"; a="279688487" X-IronPort-AV: E=Sophos;i="5.93,333,1654585200"; d="scan'208";a="279688487" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2022 03:26:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,333,1654585200"; d="scan'208";a="948090244" Received: from bsblt022.iind.intel.com ([10.224.186.21]) by fmsmga005.fm.intel.com with ESMTP; 21 Sep 2022 03:26:03 -0700 From: Sathish Narasimman To: linux-bluetooth@vger.kernel.org Cc: Sathish Narasimman Subject: [PATCH BlueZ v2 2/2] Profiles: Enable bt_vcp_set_debug Date: Wed, 21 Sep 2022 15:57:32 +0530 Message-Id: <20220921102732.688081-2-sathish.narasimman@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220921102732.688081-1-sathish.narasimman@intel.com> References: <20220921102732.688081-1-sathish.narasimman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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