From patchwork Fri Aug 18 13:35:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu Florian Barbulescu X-Patchwork-Id: 715512 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 767ACC71148 for ; Fri, 18 Aug 2023 13:37:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377183AbjHRNgl (ORCPT ); Fri, 18 Aug 2023 09:36:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377184AbjHRNgR (ORCPT ); Fri, 18 Aug 2023 09:36:17 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2075.outbound.protection.outlook.com [40.107.6.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CFD53589 for ; Fri, 18 Aug 2023 06:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BBR4epwxx7SOwZ/MNsCjLlL3M3L1dEvMSSerbZQcGJHjXUrdmU8h0BFjJ1raDetuvH/nXlLNrj3s3fN1it6nIMjsGFVk9CoRQnSu8U6DDTOB0X2SZzBl38QbFMdk6smsh2HjxxSSYqWMR/edfDiopRnRkrdZcv5yS3E239/1pq+wUubtcnUGvXWMg4R5r8S4HyuL4sL2Sn5ObAQVBCfZdbwAqcHzh9065qYrbjlsZR0gQlMXE92tcooCdK2jZyk9tLiG0+V3Ts201CKH4pu1DUzGAdpboFeFjdViD7ML6E3W+KdIMFkrVQksJfo3ZLkGSkyT7EJfWA57y2uZsdoVxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CrcWmWMlk0dzhODJgQkn2+oEoK+Df/qZDkiBPZz1b9g=; b=ntQIp18qB1DXku+tJ9QUMWKHyyrvqNaj0bYpo4iLMSlTEbQm1Wm8MXvNvWbwnKll/Cj1Ju3RTw+CD6aDagkDf7nDcHzH/SxS40QFFErI6KieisjBiaXQe9KqBaIoRE2j18uLRA015MyYk0/dN3Nu9L4uyjDVok5uNTAyLQq0JZFtYbR7ca5tMgwLkscaNDhxQeyzbcyJsndNQhuE4oN7NaOHICzdOdjYq7wm575phjf5xakmyC06/D14m2Ybn3T0Qg+rrOYq2BMTOECTj3lPkiYIg3hqCd/BoowHTO81juuVxcQeyz1dG4npjLDRQ5+tXJSWSqh20u965vmFV0lzvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CrcWmWMlk0dzhODJgQkn2+oEoK+Df/qZDkiBPZz1b9g=; b=XMG5rszV8lqt55a1ttzyeVHhrla5ugRgR7KBQv1nFz4qD4HHXWabazYxMOePbPuTmrEJiYNmFHQ4oCursm6DVw5+W7emdmTX9nEA/2cpa3tpGjd5frXNnbWAqygzPJdumrLCFbiF1858etaJu/nX8tD+9waowvpAIOcnVA/nzIA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5344.eurprd04.prod.outlook.com (2603:10a6:803:4b::31) by AS8PR04MB8263.eurprd04.prod.outlook.com (2603:10a6:20b:3f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Fri, 18 Aug 2023 13:36:14 +0000 Received: from VI1PR04MB5344.eurprd04.prod.outlook.com ([fe80::cf28:7578:cc46:bc2c]) by VI1PR04MB5344.eurprd04.prod.outlook.com ([fe80::cf28:7578:cc46:bc2c%5]) with mapi id 15.20.6678.031; Fri, 18 Aug 2023 13:36:14 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, iulia.tanasescu@nxp.com Subject: [PATCH v3 1/3] shared/bap: Add function that parses a BASE structure Date: Fri, 18 Aug 2023 16:35:50 +0300 Message-Id: <20230818133552.20673-2-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230818133552.20673-1-silviu.barbulescu@nxp.com> References: <20230818133552.20673-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AM0PR01CA0132.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::37) To VI1PR04MB5344.eurprd04.prod.outlook.com (2603:10a6:803:4b::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5344:EE_|AS8PR04MB8263:EE_ X-MS-Office365-Filtering-Correlation-Id: 78b272e3-f2b6-47e3-fe5d-08db9ff01784 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rWxpGWwpiCn7cwXBqETZJOD4yBRnByQn8f5EI3ogrKmAMKAlbB58OvU0cnrBKOemjEG1oUJe8Ik9f6851FFkJ6avby0PA48a3uu0osndVpXpU/ljcgKP8rvXYzavzkKFBcEN07UQw5BkmNLWL6RdOTO+d77LFTLl/KE7mfWZuCnsDmkVBI+wF1IgXTBefmJ1Dv715quY0aRq+HlUg7QqV//Gfr1hDIrshUZVnVYHfWv1P8GqiylrYW2XalUU9zXNDX5Z9V2o1PTK7Ib8a8uLCJ+AbfQM04VLzeCeJakLJ5OpfU0cPWMvR9h47KpQDlEv0QzoPJYWVT7TvlL8CK48dqMEeWWUdOqJ+ydnHSzIIGW0f3RQJOUL/6DAudR+l8tgFdnGj1lNRbPqUGl3NAxrcf7SRQ82IiDV53OpVjPVLtRi35AmGYwr97LaFN61IM26rwspOLlVrw2tovKkRae3bvm3pYlif50PvAR1XN+1msyvqDGNxb8ssWpvcBkzMObBTJb3HQPlg1CZ7QZAod6GiqZoOZM8IFhMsDKrdzomnO7rBJPntjrC7aONeDbqKb+y4FLIWd5LjRnUiMu8pM5pohEl++P7FrfXrf7TEhY+TmFhreykPLltS7Rj5Yuk1MhX X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5344.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(366004)(39860400002)(376002)(346002)(396003)(1800799009)(186009)(451199024)(86362001)(36756003)(66476007)(66556008)(66946007)(316002)(6916009)(478600001)(41300700001)(38350700002)(38100700002)(6512007)(6486002)(6666004)(26005)(6506007)(52116002)(1076003)(2616005)(8676002)(5660300002)(8936002)(4326008)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CkhywyHVk4wgv5DrryCjjlcqcfLv8pOhEcEwtPKC6hc7b2JeuSmGWrRlc6k31Q+Evy5CVW6iLjS7oayMBGdr3g7DWVyIruVR15cJ3TlcD2QXE/e7OnYVBIWt9gwjss+lkEahAnQmMMlDKWqrSWDTcWXK+WJn/6d5F7Dcxxz7tghKF/b+Kho4LussaDff0kr5n1/qEJy9VbT4MzXyDmKyZKoXgpVgbybkG5+FUJJgsK4W+/Oub+F4CLZD7RM6kL01EPEI2JvpiB3Z8pftNVKkopEdIUmoAJdRSp9NcmQf2ERXDCsQgYrcxXZnl5QEttjcYDuuff5JhGqB1MCej/oFf/UZbXMvHBlFYjKQiRBZYsLHuTcURmN1vtW2uc8Bm2hpNQ1/KypXXI8f6avN0r4UX46tq80QSuzzt6okfRvi4WXHPQRgKv2FjTBonw/8KzNL54Pb7nHPJmEaiwWXSdsMXrlL+pgmmc4FLHr4Sd/D+QlXju7hteF0YPlvUAYtZP79VUFw1HpnfkhM9Mmuuh37T3F01/eL3ldPP14ctVDaiM2MbpMe6paoHFY3uxiyztnO7Uo9vNs2U1rUDDYhV9G6zkPWbOq4keZftzyJH8rIe/9BAE2r4qET0fAkWkpma3W0EFir+L1zN1/yuSJcaub3YF+POYTj868dV6zdRpVbXCyF1VJX7+eq2l4ZR5QJVKluVQSrm71b7q0vCjDlk4OdHEDq0+zS5VTI1fKKrY8A/GsFnbE0awUVUS+jq279DfuKKu3gZm93fsG5w/UIPxu2I9pqXvVYLpt47idpODP8qAhN96B+CGbQ1juP7l2069SEsWwbdl9lkPJ0xTN8OBqOBDyFrdR4owWWLBLNcidIzjHqflx49sT5MTpZmoZF2wRVUXJc0myhgHkoBrG4Zz53O/61JalVUx3SOsO7TxpfRw6E99ma6vuFGZZFYPeOY61LBgTcKaIvcO7LxPRn5W/aeWI4a7Q9e1Cs+keFgthUbZ3Ian3yyQiGFEeOgfhGC7Co4a6yEzTafL/zpeE9dZgqQoRI7PhNoBI70CbjzWlD7bvk+RIt71wsUC8qsKkhop+330Z+eJHwbNA9kdLpeliKAUG2OrdSaL0LdCZrfbVN2HQ+CTMTq709h5M9PpAY4A0qHCSELBYd6sDD5MxsCazeVVEiuUsgX8h1U8h15gZ60PGpaVxxsRCiP/MVznyFbqSXEhGwXKPp7cHhdVDrFzihKEPSFk/xE2iA5PTDn//8lFePvVcbqBAnZ3V9KO9+xEXSC5MC2+m2ATDre6eDbI0C1VPIrvy0iG837gcaWsHoRcCOuhajtoj173jkWAkgMhjEgEclBbdtPpc0PE1blqDxV16UuM4q2cbGJRpIftiH/JuXXoJ8k6s+jGqUgmkkUSYPgjFUDHgr021j5TbooW69Vn7tN7b0WSk78dSFFhEPXb97iUBbno7mlrOi407zWLGtFPR3Q4KJTwmd2JdPYBqn5zZqtKOCR77j3V1oNkgL6HDOUeGVKh2l9KtvrZmczRsseXuIwlVc3QRIEA67eE6v1ysBZ6H7XitqqVvZ/bYwjB5jvnSIlznPKknyItMgeFnauIjpAs+k5dQLGMdLJqFy4A== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78b272e3-f2b6-47e3-fe5d-08db9ff01784 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5344.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2023 13:36:14.0116 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WVA4YNTmkYWbsKyDKAUjfHDJgq9MAG9DK6kYneca7KWltN37Om471oLkGuNOcn7EQ0CuqyfWKfmRPKO/C6OVWxbbMqFL6KZ4qpea21LCXUw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8263 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Claudia Draghicescu shared/bap: Add utility function that parses a BASE structure --- src/shared/bap.c | 97 ++++++++++++++++++++++++++++++++++++++++++++++++ src/shared/bap.h | 5 +++ 2 files changed, 102 insertions(+) diff --git a/src/shared/bap.c b/src/shared/bap.c index 72ce67c08..318fcc74f 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -2923,6 +2923,103 @@ bool bap_print_cc(void *data, size_t len, util_debug_func_t func, return bap_print_ltv("CC", data, len, func, user_data); } +bool bap_parse_base(void *data, size_t len, util_debug_func_t func, + uint32_t *presDelay, uint8_t *numSubgroups, uint8_t *numBis, + struct bt_bap_codec *codec, struct iovec **caps, + struct iovec **meta) +{ + struct iovec iov = { + .iov_base = data, + .iov_len = len, + }; + + uint8_t capsLen, metaLen; + uint8_t *hexstream; + + if (presDelay) { + if (!util_iov_pull_le24(&iov, presDelay)) + return false; + util_debug(func, NULL, "PresentationDelay %d", *presDelay); + } + + if (numSubgroups) { + if (!util_iov_pull_u8(&iov, numSubgroups)) + return false; + util_debug(func, NULL, "NumSubgroups %d", *numSubgroups); + } + + if (numBis) { + if (!util_iov_pull_u8(&iov, numBis)) + return false; + util_debug(func, NULL, "NumBis %d", *numBis); + } + + if (codec) { + codec = util_iov_pull_mem(&iov, sizeof(*codec)); + if (!codec) + return false; + util_debug(func, NULL, "%s: ID %d CID 0x%2.2x VID 0x%2.2x", + "Codec", codec->id, codec->cid, codec->vid); + } + + if (!util_iov_pull_u8(&iov, &capsLen)) + return false; + util_debug(func, NULL, "CC Len %d", capsLen); + + if (!capsLen) + return false; + if (caps) { + if (!(*caps)) + *caps = new0(struct iovec, 1); + (*caps)->iov_len = capsLen; + (*caps)->iov_base = iov.iov_base; + } + + for (int i = 0; capsLen > 1; i++) { + struct bt_ltv *ltv = util_iov_pull_mem(&iov, sizeof(*ltv)); + uint8_t *caps; + + if (!ltv) { + util_debug(func, NULL, "Unable to parse %s", + "Capabilities"); + return false; + } + + util_debug(func, NULL, "%s #%u: len %u type %u", + "CC", i, ltv->len, ltv->type); + + caps = util_iov_pull_mem(&iov, ltv->len - 1); + if (!caps) { + util_debug(func, NULL, "Unable to parse %s", + "CC"); + return false; + } + util_hexdump(' ', caps, ltv->len - 1, func, NULL); + + capsLen -= (ltv->len + 1); + } + + if (!util_iov_pull_u8(&iov, &metaLen)) + return false; + util_debug(func, NULL, "Metadata Len %d", metaLen); + + if (!metaLen) + return false; + if (meta) { + if (!(*meta)) + *meta = new0(struct iovec, 1); + (*meta)->iov_len = metaLen; + (*meta)->iov_base = iov.iov_base; + } + + hexstream = util_iov_pull_mem(&iov, metaLen); + if (!hexstream) + return false; + util_hexdump(' ', hexstream, metaLen, func, NULL); + + return true; +} + static void bap_parse_pacs(struct bt_bap *bap, uint8_t type, struct queue *queue, const uint8_t *value, diff --git a/src/shared/bap.h b/src/shared/bap.h index 50b567663..be1c7e343 100644 --- a/src/shared/bap.h +++ b/src/shared/bap.h @@ -195,6 +195,11 @@ bool bt_bap_set_debug(struct bt_bap *bap, bt_bap_debug_func_t cb, bool bap_print_cc(void *data, size_t len, util_debug_func_t func, void *user_data); +bool bap_parse_base(void *data, size_t len, util_debug_func_t func, + uint32_t *presDelay, uint8_t *numSubgroups, uint8_t *numBis, + struct bt_bap_codec *codec, struct iovec **caps, + struct iovec **meta); + unsigned int bt_bap_pac_register(struct bt_bap *bap, bt_bap_pac_func_t added, bt_bap_pac_func_t removed, void *user_data, bt_bap_destroy_func_t destroy); From patchwork Fri Aug 18 13:35:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu Florian Barbulescu X-Patchwork-Id: 715511 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1E26C71153 for ; Fri, 18 Aug 2023 13:37:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377187AbjHRNgm (ORCPT ); Fri, 18 Aug 2023 09:36:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377185AbjHRNgS (ORCPT ); Fri, 18 Aug 2023 09:36:18 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2075.outbound.protection.outlook.com [40.107.6.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DB68358D for ; Fri, 18 Aug 2023 06:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E7PVCP2fg3bBdsQC1AYqHLrhkX26xDrp1nDL3xNWCkXjUc2Egt16PQxfqxFvlcN6N+mXLRzs0ANMhxiPsPbfo2mSMNcsAxNeag3gsAxGXA9ojdM9w6sgGP7YVLTpx+mz0+spG4UA44hUljXMoed1n7P1JY1FlSef0MukFRhb87ly8wHud7FgdRMhSOh2VjoSZy7lSpf1tRTdI9XJehTzGB4Wy9m23zEdy8KcnOmQep0FjD45xcDx5l1p6VmjEB4gsBycqX0aHR4WXjyOA6+jF2vxZUkdnO1Pg2Cm7hQP+yhoZOoYrn9+7iMxrbHr6cabZzsrGJQDXCMhRxaYV0s9xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TILfo5unjE2BiM13NNXEh6/77Lr3MNVuJNdLn1Wc/IY=; b=BmvGNGwWsipTgPIJf5L1TBUvWRYUsBk65vQVl0+UizbAqpYd3mbu2Ez3R3E1RKooqzMAR6r7QvwNvkRABnj+eWi6jJz5igcxgVnskYm+aLnqbHotgffR8++MC79h4kTnd2hLq/08I5w0dpXkdalfZu+JiVgNfz22Hi9THohFO71oozABEtwFWma1ggWquz9bYfs9xDrQGrm6GR1BFGhuWa5oGShGzrANVxAmisE2LnmoESZh34DTLZWrU9d44QHtFNddcDjd4y/llNAgeOJB5zz0iXw84tHQ1Nsi20Gilk0b0kwR1b3ImJIuS2XWf33tW3tpY9dveq/2yDO+JC+XGA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TILfo5unjE2BiM13NNXEh6/77Lr3MNVuJNdLn1Wc/IY=; b=FmZRwhuG40IBQFc4U9gzTt+bj/Di3pwYoqwfgTRpHnwoQHjNulUScZ71P8k2u2AMUPojXRRObbteHr8k5SkN8PKXYJ6wjDcZSgIWzLbJ1hjaYlzpdh3YaTBEdXgtyFm+clDKYpIjDC8Yg3HvQO/KQ2gU+XiJ9xa1YvmeMJ8UlOc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5344.eurprd04.prod.outlook.com (2603:10a6:803:4b::31) by AS8PR04MB8263.eurprd04.prod.outlook.com (2603:10a6:20b:3f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Fri, 18 Aug 2023 13:36:15 +0000 Received: from VI1PR04MB5344.eurprd04.prod.outlook.com ([fe80::cf28:7578:cc46:bc2c]) by VI1PR04MB5344.eurprd04.prod.outlook.com ([fe80::cf28:7578:cc46:bc2c%5]) with mapi id 15.20.6678.031; Fri, 18 Aug 2023 13:36:15 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, iulia.tanasescu@nxp.com Subject: [PATCH v3 2/3] bap: For broadcast ep extract capabilities from BASE Date: Fri, 18 Aug 2023 16:35:51 +0300 Message-Id: <20230818133552.20673-3-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230818133552.20673-1-silviu.barbulescu@nxp.com> References: <20230818133552.20673-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AM0PR01CA0132.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::37) To VI1PR04MB5344.eurprd04.prod.outlook.com (2603:10a6:803:4b::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5344:EE_|AS8PR04MB8263:EE_ X-MS-Office365-Filtering-Correlation-Id: 980c9928-a896-49c4-2a15-08db9ff01878 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KqCOxxLYogLvfVQpGWd3ykvzik1wNm6wo2uPMtCQI3Ev7e/gr3IkFXievBGRPQfc1WJYkSSYTYOHgV7d4n9zqfLHktJTefxASsi1xl307W/G3ie3fw+Nn3Hqao4G0BuTuFFZZDLd6//ID1Snw5KhCnAUsO8NewVFh9uK8z77JbdDVsbIH0thNl1vZLqAhU3yNzRMItWRZO4KsVcOUVde38sJyBWy42JO7ErxP4fRhpi1c644UTP34Luzi/GVZ9HkZREW0Xg+og9O9Dm5tYmOEphwj3n8mADivFzQJePzmg7GUZLXmWFF2K2utbck6/cbRg+KcnvGOIzHlg8bZ+N/7b0t+h99qepq6e8HhoN6Sw78ehxWvBQQPVSQBQQclFT7iZ9iiNN1pLUNJCMMDw7eu9XtOHCWut7Dqk9fc3/pPRYhqFAa8AldSgu9uPDesG1Hhq19Rxf+W0N0qnV4IFw5pm/M80LnwaZ5T7LwAOjyBRxeL1LqkAnK0U5pCug/dQnXh4xUontiknq3Zi4exF9VbCXvpOzePk/G8XiHCywfAC2RSfofNe5//2tKWkpRfC7TbP9x6W8lHel88ih3zwbC/RsGk49sZVmtzyXXvAkzNffswlZIjeEy1Lm5bGeeXR76 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5344.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(366004)(39860400002)(376002)(346002)(396003)(1800799009)(186009)(451199024)(86362001)(36756003)(66476007)(66556008)(66946007)(316002)(6916009)(478600001)(41300700001)(38350700002)(38100700002)(6512007)(6486002)(6666004)(26005)(6506007)(52116002)(1076003)(2616005)(8676002)(5660300002)(8936002)(4326008)(2906002)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WOQT2dUdGdJY+8fpViVCl0SK+blaZ7i7AopO34zyIt0UgZLz6zLm37OhH/PwLWsxQyBW6cwGRXBLzfphxP/v9Q6RjLXGxRk13c+QOptDz7picmgSJNNZ+ccs+6r07v7fs76sPi4b59Yu7u7/pTWeC6L2k3zLfLXn1KQT+ePiRsd6Yyt52ngRZbVjqCyyT2kWlYCLIAiw2TBs4U/wBSUYYgz1CXDXNKiMJt3QmH5ZtaMcpdBv6JgTEnOOTBWDeRqOChaogHM8l3Cp5+7V6IWIedSShxB6ztBmF0e7MccfXdZSu1/u/7nrXUD+cnkp3nQoAsuF2ETkkenoHLY4m1kwKlKP1ExImYXPkRMp+/WIJt9x3S/KO9qUbo//Yn8rAE51XO+91DUcwuNAvTonLGO0+ih5XVEQz49wdqnuLjJSqALUMUsn2RNjG8S7qBZKPGcw1jYWWKWFN+2SbLU1vHEi3eWjhxI8MpJMu5AI5bsB3MvpLb0MuzUw5P4xN711kOJY7mHj2G8SaD8xshh79Dy5Di8I/2REjX7aKAhwpqId5p2O3HcHEk610mNTUHCB3p7xIxXzrVofwpf9ZLIDgs4lXWWoVEFHpZVd5cGg/5j/v02ODnKGNvgXYu64ySl3pIiyO8vOtXTu80xFAukXuvGSZzlLRy8gFpuU2D3GzFwlMWSlILpeJF8IMTWf+G8PgpIyFOA5LZ+CDq+T81Biu3YBfQMXv/3HsOv2DeLp897G8GDEUd4AnqORIrSlB8XoMMLaMM4kPp95kmfNaiHaI1M8f4B4gKptkN2i14ULp+19C9p+hSSGoJnv8isCXC491RuLYOU/5RBEC+YYo7ZWD9zvgJbsc5Uvgz32zcdJgHn239PXt9mvIBZ6VmaROEv8MqV8ZYxrjS51Kz0CkyUAAKRqDjsNt/tP+/Y/haZW8oIvgAC6A6ihoUFHhgGUptxfLdjI97GYJX9deS9o8EbzOEvcn42GI2ZRUvXdZnqEmPavGY0TxHAcT5E5zY2Btkv5gNIE3B9+zWUsPeWtxSIlPcbZR3K4uiaUbnO5+DUDItCtnvOzNPbxGbp+RP48AwxoeJgKoLLrj9tgLR8HdEHd49eVOZ7Ooxu1VvjdRizxov6nmp/bNtxJaUgvDA0fLZvwMq+iXamRKiJrlaCb6moh5sDrtWN+RKKPyAopJREhhU2iOIYXKhENdDvI0y67qZ1zyQqWrXXCVzNIp02mQ4o57W80o7ERe9Va6+e15J9cb5X1sndzltdEpArf7GsgEWr2lPUMHr0fqAOnPkzZSTd2KzPgBels7Z8qzCuIZ3DFhLZzj+wrBNbNPD839vovBo4RJGVeket9T6BF7GSNHYwvEWk0JNzTWxFJk7253CvGRrejutkprdPHtaY+mIjWjxoP5OjSg/5lTZ3HXDB60w8/0+5GjS+SJv7gEo7NGWCkVvRuEppaV/bPOUNeRDatDgMOHoAD91gB/POwUAAU1W2TmIv9aAKL5WqDgP1NEHgVr3GVW38Z2OUF6xj53g6QEWgo3D7dL5+SwiXkKJk+GT1Yf65jIe+SRa9JpogKMfh5ppAxWthY/279xVj7TOn6TRx9DPyL0Axa/xWcxCtBsRXV7gAP0A== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 980c9928-a896-49c4-2a15-08db9ff01878 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5344.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2023 13:36:15.6036 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bcMZDTzSbPUP8/ob6YdKSLoCbVPiPHlcZJ9uMq2D3RPJFfHAP4r3yf6cywDNvHkrZyQJrztdXo7LNxDeoAkILsZhy8pPXN/SErr/tXOw6PY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8263 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Claudia Draghicescu bap: For broadcast ep parse BASE to extract capabilities --- profiles/audio/bap.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index 8cbb238ef..de19023a9 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -74,6 +74,7 @@ struct bap_ep { struct bt_bap_qos qos; unsigned int id; DBusMessage *msg; + struct iovec *base; }; struct bap_data { @@ -272,7 +273,8 @@ static int parse_array(DBusMessageIter *iter, struct iovec **iov) } static int parse_properties(DBusMessageIter *props, struct iovec **caps, - struct iovec **metadata, struct bt_bap_qos *qos) + struct iovec **metadata, struct iovec **base, + struct bt_bap_qos *qos) { const char *key; struct bt_bap_io_qos io_qos; @@ -438,9 +440,20 @@ static int parse_properties(DBusMessageIter *props, struct iovec **caps, } if (broadcast) { + uint32_t presDelay; + uint8_t numSubgroups, numBis; + struct bt_bap_codec codec; + memcpy(&qos->bcast.io_qos, &io_qos, sizeof(io_qos)); qos->bcast.framing = framing; - + if (!base) + return 0; + if (!(*base)) + *base = new0(struct iovec, 1); + util_iov_memcpy(*base, (*caps)->iov_base, (*caps)->iov_len); + bap_parse_base((*caps)->iov_base, (*caps)->iov_len, bap_debug, + &presDelay, &numSubgroups, &numBis, &codec, + caps, NULL); } else { memcpy(&qos->ucast.io_qos, &io_qos, sizeof(io_qos)); qos->ucast.framing = framing; @@ -565,7 +578,8 @@ static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg, ep->qos.ucast.cis_id = BT_ISO_QOS_CIS_UNSET; } - if (parse_properties(&props, &ep->caps, &ep->metadata, &ep->qos) < 0) { + if (parse_properties(&props, &ep->caps, &ep->metadata, + &ep->base, &ep->qos) < 0) { DBG("Unable to parse properties"); return btd_error_invalid_args(msg); } @@ -1244,10 +1258,10 @@ static void bap_connect_io_broadcast(struct bap_data *data, struct bap_ep *ep, g_source_remove(ep->io_id); ep->io_id = 0; } - base.base_len = ep->caps->iov_len; + base.base_len = ep->base->iov_len; memset(base.base, 0, 248); - memcpy(base.base, ep->caps->iov_base, base.base_len); + memcpy(base.base, ep->base->iov_base, ep->base->iov_len); DBG("ep %p stream %p ", ep, stream); ba2str(btd_adapter_get_address(adapter), addr); From patchwork Fri Aug 18 13:35:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu Florian Barbulescu X-Patchwork-Id: 714766 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7993C71150 for ; Fri, 18 Aug 2023 13:37:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377189AbjHRNgn (ORCPT ); Fri, 18 Aug 2023 09:36:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377186AbjHRNgT (ORCPT ); Fri, 18 Aug 2023 09:36:19 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2075.outbound.protection.outlook.com [40.107.6.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6807D3589 for ; Fri, 18 Aug 2023 06:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JnP4W71qN+yJJrZMF1che956uY8WWg+u8GXNZGwspVcak+0I1D2roAk6gXZv9IL5FR47Mc5ugSPbongG+MZbfys1Xhc6CN8ryVDiGonz8EEhxJa6wItatEA6/gRyWiZ4t+HlOZ1xtg2IZVwYp4KaeqVfjOrM5SPunF2jUBK1Qpfyj4u8SMDDqYZMJsn6rU2GmSnnamt3WSPamygEmEJQwlHEy1sZEsbu+Iagqk3r7waULKOPqa4k/ZXIZZ+MV4N5Nj/I3abwDht+e0hpKVcHnnBCdt7czj0l4KTfgqTX6OD39g+AIt+/dnLpaaexGbPA35kD75nWEw90p72Bxk3MVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NXmtftrW/2VWGBk7IfB0xlBTGRWpm1Prk2Q9r0xxnhM=; b=GWWpImt6LUDASyvCje/WHIYiHhA4kxWtXzkbPdAVinsF5d4OkvpKgUkB6ZJ64HWvr6JRCYFfkLczT9Cws8gcpyOpBzDh0MkSrKS8D+XG7ML6M1THpcyQJlz8SHr3/bdf/JxalMSFQbtozgEnMC3CalGtEDyHYlHfCDnsOfR+8sRlvF61BIFTOr8w/RW5plbhV2nbxmPjri0WYYnNZecUJyQ/NcDioUvDR45wEzTusrHP+2sFn0mx8GJaVvVmofKBh4WOJHHJI/EaORvGBpPyE2bTEEJ414VRz00+cZSL6WqlrUj4bA+LFdT5FQ/WMY3KbDwabM3wZLTI0TImXcJ9eA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NXmtftrW/2VWGBk7IfB0xlBTGRWpm1Prk2Q9r0xxnhM=; b=bCDTTHhuOqCrg8z2eq/wH24S90k1XqHylS0SUR7li02eb11gijfHJvEqYai2dODlINUBSNj1vAK7R8paiFbjnmAxu1MpZyE41o7FJAlaOnyg2qLMxH4uHXn0JyOEkawlD5lj0BNYmXQtzSFAV9ywCR2RcOnTPYPugb8kEpXr25A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5344.eurprd04.prod.outlook.com (2603:10a6:803:4b::31) by AS8PR04MB8263.eurprd04.prod.outlook.com (2603:10a6:20b:3f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Fri, 18 Aug 2023 13:36:17 +0000 Received: from VI1PR04MB5344.eurprd04.prod.outlook.com ([fe80::cf28:7578:cc46:bc2c]) by VI1PR04MB5344.eurprd04.prod.outlook.com ([fe80::cf28:7578:cc46:bc2c%5]) with mapi id 15.20.6678.031; Fri, 18 Aug 2023 13:36:17 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, iulia.tanasescu@nxp.com Subject: [PATCH v3 3/3] client/player: Update Codec Config size in BASE Date: Fri, 18 Aug 2023 16:35:52 +0300 Message-Id: <20230818133552.20673-4-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230818133552.20673-1-silviu.barbulescu@nxp.com> References: <20230818133552.20673-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AM0PR01CA0132.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::37) To VI1PR04MB5344.eurprd04.prod.outlook.com (2603:10a6:803:4b::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5344:EE_|AS8PR04MB8263:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c9c6e2c-55b9-4f95-b837-08db9ff0196d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4JzFNiOTAv7KUtonpoGvalBG+Ko4GrT7a73iPs84jZLRzhZpGRj1paPjJV4XFF+jD37XYDaf0PNdjg9fqib1dXdMBlAHQ0rGVXkNMbF7EpRA1PZ0rHagzCgIp+0y1QShmpRuwmAMtsgF/IH7NU90d5C36BrkwnS0TkLld2YDkiAihHarrpK2Qv36Eq/+04LVul5swkrO/uwhRVI0h2PwA/SlKipE5Xvf8+CVczxCZjPq/k4oA4nj8I5enjrJDm0VwbV5kwgWB5211msOmj47TJWVun++fh3gK72nP7FoFYGoxgphifDAaKqcQuRWc6IMtHX3nHLd2wj2rpZ66g/iZE/N5BLo1Vtw/aQogVWAO0MqkZDbUhb74ZH00b0RSh524EjoMFxhO3Q88WI9+GBbJ9qEFYjqEIWIucCLXZy2hc53cfdmwSpDnsnhap2U7EKpDWdbU5Cn8Dun2M/C49NwF6CO1+Kc6xxZfWcOMbHuoy1m52xJ+GxWz+b0GzpRLx9PHdvgpXdfoBSW5DZ31Qcxdi84FsueoavteQPqJJCTJ1jBzLS+Es95utu+Vkfa7C/9XXIBiTZYhpfqs5BfVvNGlFEXhwVEOSF2Qi5RDEOvigZ+yDaFfkeafdnOZTUOWUcc X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5344.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(366004)(39860400002)(376002)(346002)(396003)(1800799009)(186009)(451199024)(86362001)(36756003)(66476007)(66556008)(66946007)(316002)(6916009)(478600001)(41300700001)(38350700002)(38100700002)(6512007)(6486002)(6666004)(26005)(6506007)(52116002)(1076003)(2616005)(15650500001)(8676002)(5660300002)(8936002)(4326008)(4744005)(2906002)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AOJVNx+uRDjXBLyxx/mKlFGZyncKbuqcLYV3elCKX3BbFzrbMSeOXZnoTAYSZBSV9A7/ITebWfdWAxkTRwAccdKKv6MwrucWzbNdBEM9d/9xzynkA9JN8HJWtYFijzTHimRqyhqld9v9ALNUDtiwXZJy5JxM1JVc3qcc56gfBLhVZO/Xuwp3rxy8r3nbKsYi7wrBOO8iTyW5469CNXLBOOs05m3ypZeoIEcHsQB2WuSKJZmLRv/K/Hnu/KjYdp9gyBRreDYFRjBz4baSXuM3Wfsc39og2S79MXxeY5fTzEXSyGulYHhylMUvnZ6qdJNQ7w2IVbjysyhmEPBttzCkJAHyjo/KCVntWdSyg1JkAHK0d9jVBW/EzCu+EDMZ7kw/vhvuFiUDSA/vmQyXZzWegg9wyjCMM2tzZ6tvGfdjBh1ZH/mkVLU4KtObZye8fiLhvMMfBs+XQH0XeNXp/19Djfz6KJWdRtsGXPLCSDwuiNxINhv6fcj2GJjTAOWmtXI02xgJA1aXIhG12wGnuVpJKIfPtr7ir7zZ7ch6/GST3Mjf7oiH4aLAu06cU0RhHbYnzBNzjfGDP1wNR2jAS55lhsg/6z4g+akGYRNHfauVdWDNTGsV+V6w/kabZydAzg7wFcztyY5IJFrehZjSYcx1DLKT6zHQkE+MkEsTjFGyWg4HAhQVt8vF6DAMfAQR0q+qcJTF1qqsevDW3BtV44HdRvxuAnOBgF65Jv1dMckup7NrdTgIguMEnmpJG1Z2lHxjqAbYvlewlRfoxy4GE3lXe2z87kklA7UMeUNsT9pM3mtpwaRF6DuFDjPCcBKSGJF9S25EPhePQuJ+4Z3cpoNc+rt6IbawxHw9I/FOReylWru+uxTlBSZQnLLj5eJz8c/z24uN5B9Dap331OjJWuGWMY/TgeLjhOxJGTSiRAxflVnReZlcNsuu21Vv9j51PJ+Q3gECTvDdeYkD+ZAsrCYPunckV7XaiXGdhr8w8zQ2T3eZ3kj5tByfEfQqo7IvFhfcDiDG0qv1GDqFshOouqyI8edKRIJJCnkA3AWmuGhaW1FROfWVyho6QsDl1MXS7rMde2ul3T2iwQHQm3oXVpm0p92LoHB7fpfQsvo+Q3t8+Rfr6KetX4xLxeZ2tEWJCbpNTjsRs4utrcEIlT3zKVxbgNy0fGsnXPxS3FMf401DT4RYD0h+EvDCNbFwm7w3f87EKvXNmImL87SFIt7FjMcUABXpjzY/2Y6pMJRyGsQHlkq+fmKkZ45vsU8qKBzh0B9ZIDhgp5JNtFzQx2f2rBV7T+gdDxbkUZ1H5edmdsQA37Lb3P8tx0meqK/Ty3dKgt+EYOuJsl4vJe4q9A3xeTNbxsEfZ6MaYfaTlJhQvjJf1yZ1DmlX5rVJpyTgGjYqFvdX7N1WVc0G464jxD+djPl6RNTErYlY6sFel2WzaeREJUTZYBC1rY72XakfNr0ULjmjWbFkpV2HWCAED3Lk2OUWxvhpHPETIyOVELFtFV2KU9N+QWDNky+pevNJkFuDpu9OiOkEFe2sFrPMuSpvsqncWjKj+/ObHAs+Q0G8pJNahWNLoGYja2t/wH4d+2D26mhmskW6Nv0Pgc+kEjNB7zgSkQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c9c6e2c-55b9-4f95-b837-08db9ff0196d X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5344.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2023 13:36:17.2304 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: skjpMedF+/sS+CQeFWnQaWfkniRtewJjoCzPs3vIqIurrvffsyAfqiyB07ksOPok+vsxHVMro/RU3xrJrjxTPjELG2PbabU173RddoVuuIo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8263 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org client/player: Update Codec Specific Configuration size from the base structure --- client/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/player.c b/client/player.c index 3611a8dfe..97ad4dbf5 100644 --- a/client/player.c +++ b/client/player.c @@ -111,7 +111,7 @@ static const uint8_t base_lc3_16_2_1[] = { 0x01, /* Number of Subgroups */ 0x01, /* Number of BIS */ 0x06, 0x00, 0x00, 0x00, 0x00, /* Code ID = LC3 (0x06) */ - 0x11, /* Codec Specific Configuration */ + 0x10, /* Codec Specific Configuration */ 0x02, 0x01, 0x03, /* 16 KHZ */ 0x02, 0x02, 0x01, /* 10 ms */ 0x05, 0x03, 0x01, 0x00, 0x00, 0x00, /* Front Left */