Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1220186rdb; Fri, 9 Feb 2024 14:24:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmOI9n7HgIpyKK3QdYHc94k376E44fXmTaeMtTb6/BIGbodIjtYuJWknbEhf+Dpn1piTc9 X-Received: by 2002:a0c:f5c2:0:b0:68c:c841:ac29 with SMTP id q2-20020a0cf5c2000000b0068cc841ac29mr472575qvm.48.1707517439769; Fri, 09 Feb 2024 14:23:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707517439; cv=pass; d=google.com; s=arc-20160816; b=JR16X8ubz3wG8qwbL3+Wkazno8bIyDQLutTcI9Co8TGAQooe1607MITjBWvKvGKuBi 2LByW8ywFXcWqG4H7iQ/kOBKTZY3WnISmpdkwkupCkINQcawgb+wysiFWdxf0Pvn947n bBNZgBfNC747ow/+e3uqLnAQf3osBCMwfgd1ACLe0DBWrUjM5Jgofbbea7SxEfxgkPvP loGV9Lc8WoCGsAxX0hzGAu7+MRZ8BB1FqVbHmrwXqGQYHLq1DJgnrwYI6sb034+0CnJY Ab1fHisgkQVoFy2/MCd+3+nXFz0hm8CipdBSNv3TWB47EUDYzPfkxGCNOm4dPvfbrD0x mQ3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=rL7uMW0JupjowTRinTzPcx6eUzpFh2dWhEKb/dvfCO0=; fh=EslFLO2b6vEx5hn0H+KgYZnvDbFeQeD4PrkKgOd0x34=; b=PsRtIlICVeFZw5JqaO6Rlb2HfK+aZb4VxNXatw4CHuu5h8KtOZOpyjaUfVIWSumsEU +ypD8Yy3g9OWosaIBEHwN7qFSANUJESpaDnWGGECRxWdAJRoEwgtrWeicTtSIYVHSZGr 1eb68IraFT4fUlDtwBIXIx3sUFs9sc885VM1sC9RE4OC92o164/U6tXKnCXEyRVhpUy3 +eM3V7zw5l/Rpe6pyYPRKsswBQbqKf7wshgZnr19k3GaZTSX0ED/o3JOIdgMA9UvW0a2 p7KVajS9YOuK/KNU8r9zsMhD5DWouAOsXJ2Zp0GSaF39E7KPDoazWYht+mJb92xDUfy9 iA0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=A+f85r+n; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCXDC+MDSf3FelTsObEUG0Z1vGR4Sw/60Mf2SRwiU47P/Qj5k19B7vxvFu5BfeI9RAsuc+bcKPzN0dAV6E4IXp5IxlcwHa97j3C8KszbHg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m8-20020a0562141bc800b0068ca87d31f1si3079752qvc.592.2024.02.09.14.23.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 14:23:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1732-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=@gmail.com header.s=20230601 header.b=A+f85r+n; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 819191C220EA for ; Fri, 9 Feb 2024 22:23:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94B0E364DB; Fri, 9 Feb 2024 22:23:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A+f85r+n" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54A463839A for ; Fri, 9 Feb 2024 22:23:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707517383; cv=none; b=Kwicph4UZG+tjGvtsArBIhVjdiSHCgyxyTFEnJdnVxMvFX1Is5SQTm5EtlEITn7smvoHS3A+Gx3/TnXwZLLCq/8ngqma1+hFy2hkT5KDTCsM/VliAB4qhGJ24qD8zy1QmEbMeXtkGlFzCj8AY/9T0Edj7+1EW3pFmzLdrZcPiDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707517383; c=relaxed/simple; bh=lpNB94J602Nnl1tpe3dkaRdI6tPvhBeH9uH4L1othJc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=L7H9pJ09RA4fxlOrGnsM/xd9BAMqf/0sOJ9ZQYP2orJh+YrYvahjnn2LultCyhc4VQCjm8sD0FXSk8oazSPZBM9qVeGCUpBRt7JQwr1aKFuxCoc4pgGHiUtsB+15G7n0H0b1/fbLiY+u1I4WI8dFoeGeuHGGJjQ40ORH5h1/bcM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=A+f85r+n; arc=none smtp.client-ip=209.85.208.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2d073b54359so19075281fa.0 for ; Fri, 09 Feb 2024 14:23:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707517379; x=1708122179; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rL7uMW0JupjowTRinTzPcx6eUzpFh2dWhEKb/dvfCO0=; b=A+f85r+nzctGu2I1+lO/vnuxYj+V3FBc/JUco1x1ub3OKPJtH5TeoEHKxxh3ttfAst d1etZ/NyZO4F4MN8yDM3ZwzYLkOjjoJ4qC2XSE4ajz247G9mltK/PFD2EamAvpZ2khr3 VAbgi6a0kgEwfdlhvAhTxrTadzXhX+AQk4nrhnEZZ8A87yhxirL7uq2HLSWTMO6AEXrQ YdL97rmqBFTYLfoGBMQjsjb/rp4ltEhNnIktD6cK4gV9SCdGHGLebLyzUrG7QzVXMziq +5pM9hRKyVe7yYf5Fc5UHGkChOczpigBmZw4aTxvZMg/WbfelcTKS18Ug3J0Jq3fM/VB 6Yww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707517379; x=1708122179; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rL7uMW0JupjowTRinTzPcx6eUzpFh2dWhEKb/dvfCO0=; b=DNFEH7hp0BFfew3aDhch4I8w4cAQea2tMV2Xif8nRfyD2qpcmVU8mEt68hdICoDOed xFd5gpF6fE+Sq2Ek3XIJs6bKkan1J0r4ihjFcnfR1lIqR4WxqPb79kbQzQPogYwpvKgL ampwTVgugRW04o66DuSCCZaCqv3lYLF++TiIRNdTrFvHAvtTULG3I2/wi3hBOMUAXUp1 ef094YiL5FXTzw5KQ0uBj+IRZqZekTBGh2blyvjZgJjQiUqiIRjjRuKpHFVZeGLsnx+g yljwlaT1MCyvzV1Gn4gNVGzNCQvf1I53hHfUR20TcvD13D7DCol0NYiUK6yzx4lqt/tH IJNA== X-Gm-Message-State: AOJu0Yz7Pim3/HCN6wYOVJjPiEDsa4ocGCJbafmmwiSJvOOWtpiVXM13 puNnI2RE1eJnP1krj/DBPqoTNssPTVZFR+KqjI/CzeOwXs8uXl+EKWTaPkBSIypApkDPg9JMlRu dWbHfWrE+XCmxaSht5RETiQPw/b0= X-Received: by 2002:a2e:86ca:0:b0:2d0:9322:8d0f with SMTP id n10-20020a2e86ca000000b002d093228d0fmr176504ljj.26.1707517378792; Fri, 09 Feb 2024 14:22:58 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240209164630.92208-1-andrei.istodorescu@nxp.com> <20240209164630.92208-7-andrei.istodorescu@nxp.com> In-Reply-To: <20240209164630.92208-7-andrei.istodorescu@nxp.com> From: Luiz Augusto von Dentz Date: Fri, 9 Feb 2024 17:22:45 -0500 Message-ID: Subject: Re: [PATCH BlueZ v2 6/6] shared/bap: Remove stream double configuration To: Andrei Istodorescu Cc: linux-bluetooth@vger.kernel.org, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, iulia.tanasescu@nxp.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Andrei, On Fri, Feb 9, 2024 at 11:46=E2=80=AFAM Andrei Istodorescu wrote: > > The stream configuration is done in bt_bap_stream_set_user_data. > This will be cleaned in a later patch. Hmm, I rather do the stream config with bt_bap_stream_config, bt_bap_stream_set_user_data shall not attempt to change the stream state, actually that might be why there are some warnings with bcast since it no longer protecting the bap reference which is something Ive recently introduced while introducing bt_bap_stream_ops. > --- > src/shared/bap.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/src/shared/bap.c b/src/shared/bap.c > index b88fc60842a3..133711e99d71 100644 > --- a/src/shared/bap.c > +++ b/src/shared/bap.c > @@ -1677,12 +1677,6 @@ static unsigned int bap_bcast_config(struct bt_bap= _stream *stream, > bt_bap_stream_func_t func, void *use= r_data) > { > stream->qos =3D *qos; > - if (stream->lpac->type =3D=3D BT_BAP_BCAST_SINK) { > - if (data) > - stream_config(stream, data, NULL); > - stream_set_state(stream, BT_BAP_STREAM_STATE_CONFIG); > - } > - > return 1; > } > > -- > 2.40.1 > --=20 Luiz Augusto von Dentz