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

Bluetooth samples: Add USB Audio to Broadcast Sink sample #65014

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions samples/bluetooth/broadcast_audio_sink/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,25 @@ config ENABLE_LC3
select LIBLC3
select FPU

config USE_USB_AUDIO_OUTPUT
bool "Use USB Audio as output"
depends on ENABLE_LC3
select USB_DEVICE_STACK
select USB_DEVICE_AUDIO
select RING_BUFFER
help
Enables USB audio as output as a USB peripheral. This does not support providing USB
audio to e.g. speakers that are also USB peripherals, but can be connected to e.g. a
phone or PC as a USB-in device (such as a USB microphone).
USB audio only supports a single audio channel.

config TARGET_BROADCAST_CHANNEL
int "Broadcast Channel Audio Location to sync to"
range 0 2
default 1
depends on USE_USB_AUDIO_OUTPUT
help
Channel Audio Location to sync to. These corresponds to the bt_audio_location,
supporting mono, left and right channels
Thalley marked this conversation as resolved.
Show resolved Hide resolved

source "Kconfig.zephyr"
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_ENABLE_LC3=y
CONFIG_TARGET_BROADCAST_CHANNEL=1
CONFIG_USE_USB_AUDIO_OUTPUT=y
fredrikdanebjer marked this conversation as resolved.
Show resolved Hide resolved
CONFIG_USB_DEVICE_PRODUCT="USB Broadcast Sink"
Thalley marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading