mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
bluez: Don't autodetect MTU by default
This breaks a lot of headsets, so disabling by default. Can be re-enabled in configuration for specific hardware where it is deemed necessary. Also added some debug logging to be able to examine what MTU size is reported by the device. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=102660
This commit is contained in:
parent
b4d1c298a2
commit
9e895b1725
3 changed files with 3 additions and 2 deletions
|
|
@ -206,6 +206,7 @@ static int sco_acquire_cb(pa_bluetooth_transport *t, bool optional, size_t *imtu
|
|||
if (getsockopt(sock, SOL_SCO, SCO_OPTIONS, &sco_opt, &len) < 0)
|
||||
pa_log_warn("getsockopt(SCO_OPTIONS) failed, loading defaults");
|
||||
else {
|
||||
pa_log_debug("autodetected imtu = omtu = %u", sco_opt.mtu);
|
||||
if (imtu) *imtu = sco_opt.mtu;
|
||||
if (omtu) *omtu = sco_opt.mtu;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2256,7 +2256,7 @@ int pa__init(pa_module* m) {
|
|||
goto fail_free_modargs;
|
||||
}
|
||||
|
||||
autodetect_mtu = true;
|
||||
autodetect_mtu = false;
|
||||
if (pa_modargs_get_value_boolean(ma, "autodetect_mtu", &autodetect_mtu) < 0) {
|
||||
pa_log("Invalid boolean value for autodetect_mtu parameter");
|
||||
goto fail_free_modargs;
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ int pa__init(pa_module *m) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
autodetect_mtu = true;
|
||||
autodetect_mtu = false;
|
||||
if (pa_modargs_get_value_boolean(ma, "autodetect_mtu", &autodetect_mtu) < 0) {
|
||||
pa_log("Invalid boolean value for autodetect_mtu parameter");
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue