Skip to content

Conversation

@Thalley
Copy link
Contributor

@Thalley Thalley commented Jan 19, 2024

BAP would always set up the ISO data path in both directions, even for unidirectional CIS. This meant that in the unconfigured direction, the data path configuration data would all be 0, which causes issues on some controllers.

The new refactored approach implemented by this commit will always ensure that the data path is setup correctly, and that we only set the data path in one direction for unidirectional CIS.

This is building on the requirement in BAP that all streams in a unicast group shall be QoS configured at the same time. This ensures that before any streams in the CIG has been connected, they have all been configured.

fixes #67779

@Thalley Thalley force-pushed the bap_iso_path_fix branch 2 times, most recently from acc1788 to ab032e3 Compare January 19, 2024 13:29
BAP would always set up the ISO data path in both directions,
even for unidirectional CIS. This meant that in the
unconfigured direction, the data path configuration data
would all be 0, which causes issues on some controllers.

The new refactored approach implemented by this commit
will always ensure that the data path is setup correctly,
and that we only set the data path in one direction for
unidirectional CIS. The unset path will use the default
ISO path of HCI and transparant format, which should always
be allowed by a controller.

This is building on the requirement in BAP that all streams in
a unicast group shall be QoS configured at the same time. This
ensures that before any streams in the CIG has been connected,
they have all been configured.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Copy link
Contributor

@rick1082 rick1082 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed the fix works.

Copy link
Contributor

@Casper-Bonde-Bose Casper-Bonde-Bose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@carlescufi carlescufi merged commit aef39f6 into zephyrproject-rtos:main Jan 22, 2024
@Thalley Thalley deleted the bap_iso_path_fix branch January 22, 2024 13:17
kartben added a commit to kartben/zephyr that referenced this pull request Dec 4, 2025
Last activity: 18 months ago (review)

Recent activities:
  - review: Review on 'Bluetooth: Audio: Shell: Fix build errors for USB=n'
    zephyrproject-rtos#72733
    (2024-05-16T06:13:15Z)
  - review: Review on 'Bluetooth: ISO: Introduce bt_iso_chan_send_ts'
    zephyrproject-rtos#68611
    (2024-02-07T07:53:39Z)
  - review: Review on 'Bluetooth: BAP: Fix issue with setting invalid iso
  data path'
    zephyrproject-rtos#67835
    (2024-01-22T10:15:03Z)

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Bluetooth: BAP: Wrongly set ISO data path for unidirectional CIS

7 participants