Message ID | 20241008080126.48703-5-iulia.tanasescu@nxp.com |
---|---|
State | New |
Headers | show
Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2054.outbound.protection.outlook.com [40.107.105.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 008541E9095 for <linux-bluetooth@vger.kernel.org>; Tue, 8 Oct 2024 08:02:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728374536; cv=fail; b=BbUxBoC9EVcClGs3sQ0inonY87vkI9Y7Pn7RhQQZGrRbvcVSizdII3vVQ4l5b617liUWM9JX4yuE9VDm3wx/CCzlZWETAh4NUuTVINRmviZvH4YsD9dNgZ6hZdk2rvYm2wVjasjtOsJ/DS7kcDc5/Kw4BPXhx8JhLjWlTRVZ9Is= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728374536; c=relaxed/simple; bh=yn1+bVwijqdXkvA7PQdr2/w/GO23aWkXnFp1RcLlNS4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=mgTltpmAQeMmRWTsvoWbmu40v+jV65/AUVbN/cm02tBgxxul/tVH9eM8Nlb3vvcxlgTag7wdsosMAC/688X6KOFINMgUst7ZI/JPoEcT4zn/hPo2YWoJoS6sw1SMRf6j7UNqYZdTSu5JkgH+FfxayO147S6cLZjP+e5Aio5XZ/E= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=njXXEKF/; arc=fail smtp.client-ip=40.107.105.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="njXXEKF/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=L90zVfYhTW4ZWC3lV5g7LcqlYSgFZZ4mu4fMfK9ejLCtXNRM7XOiLkYyGqtpD9GomxXv4/UsXXqnqzSdGwtXuyORTagiwlYmZ80rDKQrig7vll2zB+Gc9uGli0eeWVigaB7Ykd0ZRmrk8kRPTEy/hldrvyUvl1+ld/ZVKTCvqUdv+A+FK6pct0SvX4G3gt2+3yPRbkhmKCzgkKewfHMHgGe3YbQE8URB2d01lp+dN6DiyXxKU7xUxnrReEK4qDFDAoQ067qJ2KO62pMK8wYW0jJD35qwnhInz0DvhqaGUL65w6J+lMs7fu1UU63yImxl2dFwX41mjkU68vadlaWsBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=b3IysLvBjs9DRlc/1LbaYlRm/dPUSXztSNXbg7c7HI8=; b=XIPFdCNQ+jqkKrzMq1FK7ew1CeuHoo/5Z9Dd5LFLQIviJg3eSUQjTMoURcof6Y9QRs1faCJUiBb/7J2TFtDlzXIZsjY5bC7khp5+/tyyZIsVv5VPD+ubx8o7GRmo8g6DPR/rzG4SVBJejQmhL40xihG5fnl1QjT7H2en+6pSBAFWYEJ/kQakZObl5kKrwhQTk2zohMrQ5jZRBAwJpaAfIbKhaPZ+fXY0QrDsa/hNNfQRLN6+LZQT9p5vgvvrzNrERoOPC4LxK/wKF4EXmJySQsqb9hHsgyGQIHw9VbN5QJ3a71RGS4JAH96hAPVu/4fxwaJ0ycuFON1WxaMPWGkHAw== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b3IysLvBjs9DRlc/1LbaYlRm/dPUSXztSNXbg7c7HI8=; b=njXXEKF/jIj4pkpnqxR9n/nyN4DC0oZUmPQvhB8pgpDgAm4JMsmfv+uvgWO4rboczENi2Sa5yNwEK5nQrZHzOcaEYzyR6HwnWiOtb61I1rpXo4EzLvo9gj6WZHpLihK3SicYyY+bvtTyfTYHd1ZIe2YFel5TKuqK2LZ2XKaYmbukTTGDc2wvzP2IlW+7Ah8IFJQa1wI5SHdOpwES9hVq/2O1r+DR11BAdjc8HfxZET7mtLkLoWyRg2x/pGvufqYYh2QiDtCFlITtcatjPGLXqUhwcCpH2Pb3AD35IICI3f5UQWBvrfwzPMgCQh3bDZaagtfYjxTiexOEOniQFrjQBw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by PA4PR04MB9343.eurprd04.prod.outlook.com (2603:10a6:102:2a7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.20; Tue, 8 Oct 2024 08:01:58 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::5e22:869c:33c:9654]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::5e22:869c:33c:9654%4]) with mapi id 15.20.8026.020; Tue, 8 Oct 2024 08:01:58 +0000 From: Iulia Tanasescu <iulia.tanasescu@nxp.com> To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Iulia Tanasescu <iulia.tanasescu@nxp.com> Subject: [PATCH BlueZ 4/7] shared/bass: Call cp handler for the Set Broadcast Code op Date: Tue, 8 Oct 2024 11:01:23 +0300 Message-ID: <20241008080126.48703-5-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008080126.48703-1-iulia.tanasescu@nxp.com> References: <20241008080126.48703-1-iulia.tanasescu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM0PR05CA0087.eurprd05.prod.outlook.com (2603:10a6:208:136::27) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: <linux-bluetooth.vger.kernel.org> List-Subscribe: <mailto:linux-bluetooth+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-bluetooth+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|PA4PR04MB9343:EE_ X-MS-Office365-Filtering-Correlation-Id: 14a4329b-9805-4d30-5004-08dce76f7bc4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: bhNPKfCzDRU6ZRn9T1HYpkiwVTu0xWMUGL4DQZ5t/jqOXGocu4XJt/F+4n9EP9uanVx9zSA2zqban5PHn93kNMNzrqKSKuPoPC+2/8IkNg5XcE9HoGO4s+ULawUInB5kwTqJpvzyv0uh6zZ+oq4DbzfgcFf872BdNkZhRASa7aFGoVDmobTa8NbhnyBF4L3lJ7fLDZDUVo1aQMsWDVzyO6tGyGMsgenriTZS/azRAG5Aj69aISZoqpHfhs+E9trN8nP8uyxcq7YJT+uuNoUiBu3FF58KwsIS/a1T+3kD+cYEj+OUA4Js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255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8898.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bD+eEVuDhZjKMvLscyKFY61oJeSO//vQbQflTFTvwy88JmeB2EtKISH08G8z4JyS/c8hcSuXXVTm8p9iEUtWRB4+HS4hTV2lyDvHXQr83lf4XGt5HxZeGW8pOGbOofdojyxzvK+pfLqQHntAZpd2E9Uo/RBxqRoZUpDZV+WDqHqZFOXRKBPXqLDeTtUq6IrlpSlrW0aeQMXURqSEJ4neqJHSJ58y64hOKwTZdQrvmBBMKMXkyRso2u+PsWViZ729BSj1QkA/+u25qMM8a0wP97Fsy9AiMBGI7Ep9vtNNLKGmiZ0YpVfR4oVk95TkleYrHp6N3nLLgG24FN6pcyDrY3noeQmuGFpeJ8+ntirzmOLdRdnTLlfBTmEhHOWTaP9W3HQOoG5qiRt2p/TeUwuuIq8pWJ7xykYcPetkAWMqhQeMDBzAZOQ/L/4o9Ke0meXtDxL4lqeLlEPLeOdJhIdvFHTBbce5C7e7t1aCqZASY/WtruCKgkgHXDcl2Lpx7x5dmfw/pAFHm/NuWSCJU8GRPa/v1MwWcR0M72tZjn1eFjtvLHxSJaoQ2xkBTQDQgvNQaXjPtVXHEhaInB5ZAC+tAk0pbqqa106JNFj+vH3sydVsjdNqaxboiYYcie/FiNjoFS72qRpaT5RGol5BZI97JPzwW5Yic9ndZNnWInbEmRTyojLVJDG//J/86pSjAliYa3RisMdo/3Fx1fX4QpZUpZ19MUzixSJtrp7EQTOVDcNnzpHbqdYQU6KKB1cviJvToxAvB8atawXH45jNPjcPgkvpbPApdiHTL863jWZg8r/YqCgVZPxphrlLZj0Xl7vinOzww0LUIxdDLz4mRcDwsJ0Z7Reb/AeypJ/62kkwpfws6QlcQ1WDuswXQAPGovUdoK/EGRvc+/UMNmqJrOT+bCjDi/vXALFY/WyTcva0p2tKEBUZGYtsX98V1FYnUTy06yqw06KcsptzNRBvA3/J1Qp/kZE11eMxkKQ9k0uviclA5R4WZQjFAVlP+r184jrpZSSNbqlFaWJVN0AmyO9RU3jk21IMxhkG2qRC2G+Dp7yubhR7fpLSAPxFwKejYKwcGfZUt2pV+B7NAiVgtEyQSr/s6BxaKGUOW5AD4qfkE0sBhLXJBzomcDivobMlr5xjMXndyqGGBTyclnSQDYjQW7O2qMmR3a+9eovPoeaBrI10/DJFl9jAVIDLrdU4FKcoN8ww5jtd2B52ipQejVWE/612ImDSeaufOseFjBHQhwO8234tJcFzXBKtDmxApxIhsd9mnsEzU5rRcDbN8cY9yF1wzXo21flPvF5Ua8kFhTYe5zfaEKw1BdnBa2WEHDTVeTUvGDMandlO2YhN6npvH1DMB4pm4R9xVfypsY/PMg0jjUjDUzn6G28FLUgDiuYnmL6JHSOoDTbxeQO3Dzzl8bAMED0PWnMxzX0k30+au9JQleZEU41yIe8vP1Qp6D0tesbYP0GXhxOLuQWglMsaYJXouP+j9q28bJhHffa3dSPHzt1p303cfqnywiPhBSsqQfi50iBzAUwhGhCybpnLBqHP506O1ZgwxYBQxDDMYCrJ9Dv1V7cmBcX0dlKdmG80oW6KAh9F9FJ5za2SIarJNw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 14a4329b-9805-4d30-5004-08dce76f7bc4 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2024 08:01:58.4695 (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: n33I6O5uEfcFDE8QiDRDOnys4QJcsVnnbX6c9chvuL6NtCji+vLE4EyhMJgGgXUWTx3QFiUUGCA2QzaaQTIgfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9343 |
Series |
Add Scan Delegator support for Set Broadcast Code op
|
expand
|
diff --git a/src/shared/bass.c b/src/shared/bass.c index 9ee13bf4a..6efacb2da 100644 --- a/src/shared/bass.c +++ b/src/shared/bass.c @@ -944,6 +944,8 @@ static void bass_handle_set_bcast_code_op(struct bt_bass *bass, struct bt_bass_set_bcast_code_params *params; struct bt_bcast_src *bcast_src; struct iovec *notif; + const struct queue_entry *entry; + int ret; /* Get Set Broadcast Code command parameters */ params = util_iov_pull_mem(iov, sizeof(*params)); @@ -978,7 +980,19 @@ static void bass_handle_set_bcast_code_op(struct bt_bass *bass, return; } - /* TODO: Call BASS plugin callback to sync with required BIS */ + for (entry = queue_get_entries(bass->cp_handlers); entry; + entry = entry->next) { + struct bt_bass_cp_handler *cb = entry->data; + + if (cb->handler) { + ret = cb->handler(bcast_src, + BT_BASS_SET_BCAST_CODE, + params, cb->data); + if (ret) + DBG(bass, "Unable to handle Set " + "Broadcast Code operation"); + } + } } #define BASS_OP(_str, _op, _size, _func) \