[pulseaudio-discuss] Handsfree profile on my board is not working

Kewal Agola kewalagola at gmail.com
Wed Dec 23 09:27:51 PST 2015


Hi,

I am new comer to this list, so pardon me if my question is not in the
proper format.

I am using a linux custom board with following software specifications:
1. Linux Kernel - 3.14+
2. Bluez 5.36
3. Pulse audio 6.0
4. Ofono 1.16

I am trying to make handsfree profile on my board working.
I am using my Samsung GT-S7562 Android phone as audio gateway.

A2DP playback from mobile phone to my board is working fine.
But when I generate a call from my mobile phone, I cannot hear anything on
my board.

I get a continuous print of "*module-loopback.c: Could not peek into queue*"
Again when I disconnect the call and start A2DP, it works fine.

"pacmd ls" shows that, I have two modules having "Bluez_Sink" as sink.
That means, Bluez_Source is connected to Bluez_Sink
and alsa_input is also connected to Bluez_Sink.

I made a change in module-bluez5-device.c and changed
[PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY] = PA_DIRECTION_INPUT |
PA_DIRECTION_OUTPUT,
to
[PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY] = PA_DIRECTION_OUTPUT,

Then when I connect a call and speak in my board's microphone, voice is
transmitted correctly.

But if I change
[PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY] = PA_DIRECTION_INPUT |
PA_DIRECTION_OUTPUT,
to
[PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY] = PA_DIRECTION_INPUT,
again I cannot hear anything on my board's speaker and get continuous print
stating
"*module-loopback.c: Could not peek into queue*"

Please help me with this issue.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20151223/992dbc38/attachment.html>


More information about the pulseaudio-discuss mailing list