EasyManua.ls Logo

NXP Semiconductors UM11490 - Page 54

NXP Semiconductors UM11490
88 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
NXP Semiconductors
UM11490
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
Copy the sample audio file to i.MX 8M Quad
Use the following command to check the available sink cards:
root@imx8mqevk:~# pacmd list-sinks | egrep '(index|name):'
index: 0
name: <alsa_output.platform-sound-bt-sco.mono-fallback>
index: 1
name: <alsa_output.platform-sound-spdif.stereo-fallback>
* index: 2
name: <alsa_output.platform-sound-wm8524.stereo-fallback>
index: 3
name: <bluez_sink.7C_2E_BD_48_15_FC.a2dp_sink>
root@imx8mqevk:~#
Select the Bluetooth speaker as an audio sink device
root@imx8mqevk:~# pacmd set-default-sink 3
root@imx8mqevk:~# pacmd list-sinks | egrep '(index|name):'
index: 0
name: <alsa_output.platform-sound-bt-sco.mono-fallback>
index: 1
name: <alsa_output.platform-sound-spdif.stereo-fallback>
index: 2
name: <alsa_output.platform-sound-wm8524.stereo-fallback>
* index: 3
name: <bluez_sink.7C_2E_BD_48_15_FC.a2dp_sink>
root@imx8mqevk:~#
Play the audio file using pulseaudio play utility
root@imx8mqevk:~# paplay <path to audio file>/sample_audio.wav &
[3] 562
[2] Done(1) paplay /usr/local/sample_audio.wav
root@imx8mqevk:~#
Set the volume of sink device using pulseaudio commands
Here, 0 is muted and 0x10000 is normal volume.
root@imx8mqevk:~# pacmd set-sink-volume <sink_index> <volume_level>
root@imx8mqevk:~# pacmd set-sink-volume 3 0x9000
Disconnect the device using Bluetoothctl command line interface
root@imx8mqevk:~# bluetoothctl
Agent registered
[Office speaker 1]# disconnect 7C:2E:BD:48:15:FC
Attempting to disconnect from 7C:2E:BD:48:15:FC
[CHG] Device 7C:2E:BD:48:15:FC ServicesResolved: no
Successful disconnected
[CHG] Device 7C:2E:BD:48:15:FC Connected: no
[bluetooth]#
UM11490 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2021. All rights reserved.
User manual Rev. 2 — 29 January 2021
54 / 88

Table of Contents

Related product manuals