• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/29-Dec-2025-1511

src/29-Dec-2025-1,151992

CMakeLists.txtD29-Dec-2025297 117

KconfigD29-Dec-2025904 4231

README.rstD29-Dec-20251,010 3222

prj.confD29-Dec-2025147 87

sample.yamlD29-Dec-2025462 2221

README.rst

1.. zephyr:code-sample:: bluetooth_a2dp_source
2   :name: A2DP Source
3   :relevant-api: bt_a2dp bluetooth
4
5   Use A2DP (Advanced Audio Distribution Profile) source functionality.
6
7Overview
8********
9
10This sample demonstrates the A2DP (Advanced Audio Distribution Profile) source
11functionality using Zephyr's Bluetooth Classic APIs. The application acts as an
12A2DP source device, it discovers and connects to a A2DP sink device such as
13Bluetooth speaker and headphone, and streams audio data to it automatically.
14
15Requirements
16************
17
18* Running on the host with Bluetooth BR/EDR (Classic) support, or
19* A board with Bluetooth BR/EDR (Classic) support
20
21Building and Running
22********************
23
241. Build and flash the sample to the board.
252. The device will discover a2dp sink devices nearby.
263. Connect and stream audio automatically.
27
28This sample can be found under :zephyr_file:`samples/bluetooth/classic/a2dp_source` in
29the Zephyr tree.
30
31See :zephyr:code-sample-category:`bluetooth` samples for details.
32