Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp478745rdb; Thu, 8 Feb 2024 11:11:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEK0p+SvRaVkW9V1C5XYLeub9DimnfdFWs0MuedPMa5tMWkSOWPMzFdPmzRIpel7MuxBFQJ X-Received: by 2002:a05:6870:724a:b0:214:b6dd:39bf with SMTP id y10-20020a056870724a00b00214b6dd39bfmr433726oaf.36.1707419506496; Thu, 08 Feb 2024 11:11:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707419506; cv=pass; d=google.com; s=arc-20160816; b=j/EpcBCirKrdLhnHxpZz/ggPvgegJrPFujIvaYx7JMZkcFmsX7dxR36zSxX09eWjYg s53FzizjB/IZsqq1x+3d4AGs5YKVp3CsjZeCw9gwi47H84uMK+p9nBqHah2ZHNeABunf o/s4yX1azzrAsNN2df9E9dN4fam/DMQsGSi6kKozXe43fJI949sR/hXh2UTTpAk8VR4P ioqhEyB3YSt8TM2V0RBRkcxtepwN+/lsdD58Zthr+qqSmNzicupbMQC1QtLv3pUA4TMc ZY6l2c6jpL7gDFppBZ0j9wHOyB0n+Ra3zgfTm8gVnYeJNaB0Ls2/23kvBd9qqf5OwU28 xG+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:message-id:to:from:date :dkim-signature; bh=i0EU6ea/mA5HKej1GrKG8IawYqsuEEsRFkcRScv4kPA=; fh=87ZT4mdQ3xb8aqgINz+6IOb0bs/xlSGU7EiDl7YSs8E=; b=qGeIbvWU0IS3XJeKTykVAaCJjwv6IgyrjABOYUUY6pdGk6UXMkH0mOH5dPAJ5iXKiX xhLI9iCOkaxJzZsp7Zo7LgxI61lo2qeFYx/l2y/70HbTPKfhUplZdz8+vX/hXVYaZ+N7 3cvpBcJiYHvfmP+Z8FkMr17LD5XmpwAn0aZW2hH1qhkRK5HB80dFAx+xjdwpjQGJ605J FkPixh4oGe74pn5gjc5Ez8XeQMtLwnVnWyTTUZBsBMifZtJY8Gh3tBOU47436qtLzGxW eDUl+eFHKkR9tnGYKxj8CbDsT3vWhPEx6Q5dYy5o5QEZAzTFkS/BAc6QxcRYs3d2lHxN uusw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@github.com header.s=pf2023 header.b=YVXmwJRj; arc=pass (i=1 spf=pass spfdomain=github.com dkim=pass dkdomain=github.com dmarc=pass fromdomain=github.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=github.com X-Forwarded-Encrypted: i=2; AJvYcCU2QH0hXT/wXCfXGByxRbvDKwrBqx+v73zMTlTnqTxCtyIomHT43ZOo34DgomKWt54OcGNkhBbtjfRg2dCNo7oo3nf6P8Ndj45blQit7Q== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 7-20020a05621420e700b0068c5dd740a1si176708qvk.358.2024.02.08.11.11.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 11:11:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@github.com header.s=pf2023 header.b=YVXmwJRj; arc=pass (i=1 spf=pass spfdomain=github.com dkim=pass dkdomain=github.com dmarc=pass fromdomain=github.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=github.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F14E1C243F7 for ; Thu, 8 Feb 2024 19:11:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60E8636113; Thu, 8 Feb 2024 19:11:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=github.com header.i=@github.com header.b="YVXmwJRj" X-Original-To: linux-bluetooth@vger.kernel.org Received: from out-18.smtp.github.com (out-18.smtp.github.com [192.30.252.201]) (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 71F2633CCF for ; Thu, 8 Feb 2024 19:11:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.30.252.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707419499; cv=none; b=kOboI5GjkRDg4LCXZvzz5FwBTPav4HgkVAiXtV+ycxhzlJow/uYYAdFaKDJr6MEq8OFOcowP87Sc4Hyj/2oPbEwS+K4s1CUEzshm+Yh6IrHP4mno5C+XNCVju57IEPPaJ+6/l/vws41Srv/jMMeV0RUj2Sdo1zE+Q+UIKVWq1YE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707419499; c=relaxed/simple; bh=oFW6PJlgvuXjKlx57tgjim+K9ZvcWBDuoXq7sitBzXg=; h=Date:From:To:Message-ID:Subject:Mime-Version:Content-Type; b=PjNwsuge8z3eWpj+5+d2X1jIyyE4RjYzac+SkmE672Twr3TSUfHTIkI6ZjcFwxDTsfZR4D8Y4p/loNmtpzGJtcWzRgjRyFyFS7m62HHQbDPTFPaOCXc7JV5Spap0cZxBbK4GCsCpnxF5+pH1QQ/SfVq4Nr518mDm3iWnfgCq+nk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=github.com; spf=pass smtp.mailfrom=github.com; dkim=pass (1024-bit key) header.d=github.com header.i=@github.com header.b=YVXmwJRj; arc=none smtp.client-ip=192.30.252.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=github.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=github.com Received: from github.com (hubbernetes-node-b113fab.va3-iad.github.net [10.48.155.30]) by smtp.github.com (Postfix) with ESMTPA id 64991E1267 for ; Thu, 8 Feb 2024 11:11:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2023; t=1707419497; bh=i0EU6ea/mA5HKej1GrKG8IawYqsuEEsRFkcRScv4kPA=; h=Date:From:To:Subject:From; b=YVXmwJRjWQiapQVc12MPNKC0x+t2k+8NP2XSySFjtEh/7rgfmmu0HYxfKh3nnVFvH Q1qsVqDln6ddJ3pMNmiZKA6DKWamhIh/ycPSg373fMYLfdLzY7aFMv6gGaaYsuLXnR Ke3CrVW1IYK9LKp5AxZuNb+hAAg71qP8nxs7DpiA= Date: Thu, 08 Feb 2024 11:11:37 -0800 From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Message-ID: Subject: [bluez/bluez] 747092: shared/bap: Rework stream procedures Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GitHub-Recipient-Address: linux-bluetooth@vger.kernel.org X-Auto-Response-Suppress: All Branch: refs/heads/master Home: https://github.com/bluez/bluez Commit: 74709286b6b4e3252668d80a0219b438cb4b0e08 https://github.com/bluez/bluez/commit/74709286b6b4e3252668d80a0219b438cb4b0e08 Author: Luiz Augusto von Dentz Date: 2024-02-08 (Thu, 08 Feb 2024) Changed paths: M src/shared/bap.c Log Message: ----------- shared/bap: Rework stream procedures This rework stream procedures to avoid having to check stream types everytime the procedure is invoked, instead this creates a operation abstraction which is assign at stream creation. Commit: 8e76c9140de1211588a72bf080cc45299256ce83 https://github.com/bluez/bluez/commit/8e76c9140de1211588a72bf080cc45299256ce83 Author: Luiz Augusto von Dentz Date: 2024-02-08 (Thu, 08 Feb 2024) Changed paths: M src/shared/bap.c Log Message: ----------- shared/bap: Add .set_state to bt_bap_stream_ops This enables different code paths for each stream type e.g unicast vs broadcast. Commit: 6dafe901a2bae49048968872e0854cc47cfec45b https://github.com/bluez/bluez/commit/6dafe901a2bae49048968872e0854cc47cfec45b Author: Luiz Augusto von Dentz Date: 2024-02-08 (Thu, 08 Feb 2024) Changed paths: M src/shared/bap.c Log Message: ----------- shared/bap: Make bt_bap_ref_safe check if the instance is attached This makes bt_bap_ref_safe check that bap instance is part of sessions list which means it is attached/valid. Commit: c1851987ca2c6e41d1e0e166e959b754e369c254 https://github.com/bluez/bluez/commit/c1851987ca2c6e41d1e0e166e959b754e369c254 Author: Luiz Augusto von Dentz Date: 2024-02-08 (Thu, 08 Feb 2024) Changed paths: M src/shared/bap.c Log Message: ----------- shared/bap: Fix crash due to selecting ucast ops for bcast stream The stream ops is based on PAC type not the stream type. Compare: https://github.com/bluez/bluez/compare/5135613ce057...c1851987ca2c