How to use the Bluetooth PCM interface

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to use the Bluetooth PCM interface

7,269 次查看
hu_yougang
Contributor I

Hi, I am working with imx8mmevk on yocto project

I want to know how to use bluetooth PCM,because when use bluetooth a2dp,the pcm no signal

标签 (1)
0 项奖励
回复
4 回复数

1,419 次查看
Nivas_Pangarkar
Contributor II

Hi,
I have bluealsa service running on yocto linux and able to connect bluetooth earphone. I can able to play and record using below mantioned commands,

aplay -D bluealsa:SRV=org.bluealsa,DEV=xx:xx:xx:xx:xx:xx,PROFILE=a2dp /usr/share/sounds/alsa/Front_Center.wav
arecord -D bluealsa:xx:xx:xx:xx:xx:xx,sco -d 5 test.wav

While recording/playing audio i'm not getting any signals on PCM lines, but on uart. How can I test PCM (want to check singals on PCM lines)?

 


Note:
this is what /usr/lib/systemd/system/bluealsa.service have (logs are trimmed)


# cat /usr/lib/systemd/system/bluealsa.service
.
.
.
ExecStart=/usr/bin/bluealsa -p a2dp-source -p a2dp-sink -p hfp-hf -p hfp-ag -p hsp-hs
.
.
.

and this is output of bluealsa-aplay -l


# bluealsa-aplay -l
**** List of PLAYBACK Bluetooth Devices ****
hci0: A4:05:6E:32:FB:BA [realme Buds Wireless 2], trusted audio-headset
A2DP (SBC): S16_LE 2 channels 48000 Hz
SCO (CVSD): S16_LE 1 channel 8000 Hz
**** List of CAPTURE Bluetooth Devices ****
hci0: A4:05:6E:32:FB:BA [realme Buds Wireless 2], trusted audio-headset
SCO (CVSD): S16_LE 1 channel 8000 Hz

0 项奖励
回复

6,895 次查看
igorpadykov
NXP Employee
NXP Employee

Hi yougang

one can look at

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

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

6,895 次查看
hu_yougang
Contributor I

hi igorpadykov

Thank you for your reply, bluetooth a2dp uses uart to transfer audio data.If we want to use the PCM interface to transmit audio data,how to modify?

0 项奖励
回复

6,895 次查看
igorpadykov
NXP Employee
NXP Employee
0 项奖励
回复