----- Original Message ----
From: Guillaume Bedot <littletux@zarb.org>
To: bluez-users@lists.sourceforge.net
Sent: Monday, 18 February, 2008 8:11:19 PM
Subject: Re: [Bluez-users] Headset not playing audio HELP PLEASE
Quoting
Guillaume
Bedot
<
littletux@zarb.org>:
>
>
This
patch
makes
the
kernel
search
for
both
types
when
receiving
>
"Synchronous
Connection
Complete"
event.
>
Sorry,
the
patch
in
the
previous
paost
was
incomplete
/
buggy,
you'd
rather
try
the
included
one.
-----Inline Attachment Follows-----
---
net/bluetooth/hci_event.c.orig
2008-02-18
14:02:20.000000000
+0100
+++
net/bluetooth/hci_event.c
2008-02-18
15:19:04.000000000
+0100
@@
-1313,8
+1313,15
@@
hci_dev_lock(hdev);
conn
=
hci_conn_hash_lookup_ba(hdev,
ev->link_type,
&ev->bdaddr);
-
if
(!conn)
-
goto
unlock;
+
if
(!conn)
{
+
if
(ev->link_type==SCO_LINK)
{
+
conn
=
hci_conn_hash_lookup_ba(hdev,
ESCO_LINK,
&ev->bdaddr);
+
if
(!conn)
+
goto
unlock;
+
else
+
conn->type=SCO_LINK;
+
}
+
}
if
(!ev->status)
{
conn->handle
=
__le16_to_cpu(ev->handle);