Hello Guys,
I did some tests about bluetooth and I would to share some results for help in solving this annoying bug.
I have a Meizu pro 5 with 15.04r3and as I said before with Bluetooth Music Player is working fine but calls sound is disturbed.
I realized that:
- Music Player comunincates with bluetooth headphone trough a2dp_sink (ACL) protocol;
- SCO (HSP/HFP) protocol is not working.
I did some modification to the file:
/etc/pulse/touch.pa
I commented out the load of the two module-null-sink and I modified the module-bluez5-discover
in the following way:
load-module module-bluez5-discover headset=both
With this modification I tryied to reproduce some wav tracks with the tools paplay in this way:
pactl set-card-profile <bluetooth card number> a2sp_sink
paplay -v -d bluez_sink<my bluetooth card macaddres> tracks.wav
Sound it's ok, and with hciconfig I saw ACL TX packtes growing, in this way:
pactl set-card-profile <bluetooth card number> headsset_head_unit
paplay -v -d bluez_sink<my bluetooth card macaddres> tracks.wav
paplay hangs and with hciconfig not packtes are sent. So I apply this patch to broadcom bluetooth chip:
https://freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Bluetooth/
hcitool cmd 0x3F 0x01C 0x01 0x02 0x00 0x01 0x01
And I try again to reproduce the track with this command:
pactl set-card-profile <bluetooth card number> headsset_head_unit
paplay -v -d bluez_sink<my bluetooth card macaddres> tracks.wav
Finally it works and with hciconfig I saw TX SCO packets growing.
Then I try to start a Call with telephony-service but not sound!
Can you say me which is the default sink for telephony-service??
Conclusion: I think that the sound it's disturbed because OFONO packets are sent to "bluetooth haedset" with ACL protocol and not SCO protocol as it should.
I hope that this can help you. I continue to debug the problem and I hope to find a solution.
Best Regards