-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: Add USB Audio to broadcast audio source
Adds support for using a connected host to broadcast audio via USB Audio. Offload LC3 encoding to separate thread. Signed-off-by: Lars Knudsen <[email protected]>
- Loading branch information
1 parent
1fbcccd
commit 78714b1
Showing
5 changed files
with
297 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
samples/bluetooth/broadcast_audio_source/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# 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_MAIN_STACK_SIZE=4096 | ||
|
||
# Use USB Audio as input | ||
CONFIG_USE_USB_AUDIO_INPUT=y | ||
CONFIG_USB_DEVICE_PRODUCT="Zephyr Broadcast Source" | ||
|
||
# Two streams in one subgroup (stereo) | ||
CONFIG_BT_BAP_BROADCAST_SRC_SUBGROUP_COUNT=1 |
3 changes: 0 additions & 3 deletions
3
samples/bluetooth/broadcast_audio_source/boards/nrf5340dk_nrf5340_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
# 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_MAIN_STACK_SIZE=4096 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.