Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: Bluetooth: Add stereo support for broadcast audio sink #69341

Merged

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Feb 22, 2024

The broadcast audio sink now supports stereo if
CONFIG_TARGET_BROADCAST_CHANNEL=3 (LEFT | RIGHT).

It parses the BASE to find a set of BIS (1 or 2) that contain
the channel allocation from CONFIG_TARGET_BROADCAST_CHANNEL.

@Thalley Thalley force-pushed the broadcast_sink_sample_stereo branch 6 times, most recently from 493e0d0 to 5dff1a7 Compare February 28, 2024 11:28
@Thalley Thalley force-pushed the broadcast_sink_sample_stereo branch 2 times, most recently from e4ab068 to d629a3a Compare March 8, 2024 09:30
@Thalley Thalley marked this pull request as ready for review March 8, 2024 10:08
cvinayak
cvinayak previously approved these changes Mar 8, 2024
kruithofa
kruithofa previously approved these changes Mar 11, 2024
larsgk
larsgk previously approved these changes Mar 11, 2024
Copy link
Contributor

@larsgk larsgk left a comment

Choose a reason for hiding this comment

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

LGTM but didn't try it out. Did you try with stereo/mono sources? - also, maybe @fredrikdanebjer should have a look

@Thalley
Copy link
Collaborator Author

Thalley commented Mar 11, 2024

LGTM but didn't try it out. Did you try with stereo/mono sources? - also, maybe @fredrikdanebjer should have a look

It has been tested with LEFT, RIGHT and LEFT | RIGHT (with 2 BIS), but not LEFT | RIGHT on a single BIS (I don't have a broadcast source that supports that to test)

@@ -35,6 +35,13 @@ config TARGET_BROADCAST_NAME
Name of target broadcast device. If not empty string, sink device
will only listen to the specified broadcast source. Not case sensitive.

config MAX_CODEC_FRAMES_PER_SDU
int "The maximum number of codec frame per SDU supported"
default 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Maximum 255

The broadcast audio sink now supports stereo if
CONFIG_TARGET_BROADCAST_CHANNEL=3 (LEFT | RIGHT).

It parses the BASE to find a set of BIS (1 or 2) that contain
the channel allocation from CONFIG_TARGET_BROADCAST_CHANNEL.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley dismissed stale reviews from larsgk, kruithofa, and cvinayak via dd1102d March 12, 2024 09:33
@Thalley Thalley force-pushed the broadcast_sink_sample_stereo branch from d629a3a to dd1102d Compare March 12, 2024 09:33
@Thalley Thalley assigned Thalley and unassigned jhedberg Mar 12, 2024
@aescolar aescolar merged commit 4d2bc5f into zephyrproject-rtos:main Mar 12, 2024
19 checks passed
@Thalley Thalley deleted the broadcast_sink_sample_stereo branch March 12, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants