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

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

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

899 Views
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 

Tags (1)
0 Kudos
Reply
2 Replies

853 Views
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 Kudos
Reply

862 Views
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 Kudos
Reply