Make btsco headset (a bluetooth device) work
PATCH 1/1 Make btsco headset (a bluetooth device) work
Make btsco headset (a bluetooth device) work.
Reference: https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.15/+bug/48910
Signed-off-by Ben Collins <[email protected]>
---
net/bluetooth/hci_event.c +0 -0
@@ -320,9 +320,9 @@
} hdev->acl_mtu = __le16_to_cpu(bs->acl_mtu); - hdev->sco_mtu = bs->sco_mtu ? bs->sco_mtu : 64; + hdev->sco_mtu = (bs->sco_mtu < 64) ? 64 : bs->sco_mtu; hdev->acl_pkts = hdev->acl_cnt = __le16_to_cpu(bs->acl_max_pkt);
- hdev->sco_pkts = hdev->sco_cnt = __le16_to_cpu(bs->sco_max_pkt);
+ hdev->sco_pkts = hdev->sco_cnt = bs->sco_max_pkt ? __le16_to_cpu(bs->sco_max_pkt) : 8;
BT_DBG("%s mtu: acl %d, sco %d max_pkt: acl %d, sco %d", hdev->name,
hdev->acl_mtu, hdev->sco_mtu, hdev->acl_pkts, hdev->sco_pkts);Marcel Holtmann
maintainerHi Randy,
Quoted 4 lines
Make btsco headset (a bluetooth device) work.
Reference: https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.15/+bug/48910
this patch is not ready for mainline. The -mm kernel contains a more better patch to address this problem, but even that should not end up in mainline. I am working on a real solution for this issue.
Regards
Marcel