linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ v4 0/5] Add support for multiple BISes on the bcast source
@ 2024-02-23 16:48 Silviu Florian Barbulescu
  2024-02-23 16:48 ` [PATCH BlueZ v4 1/5] shared/bap: Fix endpoint dir for " Silviu Florian Barbulescu
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Silviu Florian Barbulescu @ 2024-02-23 16:48 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: mihai-octavian.urzica, silviu.barbulescu, vlad.pruteanu,
	andrei.istodorescu, luiz.dentz, iulia.tanasescu

This patch adds support for multiple BISes in broadcast sources.

Example commands:
Create a local endpoint and an endpoint for BIS1:
endpoint.register 00001852-0000-1000-8000-00805f9b34fb 0x06
[/local/endpoint/ep0] Auto Accept (yes/no): y
[/local/endpoint/ep0] Max Transports (auto/value): a
[/local/endpoint/ep0] Locations: 0x03
[/local/endpoint/ep0] Supported Context (value): 0

Configure BIS1, create BIS1 transport and endpoint for BIS2:
endpoint.config /org/bluez/hci0/pac_bcast0 /local/endpoint/ep0 48_4_1
[/local/endpoint/ep0] BIG (auto/value): 0x01
[/local/endpoint/ep0] Enter channel location (value/no): 0x01
[/local/endpoint/ep0] Enter Metadata (value/no): n

Configure BIS2, create BIS2 transport and endpoint for BIS3:
endpoint.config /org/bluez/hci0/pac_bcast0 /local/endpoint/ep0 48_4_1
[/local/endpoint/ep0] BIG (auto/value): 0x01
[/local/endpoint/ep0] Enter channel location (value/no): 0x02
[/local/endpoint/ep0] Enter Metadata (value/no): n

For multiple BISes acquire must be called on all transports
before the BIG is created:
transport.acquire /org/bluez/hci0/pac_bcast0/fd0 
transport.acquire /org/bluez/hci0/pac_bcast0/fd1
.....
transport.release /org/bluez/hci0/pac_bcast0/fd0
transport.release /org/bluez/hci0/pac_bcast0/fd1

Silviu Florian Barbulescu (5):
  shared/bap: Fix endpoint direction for the broadcast source
  shared/bap: Add state in the stream struct for broadcast source
  shared/bap: Add support to create a stream for broadcast source
  bap: Add a callback to create a new stream
  bap: Set the generated BASE on all setups from the same BIG

 profiles/audio/bap.c | 223 +++++++++++++++++++++++++++++++++++++++----
 src/shared/bap.c     | 133 ++++++++++++++++++++++----
 src/shared/bap.h     |   6 ++
 3 files changed, 327 insertions(+), 35 deletions(-)


base-commit: 8f262a27bdf233f142a7bb22bf3f8c6db53debee
-- 
2.39.2


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH BlueZ v3 1/7] bap: Remove set lpac user data at bcast ep register
@ 2024-02-15 21:23 Silviu Florian Barbulescu
  2024-02-15 23:49 ` Add support for multiple BISes on the bcast source bluez.test.bot
  0 siblings, 1 reply; 11+ messages in thread
From: Silviu Florian Barbulescu @ 2024-02-15 21:23 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: mihai-octavian.urzica, silviu.barbulescu, vlad.pruteanu,
	andrei.istodorescu, luiz.dentz, iulia.tanasescu

Remove set lpac user data at bcast ep register

---
 profiles/audio/bap.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 88c93127b..38ee42894 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1207,8 +1207,6 @@ static struct bap_ep *ep_register_bcast(struct bap_data *data,
 	 */
 	if (rpac)
 		bt_bap_pac_set_user_data(rpac, ep->path);
-	else
-		bt_bap_pac_set_user_data(lpac, ep->path);
 
 	DBG("ep %p lpac %p rpac %p path %s", ep, ep->lpac, ep->rpac, ep->path);
 
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [PATCH BlueZ v2 1/7] bap: Remove set lpac user data at bcast ep register
@ 2024-02-12 15:32 Silviu Florian Barbulescu
  2024-02-12 17:39 ` Add support for multiple BISes on the bcast source bluez.test.bot
  0 siblings, 1 reply; 11+ messages in thread
From: Silviu Florian Barbulescu @ 2024-02-12 15:32 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: mihai-octavian.urzica, silviu.barbulescu, vlad.pruteanu,
	andrei.istodorescu, luiz.dentz, iulia.tanasescu

Remove set lpac user data at bcast ep register

---
 profiles/audio/bap.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 88c93127b..38ee42894 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1207,8 +1207,6 @@ static struct bap_ep *ep_register_bcast(struct bap_data *data,
 	 */
 	if (rpac)
 		bt_bap_pac_set_user_data(rpac, ep->path);
-	else
-		bt_bap_pac_set_user_data(lpac, ep->path);
 
 	DBG("ep %p lpac %p rpac %p path %s", ep, ep->lpac, ep->rpac, ep->path);
 
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [PATCH BlueZ 1/7] bap: Remove set lpac user data at bcast ep register
@ 2024-02-01 15:28 Silviu Florian Barbulescu
  2024-02-01 17:37 ` Add support for multiple BISes on the bcast source bluez.test.bot
  0 siblings, 1 reply; 11+ messages in thread
From: Silviu Florian Barbulescu @ 2024-02-01 15:28 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: mihai-octavian.urzica, silviu.barbulescu, vlad.pruteanu,
	andrei.istodorescu, luiz.dentz, iulia.tanasescu

Fix a wrongful set of user data with endpoint pat for the local PAC.
Local pac user data is set endpoint_init_pac form media.c
with the media_endpoint

---
 profiles/audio/bap.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 7faa6be7f..209f21471 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1195,8 +1195,6 @@ static struct bap_ep *ep_register_bcast(struct bap_data *data,
 	 */
 	if (rpac)
 		bt_bap_pac_set_user_data(rpac, ep->path);
-	else
-		bt_bap_pac_set_user_data(lpac, ep->path);
 
 	DBG("ep %p lpac %p rpac %p path %s", ep, ep->lpac, ep->rpac, ep->path);
 
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-02-27 14:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-23 16:48 [PATCH BlueZ v4 0/5] Add support for multiple BISes on the bcast source Silviu Florian Barbulescu
2024-02-23 16:48 ` [PATCH BlueZ v4 1/5] shared/bap: Fix endpoint dir for " Silviu Florian Barbulescu
2024-02-23 18:51   ` Add support for multiple BISes on " bluez.test.bot
2024-02-23 16:48 ` [PATCH BlueZ v4 2/5] shared/bap: Add state in stream struct for " Silviu Florian Barbulescu
2024-02-23 16:48 ` [PATCH BlueZ v4 3/5] shared/bap: Add support to create a stream for bcast src Silviu Florian Barbulescu
2024-02-23 16:48 ` [PATCH BlueZ v4 4/5] bap: Add a callback to create a new stream Silviu Florian Barbulescu
2024-02-23 16:48 ` [PATCH BlueZ v4 5/5] bap: Set generated BASE on all setups from the same BIG Silviu Florian Barbulescu
2024-02-27 14:30 ` [PATCH BlueZ v4 0/5] Add support for multiple BISes on the bcast source patchwork-bot+bluetooth
  -- strict thread matches above, loose matches on Subject: below --
2024-02-15 21:23 [PATCH BlueZ v3 1/7] bap: Remove set lpac user data at bcast ep register Silviu Florian Barbulescu
2024-02-15 23:49 ` Add support for multiple BISes on the bcast source bluez.test.bot
2024-02-12 15:32 [PATCH BlueZ v2 1/7] bap: Remove set lpac user data at bcast ep register Silviu Florian Barbulescu
2024-02-12 17:39 ` Add support for multiple BISes on the bcast source bluez.test.bot
2024-02-01 15:28 [PATCH BlueZ 1/7] bap: Remove set lpac user data at bcast ep register Silviu Florian Barbulescu
2024-02-01 17:37 ` Add support for multiple BISes on the bcast source bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).