# Verify A2DP functions

A2DP defines how to stream multimedia audio from one device to another over a
Bluetooth connection. This mechanism is also called as Bluetooth audio
streaming.

To perform A2DP source or sink functions, you must first complete the steps in the following procedure.

## Prerequisites

- Enable SSH to access your host device. For instructions, see [Sign in using SSH](https://docs.qualcomm.com/bundle/publicresource/topics/80-70023-254/how_to.html#use-ssh).
- Pair the DUT and the remote device. For instructions, see [Pair with a remote Bluetooth device](https://docs.qualcomm.com/doc/80-70023-13/topic/bluez-perform-bluetooth-gap-functions.html#section-h4c-1bs-lcc-navyanka-08-21-24-1205-46-507).
- Place the DUT and the remote device in the Bluetooth vicinity.

## Set up the device for A2DP functions

1. Run the SSH in command prompt using the following command:

ssh root@<device_IP_address>
        Copy to clipboard

    **Example**

    If the IP address of the device is `10.92.160.222`, run the following command:

ssh root@10.92.160.222
        Copy to clipboard
2. Connect to the SSH by entering the following password:

oelinux123
        Copy to clipboard
3. Open the Bluetooth test application by running the following command:

bluetoothctl
        Copy to clipboard

    **Sample output**

sh-5.1# bluetoothctl
        Agent registered        uetoothd...
        [CHG] Controller 22:22:F1:C1:99:C0 Pairable: yes
        Copy to clipboard
4. Go to the **Transport submenu** or **Player submenu**, as required.

    - To go to the **Transport submenu**, run the following command from `bluetoothctl`:

menu transport
            Copy to clipboard

        **Sample output**

[bluetooth]# menu transport
            Menu transport:
            Available commands:
            -------------------
            list                                              List available transports
            show <transport>                                  Transport information
            acquire <transport>                               Acquire Transport
            release <transport>                               Release Transport
            send <transport> <filename>                       Send contents of a file
            receive <transport> [filename]                    Get/Set file to receive
            volume <transport> [value]                        Get/Set transport volume
            back                                              Return to main menu
            version                                           Display version
            quit                                              Quit program
            exit                                              Quit program
            help                                              Display help about this program
            export                                            Print environment variables
            Copy to clipboard

        To perform **Transport submenu** functions in the source, see [Perform Bluetooth A2DP source functions](https://docs.qualcomm.com/doc/80-70023-13/topic/bluez-perform-bluetooth-a2dp-source-functions.html#bluez-perform-bluetooth-a2dp-source-functions).

        To perform **Transport submenu** functions in the sink, see [Perform Bluetooth A2DP sink functions](https://docs.qualcomm.com/doc/80-70023-13/topic/bluez-perform-bluetooth-a2dp-sink-functions.html#bluez-perform-bluetooth-a2dp-sink-functions).
    - To go to the **Player submenu**, run the following command from `bluetoothctl`:

menu player
            Copy to clipboard

        **Sample output**

[bluetooth]# menu player
            Menu player:
            Available commands:
            -------------------
            list                                              List available players
            show [player]                                     Player information
            select <player>                                   Select default player
            play [item]                                       Start playback
            pause                                             Pause playback
            stop                                              Stop playback
            next                                              Jump to next item
            previous                                          Jump to previous item
            fast-forward                                      Fast forward playback
            rewind                                            Rewind playback
            equalizer <on/off>                                Enable/Disable equalizer
            repeat <singletrack/alltrack/group/off>           Set repeat mode
            shuffle <alltracks/group/off>                     Set shuffle mode
            scan <alltracks/group/off>                        Set scan mode
            change-folder <item>                              Change current folder
            list-items [start] [end]                          List items of current folder
            search <string>                                   Search items containing string
            queue <item>                                      Add item to playlist queue
            show-item <item>                                  Show item information
            back                                              Return to main menu
            version                                           Display version
            quit                                              Quit program
            exit                                              Quit program
            help                                              Display help about this program
            export                                            Print environment variables
            Copy to clipboard

        To perform **Player submenu** functions in the sink, see [Perform Bluetooth A2DP sink functions](https://docs.qualcomm.com/doc/80-70023-13/topic/bluez-perform-bluetooth-a2dp-sink-functions.html#bluez-perform-bluetooth-a2dp-sink-functions).

## Next steps

- [Perform Bluetooth A2DP source functions](https://docs.qualcomm.com/doc/80-70023-13/topic/bluez-perform-bluetooth-a2dp-source-functions.html)
You can perform Bluetooth A2DP source functions using the `bluetoothctl` menu, `menu transport` submenu, and `paplay` commands. Bluetooth A2DP source functions include connecting or disconnecting to a remote device and listing available transport options. They allow you to retrieve information about codec capabilities, set the absolute volume, and play an audio file. You can also get a list of available sinks and play audio on a specific sink using the Bluetooth A2DP source functions.
- [Perform Bluetooth A2DP sink functions](https://docs.qualcomm.com/doc/80-70023-13/topic/bluez-perform-bluetooth-a2dp-sink-functions.html)
You can perform Bluetooth A2DP sink functions using the `bluetoothctl` menu, `menu transport` submenu, and `menu player` submenu. Bluetooth A2DP sink functions include connecting or disconnecting to a remote device and listing available transport options for audio streams. They allow you to retrieve information about codec capabilities, set the absolute volume, and play an audio file. You can use playback controls to pause, stop, play the next or previous audio file, and fast-forward during playback.

Last Published: Dec 15, 2025

[Previous Topic
Perform Bluetooth HOGP functions](https://docs.qualcomm.com/bundle/publicresource/80-70023-13/topics/bluez-perform-bluetooth-hogp-functions.md) [Next Topic
Perform Bluetooth A2DP source functions](https://docs.qualcomm.com/bundle/publicresource/80-70023-13/topics/bluez-perform-bluetooth-a2dp-source-functions.md)