pulseaudio/src/modules/bluetooth
Renjith Thomas fb6b8dfdec bluetooth: fix distorted audio during Bluetooth SCO HFP/HSP playback
Issue: When HFP/HSP profile is used with certain BT chipsets, the
audio sounds heavily distorted, with very slow playback full of noise.
During recording, the samples are dropped and it distorts the recorded
audio samples.

The root cause of both the issues are related to the fixed MTU sizes
in the PA stack, which is 48 bytes. Here, the BT chipset CC256x had
180 bytes MTU and it was being under-utilized and the rate at which
the samples were being accepted where not matching the expected rate,
and hence the distortion.

Solution: The appropriate solution to this problem is by reading the
MTU size of the SCO socket using getsockopts dynamically.

BugLink: http://bit.ly/2gDpGPv
BugLink: http://bit.ly/2hQsARK
2017-01-19 03:00:45 +02:00
..
a2dp-codecs.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
backend-native.c bluetooth: fix distorted audio during Bluetooth SCO HFP/HSP playback 2017-01-19 03:00:45 +02:00
backend-ofono.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
bluez4-util.c bluetooth: Reorganize code to avoid Coverity NULL dereference warning 2016-08-17 17:32:03 +02:00
bluez4-util.h bluetooth: unify BlueZ 4 and BlueZ 5 profile constant names 2016-08-10 21:37:33 +03:00
bluez5-util.c bluetooth: refactor BlueZ 4 transport state setting 2016-08-10 21:37:33 +03:00
bluez5-util.h bluetooth: unify BlueZ 4 and BlueZ 5 UUID handling 2016-08-10 21:37:33 +03:00
module-bluetooth-discover.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
module-bluetooth-policy.c bluetooth: Add optional heuristic for switching between hsp and a2dp profiles 2017-01-19 03:00:45 +02:00
module-bluez4-device.c don't assume that pa_asyncq_new() always succeeds 2016-12-20 01:19:06 +02:00
module-bluez4-discover.c bluetooth: Fix dead code 2016-08-16 10:31:44 +02:00
module-bluez5-device.c don't assume that pa_asyncq_new() always succeeds 2016-12-20 01:19:06 +02:00
module-bluez5-discover.c bluetooth: Prevent aborts caused by invalid module arguments 2016-01-15 16:20:53 +05:30
rtp.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00