HFP Bluetooth call is not working in i.MX8QM Board

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

HFP Bluetooth call is not working in i.MX8QM Board

2,444 次查看
Arvi
Contributor I

Hi,

I have been working on bluetooth communication in my i.MX8QM mek Board with my phone. I am able to connect my phone with the device but audio is not working when i am playing a music or in a bluetooth call. The speaker i connected with the i.MX8QM is working perfectly.

I have been editing the tinyalsa_hal.c, so that i am able to hear my voice from the MIC through the speaker connected. Now i need to route that audio to receiver side(far end) and need to know how to route the receiver sound and route that to the caller.

Please tell me what edit i need to make to enable the bluetooth call. Thank you.

Regards,

Aravind.

0 项奖励
回复
8 回复数

1,940 次查看
DennisMK
Contributor I

Hi @Arvi , I am also facing the same issue on iMX8QXP Automotive OS 11. 

Have you found the solution?

0 项奖励
回复

2,436 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Did you enable the HFP in android_build/packages/apps/Bluetooth/res/values/config.xml?

<bool name="profile_supported_a2dp">true</bool>
    <bool name="profile_supported_a2dp_sink">true</bool>
    <bool name="profile_supported_hs_hfp">true</bool>
    <bool name="profile_supported_hfpclient">true</bool>
    <bool name="profile_supported_hid_host">true</bool>
    <bool name="profile_supported_opp">true</bool>
    <bool name="profile_supported_pan">true</bool>
    <bool name="profile_supported_pbap">true</bool>
    <bool name="profile_supported_gatt">true</bool>
    <bool name="pbap_include_photos_in_vcard">true</bool>
    <bool name="pbap_use_profile_for_owner_vcard">true</bool>
    <bool name="profile_supported_map">true</bool>
    <bool name="profile_supported_avrcp_target">true</bool>
    <bool name="profile_supported_avrcp_controller">true</bool>
    <bool name="profile_supported_sap">false</bool>
    <bool name="profile_supported_pbapclient">true</bool>
    <bool name="profile_supported_mapmce">true</bool>
    <bool name="profile_supported_hid_device">true</bool>

 

0 项奖励
回复

2,429 次查看
Arvi
Contributor I

Hi nxf65025,

Thank you for the reply.

Yes i enabled hfp in config.xml. And then tested the call. But i am not getting the audio. i am sharing a log for your reference. I tried to make some changes in tinyalsa_hal.h and i able to do hear my voice from speaker. Actually my voive should go to the receiver side and receiver sound should come in my speaker. Please find the log for reference.

Regards,

Arvi

0 项奖励
回复

2,423 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

See this file android_build/device/nxp/imx8q/mek_8q/audio_policy_configuration.xml

 

You need route the sco data to speaker.

 

could be like this:

<route type="mix" sink="Speaker"
sources="esai output,primary output,bt sco output"/>

 

0 项奖励
回复

2,416 次查看
Arvi
Contributor I

Hi,

I didn't found any device port such as esai output and bt sco output in audio_policy_configuration.xml.I didn't added such one. I have BT SCO, BT SCO Headset Mic and etc. I am sharing my .xml file for your reference so that you can identify the problem and help me to provide the change needed. Thank you

 

Regards,

Arvi.

0 项奖励
回复

2,411 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi Arvi

 

It seems you are using auto os ,right?

0 项奖励
回复

2,407 次查看
Arvi
Contributor I

Hi,

Yes i am doing on automotive. Thank you

Regards,

Aravind.

0 项奖励
回复

2,268 次查看
avdhutpandya
Contributor I

Hi @Arvi , I am also facing the same issue on iMX8QXP Automotive OS 11. 

Have you found the solution?

0 项奖励
回复