Our software is based on 4AJ2.1 release.
Based on http://www.omappedia.com/wiki/Audio_Drive_Arch, in our device, microphone is connected in DMIC1 port and speaker in MM_EXT_OUT back end. Both speaker and mic work fine.
Because our device is in HF role, after few days research, my initial guess is: after adev->mode is set as AUDIO_MODE_IN_CALL in audio_hw.c, I need to mix BT-VX-UL link and DMIC1_UL link,and send them to the speaker location(MM_EXT_OUT).
In tinymix, for bluetooth audio :
Set MUX_VX0/1 as BT Left/Right
Enable Sidetone Mixer Capture/Playback
Enable DL1 BT_VX Switch
For microphone:
Set MUX_UL10/11 as DMic0L/R
Enable DL1 Mixer Capture
Enable SDT mono Mixer
After picking up the mobile phone call, I still cannot hear any voice from the speaker. My questions can be summarized as:
1. How to route audio link properly described above?
2. Any extra changes needed to switch the orginal AG role into HF role? Thanks!