Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1958999lql; Wed, 13 Mar 2024 13:04:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPLLUFMunMorrAIt2ZL95oV1LJitLhB1okrwF2vEIfr2G3SgGjpEI8QdyabiDl7XTMkbVr9qm+babLoMi0j4hooojrIDTEA6QDyFCXdQ== X-Google-Smtp-Source: AGHT+IGoj4nmcEn/aWorIQuwzehVH3HgEBizHp/RmiXdnQSSSOsU1H4sSXkWidlvo9WT2HMDD0+A X-Received: by 2002:a05:6a20:3d02:b0:1a1:841a:33ef with SMTP id y2-20020a056a203d0200b001a1841a33efmr5134684pzi.3.1710360296318; Wed, 13 Mar 2024 13:04:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710360296; cv=pass; d=google.com; s=arc-20160816; b=L6S0GtVffOj895cS7IPdZM/gnOUQmF0IkmH3nMuGMnQ3rXN1DGQANpw8eUIAbkS4FJ OwD2DrQPFI28fQ5Co2EcUuWV1odYEKsRlXT7Di8Vz9ybXQiRvtXvir0OZhw+qCsTuKAe FlZy2T6N2WwjyhgkyuSdXK57K90ELHSHX8LJV9fkCGKZCmIyU7OcYlWL1d+F9KrPQajS PBM6Nub4phBHS0h1xxly2Bh5DGIqbbCoPjpqEYJ7DOxRmb6Nn9Rmd3sqQDD8aTQHEARQ VOYfuKHuOD8ZPxjbg9lt9ulRlfM096xWWRz69ic6TUqYPIJW7vAVrU1doY2xZJOMR0+i IY/w== 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=ADWakyR83jXSmbepdR/nrWlWfz0eQCHIH11wkHl1lPg=; fh=4cfHHvMRvxrr4lXvRqQ13xW+EMunW4MjA7lyDAf7cC4=; b=EL7/WvKUXYK2Tkx4WsKcOm2H+vBC6GPg8TCiZ9FyHTZLtuMS6GPVke0T5nV3EI9R2E xQkW4nIbLbUA8YbjzbJ/hmV07LGtM+Qzf2R6+NDEplkSik/wy1DZk8rxw5rY/3nFpiJs c4mwxJQE8isEl2yJLtD3r9YKmbiIsJfnwfd3DH+5PKce1dYnZMtCPKUp1WA722bdjuM+ AgQ6c60jSXHyK/So3v5wVSa+L4K9GCMIQ2GC43h4KgNzOGxmVwOFhXJq6J/99Z/QzC1G f+SLwgaUxZKTYGksVVXC/XCK2JVuGwPje6ZSPVGSTf+3IUUq2l/5U7TYttfpO51Tb5j5 M0ZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F7HjW5kY; 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-2504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e67-20020a636946000000b005dcbb6a2cccsi68618pgc.44.2024.03.13.13.04.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 13:04:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F7HjW5kY; 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-2504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2504-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DB45328A558 for ; Wed, 13 Mar 2024 20:04:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 858C84CB57; Wed, 13 Mar 2024 20:04:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F7HjW5kY" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 2FBCA4776A for ; Wed, 13 Mar 2024 20:04:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710360291; cv=none; b=qCeM73MteRmJ6mKv7iXg9Qujy0Xa/rSHtD0G/HIiIbQcNJQP2favB5ATIs8HtdSwkjF7UW34odWfpHwbmCe95uN3rLXKIoloK7F6DLQQkUOWXF8nGTKUGhg2G5PjvwzWTNz0jJTtxwdVCdVSScIHpM91HzHgrDrmoL2MoQ52NoA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710360291; c=relaxed/simple; bh=jmK8oZbN5UMNdLDYGlEt0IorIHhKXrhmN6tHox2cLqk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ETL0467zB5mOe6t7yeKcxd59Ghkef5d6+rj1xrK3a+Z86g1Fyaq8yN0khErlEKLrzR3md9Rjyg3GAJFWqQce5MT9Qhg69Jf0rDasXsAWaLitn5PziAAIVDmIfvcRDIuhjZFEbcTHyTqXjqLNouS6YUB5PNgZSjUnyBzGi8qf4zY= 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=F7HjW5kY; arc=none smtp.client-ip=209.85.208.174 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-f174.google.com with SMTP id 38308e7fff4ca-2d4515ec3aaso2437801fa.1 for ; Wed, 13 Mar 2024 13:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710360287; x=1710965087; 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=ADWakyR83jXSmbepdR/nrWlWfz0eQCHIH11wkHl1lPg=; b=F7HjW5kY4jdMwweYt2noCFgCtGuRfTN/bqNwr2ZfqWaRINT3risOQFHd/TOlF7wCNb axZg+i9F2QiGfEelW/bYMgS3EZo8ZoXa8ySXEiEWgjt+sgYjotquA4N07lVnJKWMGbVY z4gizOXh7ZC3tm3KFb266LiSF18c6qLk0uhM6MpzeF1Rxc1IlqyWz32M8U6c+/5UyxEU fvsIiWoqempCtVTR9POf02kS1Lg9ltgaPh27j+WxEOHmFpqMQ85WZDJmDvPF3z9P4elu 7AEeoAeORZj1IaFrLWdA9pZFjfLSjNI+AFzkB8pOuRMZUgizPXFxofOvutcZ9IyKv5Qp ufew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710360287; x=1710965087; 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=ADWakyR83jXSmbepdR/nrWlWfz0eQCHIH11wkHl1lPg=; b=egRxHdS/48AFbOEgD6q04WhlEL4BSQHP7em2mdS1ySe1y28EEFxwXHfrrBSZFCSru2 n8coiax1FtpHPjgekyRXTQjNYfd5VOfuJJSK0y3+Z1WhLpd+DcnhBPlqXeMBW7Y7bdDB yIQtv5hCZIR72b2moHj+KjFnmB4C1uGHKonZ1dOm8M6JlVpveXt8ABa8QiDdZotUwpfx gehm1dwuzzP0qkgPW+wCeAco++WyJNi9ImRfFFtURPdkwnR798OU2RHQUf2qSBNY57F1 vCQU2HzUNLPxvf0gUJNhA8Y7plOV0KwryFcwPg3GKDNQLjfQix+M3TDs4s5HPd2TM7wb UfKw== X-Gm-Message-State: AOJu0YxPy9LOMB3qNaY6fKmvN9X7p8OUMiVADUtrWiH19wQ7i9rUD69q QdMFpP4PE1icqrzzAS1OvONSlofAhrLt3hifJL9UGDT45UqGr6gYnJZ5EwU8NlRHRDnTZLrH4GM /O3Q4lY9zvhLNmLauBNamGx6szcs= X-Received: by 2002:a2e:984e:0:b0:2d4:6c19:67d5 with SMTP id e14-20020a2e984e000000b002d46c1967d5mr1193001ljj.18.1710360286854; Wed, 13 Mar 2024 13:04:46 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240313170300.40974-1-silviu.barbulescu@nxp.com> In-Reply-To: <20240313170300.40974-1-silviu.barbulescu@nxp.com> From: Luiz Augusto von Dentz Date: Wed, 13 Mar 2024 16:04:33 -0400 Message-ID: Subject: Re: [PATCH BlueZ v2 0/3] Broadcast source reconfiguration support To: Silviu Florian Barbulescu Cc: linux-bluetooth@vger.kernel.org, mihai-octavian.urzica@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, iulia.tanasescu@nxp.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Silviu, On Wed, Mar 13, 2024 at 1:03=E2=80=AFPM Silviu Florian Barbulescu wrote: > > This patch adds support for broadcast source to reconfigure a BIS. > endpoint.config command has a new prompt for broadcast source: > " This is a BIS Reconfiguration? (yes/no)" > Yes or y if a BIS reconfiguration is required > No or n if it is a new BIS configuration > "The BIS index is assigned in the order of the configuration > starting with 1" > "BIS Index (value):" a value representing the BIS index if this is a > BIS reconfiguration. > endpoint.register 00001852-0000-1000-8000-00805f9b34fb 0x06 > endpoint.config /org/bluez/hci0/pac_bcast0 /local/endpoint/ep0 48_4_1 > BIS Index for reconfiguration? (value(1-31)/no): 0 > [/local/endpoint/ep0] BIG (auto/value): 0 > [/local/endpoint/ep0] Enter channel location (value/no): 1 > [/local/endpoint/ep0] Enter Metadata (value/no): n > endpoint.config /org/bluez/hci0/pac_bcast0 /local/endpoint/ep0 48_4_1 > [/local/endpoint/ep0] BIS Index for reconfiguration? (value(1-31)/no): 1 > [/local/endpoint/ep0] BIG (auto/value): 0 > [/local/endpoint/ep0] Enter channel location (value/no): 2 > [/local/endpoint/ep0] Enter Metadata (value/no): n > transport.show /org/bluez/hci0/pac_bcast0/fd0 to view the update > Transport /org/bluez/hci0/pac_bcast0/fd0 > > Configuration.Location: 0x00000002 > Configuration.Location: Front Right (0x00000002) > > > Silviu Florian Barbulescu (3): > player: Add reconfiguration prompt for broadcast source > transport: Add support to update the transport configuration > bap: Broadcast source reconfiguration support added > > client/player.c | 33 ++++++++++++++++- > profiles/audio/bap.c | 76 ++++++++++++++++++++++++++++++++++++++ > profiles/audio/transport.c | 27 +++++++++++++- > profiles/audio/transport.h | 1 + > src/shared/bap.c | 11 +++++- > 5 files changed, 144 insertions(+), 4 deletions(-) > > > base-commit: c9dddb642663b8bafe8998fef6132a2bb36d609d > -- > 2.39.2 Something's not quite right, although it seems it does update the configuration at D-Bus level: transport.show /org/bluez/hci0/pac_bcast0/fd0 Transport /org/bluez/hci0/pac_bcast0/fd0 UUID: 00001852-0000-1000-8000-00805f9b34fb Codec: 0x06 (6) Configuration.#0: len 0x02 type 0x01 Configuration.Sampling Frequency: 48 Khz (0x08) Configuration.#1: len 0x02 type 0x02 Configuration.Frame Duration: 10 ms (0x01) Configuration.#2: len 0x03 type 0x04 Configuration.Frame Length: 120 (0x0078) Configuration.#3: len 0x05 type 0x03 Configuration.Location: 0x00000001 Configuration.Location: Front Left (0x00000001) Device: /org/bluez/hci0 State: active Endpoint: /org/bluez/hci0/pac_bcast0 QoS.BIG: 0x00 (0) QoS.BIS: 0x01 (1) QoS.SyncFactor: 0x01 (1) QoS.Packing: 0x00 (0) QoS.Framing: 0x00 (0) QoS.BCode: 01 02 68 05 53 f1 41 5a a2 65 bb af c6 ea 03 b8 ..h.S.AZ.e...... QoS.Options: 0x00 (0) QoS.Skip: 0x0000 (0) QoS.SyncTimeout: 0x07d0 (2000) QoS.SyncType: 0x00 (0) QoS.MSE: 0x00 (0) QoS.Timeout: 0x07d0 (2000) QoS.Interval: 0x00002710 (10000) QoS.Latency: 0x0014 (20) QoS.SDU: 0x0078 (120) QoS.PHY: 0x02 (2) QoS.Retransmissions: 0x04 (4) Location: 0x00000000 (0) It doesn't do that at HCI level so it still uses the old configuration for some reason: < HCI Command: LE Set Periodic Advertising Data (0x08|0x003f) plen 41 #2839 [hci2] 16:00:16.948281 Handle: 1 Operation: Complete ext advertising data (0x03) Data length: 0x26 Service Data: Basic Audio Announcement (0x1851) Presetation Delay: 40000 Number of Subgroups: 1 Subgroup #0: Number of BIS(s): 1 Codec: LC3 (0x06) Codec Specific Configuration: #0: len 0x02 type 0x01 Codec Specific Configuration: Sampling Frequency: 16 Khz (0x03) Codec Specific Configuration: #1: len 0x02 type 0x02 Codec Specific Configuration: Frame Duration: 10 ms (0x01) Codec Specific Configuration: #2: len 0x03 type 0x04 Codec Specific Configuration: Frame Length: 40 (0x0028) Codec Specific Configuration: #3: len 0x05 type 0x03 Codec Specific Configuration: Location: 0x00000003 Codec Specific Configuration: Location: Front Left (0x00000001) Codec Specific Configuration: Location: Front Right (0x00000002= ) Metadata: #0: len 0x03 type 0x02 Metadata: Context: 0x0004 Metadata: Context Media (0x0004) BIS #0: Index: 1 Perhaps this is a kernel bug though, but it needs to be fixed anyway. --=20 Luiz Augusto von Dentz