How to Add bt-sco node in dts file of imx8mp phyboard pollux to make Hands free Profile in Android11

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

How to Add bt-sco node in dts file of imx8mp phyboard pollux to make Hands free Profile in Android11

1,044 次查看
surya45
Contributor II

 Hi Nxp Community

can you please help me out how to add bt-sco sound card for pcm to make Hands free Profile work in android 11 on imx8mp phyboard pollux.

sharing the logs where i face the issue.

the A2DP sink works fine but when i make a call via phone connected to the board. the phone is gettiung disconnected from board.

so my doubt is do we need to add bt-sco function? if yes can anyone please share the process.

IMX8MPLUS#bluetooth #Handsfreeprofile #Android

@kingphome @Sanket_Parekh @david_ochs1 

标记 (1)
0 项奖励
回复
2 回复数

998 次查看
surya45
Contributor II

my current dts file doesn't have any nodes related to bt-sco. can hfp work via wm8960 sound card.

in logs i see that get_card_for_hfp returning -1. how to add sound card for it a2dp works fine in bluetooth,

but Hfp is not working.

please help where ever need to make changes

08-28 04:11:32.667 679 1405 D audio_hw_primary: adev_set_parameters: enter: hfp_set_sampling_rate=16000
08-28 04:11:32.667 679 1405 I audio_hw_primary: hfp_set_sampling_rate, 16000
08-28 04:11:32.667 679 1405 D audio_hw_primary: adev_set_parameters: exit with code(0)
08-28 04:11:32.668 679 1405 D audio_hw_primary: adev_set_parameters: enter: hfp_enable=true
08-28 04:11:32.668 679 1405 I audio_hw_primary: prepare bt rx task
08-28 04:11:32.668 679 1405 D audio_hw_primary: get_card_for_hfp: card: -1
08-28 04:11:32.668 679 1405 I audio_hw_primary: set pcm_config_sco_in.period_size to 64
08-28 04:11:32.668 679 1405 I audio_hw_primary: open sco for read, card -1, port 0
08-28 04:11:32.668 679 1405 I audio_hw_primary: rate 16000, channel 1, period_size 0x40, period_count 8
08-28 04:11:32.668 679 1405 I audio_hw_primary: after pcm open, rate 16000, channel 1, period_size 0x40, period_count 8
08-28 04:11:32.668 679 1405 E audio_hw_primary: cannot open pcm_sco_rx: cannot open device '/dev/snd/pcmC4294967295D0c': No such file or directory

 

0 项奖励
回复

1,007 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

For dts configuration, you should refer imx8mp-evk.dts which contains bt-sco node.

We have added bt sco configuration in android: android_build/device/nxp/imx8m/evk_8mp/audio_policy_configuration_pcm512x.xml and audio_policy_configuration.xml

0 项奖励
回复