All of lore.kernel.org
 help / color / mirror / Atom feed
* [bluez/bluez] f1afca: shared/bap: fix channel allocation logic in bt_bap...
@ 2025-11-17 19:17 Pauli Virtanen
  0 siblings, 0 replies; only message in thread
From: Pauli Virtanen @ 2025-11-17 19:17 UTC (permalink / raw)
  To: linux-bluetooth

  Branch: refs/heads/master
  Home:   https://github.com/bluez/bluez
  Commit: f1afca6a097bdc5a2a21508146875bab322dbe48
      https://github.com/bluez/bluez/commit/f1afca6a097bdc5a2a21508146875bab322dbe48
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M profiles/audio/bap.c
    M src/shared/bap.c
    M src/shared/bap.h

  Log Message:
  -----------
  shared/bap: fix channel allocation logic in bt_bap_select()

bt_bap_select() does not correctly determine the need for multi-stream
configurations 6,7,8,9,11(i), as its result depends on whether Audio
Locations is read before or after the PACs, doesn't work with general
location bits, etc.

Fix the procedure to be simpler: create streams for all locations, up to
a specific number of channels.  By default, limit to max 2 channels per
direction for compatibility (BAP doesn't have explicit AC with larger
channel counts.) Also simplify the code.

Ignore lpac Locations when selecting: the value mostly makes sense for
Unicast Server role, but Client and Server cannot use the same value as
only a few bits can be set. As Client, we should be able to configure
any Location bits.  The sound server can simply ignore our suggested
channel allocation if really needed, or use SetConfiguration() API to
build custom configurations.


  Commit: 0c56d482fd20c86d4a33cc91e117fc2af96ef570
      https://github.com/bluez/bluez/commit/0c56d482fd20c86d4a33cc91e117fc2af96ef570
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M src/shared/bap.c

  Log Message:
  -----------
  shared/bap: fix packet length comparison to ATT MTU in bap_queue_req()

bap_queue_req() forgot to account for ATT command headers when comparing
to MTU, and fail to send if packet too big. Fix the MTU comparison.


  Commit: 231372ca5e1545eb505dd22be1ff28d89b68fd22
      https://github.com/bluez/bluez/commit/231372ca5e1545eb505dd22be1ff28d89b68fd22
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M profiles/audio/bap.c

  Log Message:
  -----------
  bap: don't configure endpoints of all codecs at once

When device is connected we currently try create all streams for all
endpoints. If there are multiple (= vendor codecs), this likely causes
creating multiple streams for same location, which is not allowed.

Change it to create streams only for the first endpoint, for each
direction.

Sound server can later request switching to another endpoint if
necessary.


  Commit: a1f8862a38a5f8d29565cd8c84f9880a740ae95e
      https://github.com/bluez/bluez/commit/a1f8862a38a5f8d29565cd8c84f9880a740ae95e
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M src/shared/tester.c

  Log Message:
  -----------
  shared/tester: better debug output on io memcmp failure


  Commit: 7858675e62818bae52300c24440e5fa4af68394c
      https://github.com/bluez/bluez/commit/7858675e62818bae52300c24440e5fa4af68394c
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M unit/test-bap.c

  Log Message:
  -----------
  test-bap: make PDU macros parametrizable

Adjust PDU-forming macros, so that they can be used for connecting
multiple streams to parametrizable locations.


  Commit: 8a41ac3fde997137d374791a93a49d9a3abac0e0
      https://github.com/bluez/bluez/commit/8a41ac3fde997137d374791a93a49d9a3abac0e0
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M unit/test-bap.c

  Log Message:
  -----------
  test-bap: add audio configuration selection and streaming tests

Add tests from BAP.TS 4.10.

The tests testing (ii) configurations only test configuration selection
with L/R separately. Can be filled in later to use two simultaneous BAP.

The difference between CIS Establishment at QoS vs. Enable is not
properly simulated, so only one variant is added.


Compare: https://github.com/bluez/bluez/compare/c1493c32d7da...8a41ac3fde99

To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-17 19:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-17 19:17 [bluez/bluez] f1afca: shared/bap: fix channel allocation logic in bt_bap Pauli Virtanen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.