I’ve followed the guideline here to edit config.xml in /packages/apps/Bluetooth/res/values and mixer_paths_sbc.xml in \device\qcom\msm8916_32 to enable HFP client support in Android L (branch 1.2.4). The build completed without any error and I can flash the board and boot to the new system. However, I couldn’t find a way to test the new setup.
The BTTestApp doesn’t list the HFP (HF) profile and by the way only the PSE profile works with my iPhone. I’ve also tried to build the HFPClient available on Github but it is also missed the HFP (HF) profile. So, I would greatly appreciate if someone can help me with this issue.
Thank you for the information. I’ve followed the steps and everything works e.g. I can receive a call and the audio seems to be routed to the board as the phone speaker becomes silence. However, there is no sound coming out of the headphone jack on the Audio Mezzanine board or my HDMI monitor’s internal speaker.
I’ve edited mixer_path_sbc.xml according to the suggestion from @ljking in this post. However, I’ve added one XML closing tag on the line commented as it seems to be missing. Do you have any idea about what may cause this issue? Thank you.
<ctl name="QUAT_MI2S_RX Port Mixer INTERNAL_BT_SCO_TX" value="1" />
<ctl name="INTERNAL_BT_SCO_RX Audio Mixer MultiMedia6" value="1" />
<ctl name="MultiMedia6 Mixer TERT_MI2S_TX" value="1" />
<ctl name="HFP_INT_UL_HL Switch" value="1" />
<ctl name="QUAT_MI2S_RX_DL_HL Switch" value="1" />
</path> <!-- This line seems to be missing in the original post -->
<ctl name="Internal BTSCO SampleRate" value="16000" />
<path name="hfp-sco" />
Sorry for the late reply. It takes me few days as the system won’t boot after performed those edits so I need to compile the whole thing again.
On the other hand, after follow all the steps suggested again, the other side can now hear me from the headset microphone but I still can’t hear the other side through my headset or the speaker on my HDMI display. However, if I play some music from my phone (after execute setprop persist.service.bt.a2dp.sink true), I can hear the music through my headset.
Do you have any idea what could I try? Thank you again for your help.
Currently, I can speak to the other side through the headset connect to the dragon board but I couldn’t hear the other side from the same headset. The other side can hear my voice and also the echo of their voice when they speak which they shouldn’t be. The headset is working correctly as I can listen to music stream to the board via Bluetooth. I believe that there are some problems with my audio routing. Do you have any idea how should I proceed? Thank you.
Thank you very much for you help. I have tried the commands above but tinyplay seems to fail for every wave file I have. However, I can listen to music stream from my phone but I still can’t hear the other side.