I have created a module in HAL layer for hfp & have modified the audio policy to go to hfp in HAL.
Everythings working smothly except , We have integrated an application(SmartEar
Mac Tools - SmartEAR 3 - Android Apps on Google Play
)with our tool which records the data through Bluetooth & writes the recorded data that in audio out (headphone ) at the same time which is like a real-time noise detection .
The recording part of the application works fine , But when we connect headphone we are not able to hear any
noise recorded from Bluetooth.
What all changes has to be done in HAL to overcome this problem
I am attaching the files for what all changes we have done in HAL to support HFP
Original Attachment has been moved to: config_bt_sco.h.zip
Original Attachment has been moved to: tinyalsa_hal.c.zip
Original Attachment has been moved to: audio_hardware.h.zip