Failed to play Bluetooth audio

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Failed to play Bluetooth audio

1,244 Views
hu_yougang
Contributor I

Hello,

 BSP:IMX8 MINI EVK

Linux imx8mmevk 4.14.78-imx_4.14.78_1.0.0_ga+g21fc82c

I am using IMX8 Mini EVK (yocto)and I try to play music using Bluetooth A2DP.

So far, I am able to pair and connect to my phone.

When the phone plays music, Imx8 Mini does not have any audio output

How can i modify?

0 Kudos
3 Replies

1,071 Views
radhikasomaiya
Senior Contributor II

Hi hu.yougang@geniatech.com ,

You can refer the below link to set the default source as a bluetooth and audio jack (on which the loudspeaker was connected) as a default sound card.

https://community.nxp.com/thread/514762 

Regards,

Radhika Somaiya.

0 Kudos

1,071 Views
hu_yougang
Contributor I

hi,

 Thank you for your reply,The seps are as follows

Set audio sink and source with pactl,then use  phone to play music

IMX8MM output audio is intermittent.

#hciattach /dev/ttymxc2 qca 115200 -t 120 flow

#bluetoothctl

[bluetooth]# power on
[CHG] Controller 61:47:AA:32:44:07 Class: 0x00200000
Changing power on succeeded
[CHG] Controller 61:47:AA:32:44:07 Powered: yes
[bluetooth]# agent on
Agent is already registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# scan on

[bluetooth]# scan off

[bluetooth]# pair 14:32:D1:CD:00:B3

[bluetooth]# connect 14:32:D1:CD:00:B3

[bluetooth]# trust 14:32:D1:CD:00:B3

[Galaxy S6]# info
Device 14:32:D1:CD:00:B3 (public)
Name: Galaxy S6
Alias: Galaxy S6
Class: 0x005a020c
Icon: phone
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Headset AG (00001112-0000-1000-8000-00805f9b34fb)
UUID: PANU (00001115-0000-1000-8000-00805f9b34fb)
UUID: NAP (00001116-0000-1000-8000-00805f9b34fb)
UUID: Handsfree Audio Gateway (0000111f-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
Modalias: bluetooth:v0075p0100d0200

0 Kudos

1,071 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Could you please pass me the steps of how did you bring up the Bluetooth connection?

Best regards,

Diego.

0 Kudos