HFP Bluetooth call is not working in i.MX8QM Board

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

HFP Bluetooth call is not working in i.MX8QM Board

2,443 Views
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 Kudos
Reply
8 Replies

1,939 Views
DennisMK
Contributor I

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

Have you found the solution?

0 Kudos
Reply

2,435 Views
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 Kudos
Reply

2,428 Views
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 Kudos
Reply

2,422 Views
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 Kudos
Reply

2,415 Views
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 Kudos
Reply

2,410 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi Arvi

 

It seems you are using auto os ,right?

0 Kudos
Reply

2,406 Views
Arvi
Contributor I

Hi,

Yes i am doing on automotive. Thank you

Regards,

Aravind.

0 Kudos
Reply

2,267 Views
avdhutpandya
Contributor I

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

Have you found the solution?

0 Kudos
Reply