<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I am new comer to this list, so pardon me if my question is not in the proper format.<br><br></div>I am using a linux custom board with following software specifications:<br></div>1. Linux Kernel - 3.14+<br></div>2. Bluez 5.36<br></div>3. Pulse audio 6.0<br></div>4. Ofono 1.16<br><br></div>I am trying to make handsfree profile on my board working.<br></div>I am using my Samsung GT-S7562 Android phone as audio gateway.<br><br></div><div>A2DP playback from mobile phone to my board is working fine.<br></div><div>But when I generate a call from my mobile phone, I cannot hear anything on my board.<br><br></div><div>I get a continuous print of "<i>module-loopback.c: Could not peek into queue</i>"<br></div><div>Again when I disconnect the call and start A2DP, it works fine.<br><br></div><div>"pacmd ls" shows that, I have two modules having "Bluez_Sink" as sink.<br></div><div>That means, Bluez_Source is connected to Bluez_Sink<br></div><div>and alsa_input is also connected to Bluez_Sink.<br><br></div><div>I made a change in module-bluez5-device.c and changed <br>[PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY] = PA_DIRECTION_INPUT | PA_DIRECTION_OUTPUT,<br></div><div>to<br>[PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY] = PA_DIRECTION_OUTPUT,<br><br></div><div>Then when I connect a call and speak in my board's microphone, voice is transmitted correctly.<br><br></div><div>But if I change <br>[PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY] = PA_DIRECTION_INPUT | PA_DIRECTION_OUTPUT,<br>to<br>[PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY] = PA_DIRECTION_INPUT,<br></div><div>again I cannot hear anything on my board's speaker and get continuous print stating<br>"<i>module-loopback.c: Could not peek into queue</i>"<br><br></div><div>Please help me with this issue.<br><br></div><div>Thanks</div></div>