Skip to contentSkip to conversation

Make btsco headset (a bluetooth device) work

PATCH In review Randy Dunlap 2 participants 2 messages Jun 14, 2006 – Jun 15, 2006 Bluetooth

lore
Share & tools
lore
#0 lore raw

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

http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-dapper.git;a=commitdiff;h=e9cb99036e650dabc5e9d7037d5a728176b42aca

---

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);
maintainer
#1 lore raw

Hi 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

http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-dapper.git;a=commitdiff;h=e9cb99036e650dabc5e9d7037d5a728176b42aca

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