mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-19 08:57:00 -05:00
Fix block size for SCO
This commit is contained in:
parent
fcd7dc1fd7
commit
71f1d68dac
1 changed files with 5 additions and 1 deletions
|
|
@ -435,7 +435,11 @@ static int bt_setconf(struct userdata *u) {
|
||||||
}
|
}
|
||||||
|
|
||||||
u->transport = setconf_rsp->transport;
|
u->transport = setconf_rsp->transport;
|
||||||
u->block_size = u->link_mtu = setconf_rsp->link_mtu;
|
u->link_mtu = setconf_rsp->link_mtu;
|
||||||
|
if (u->transport == BT_CAPABILITIES_TRANSPORT_A2DP)
|
||||||
|
/* TODO: Check the max possible size */ u->block_size = u->link_mtu / 2;
|
||||||
|
else
|
||||||
|
u->block_size = u->link_mtu;
|
||||||
|
|
||||||
/* setup SBC encoder now we agree on parameters */
|
/* setup SBC encoder now we agree on parameters */
|
||||||
if (u->transport == BT_CAPABILITIES_TRANSPORT_A2DP) {
|
if (u->transport == BT_CAPABILITIES_TRANSPORT_A2DP) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue