Re: [Bluez-users] Motorola S9 and BlueZ 4.14

"Patryk Zawadzki" <[email protected]> Sun, 19 Oct 2008 19:06:06 +0200
Newsgroups gmane.linux.bluez.devel
Message-ID <[email protected]>
On Sun, Oct 19, 2008 at 6:54 PM, Patryk Zawadzki <[email protected]> wrote:
> On Sun, Oct 19, 2008 at 6:35 PM, Johan Hedberg <[email protected]> wrote:
>> Hi,
>>
>> I'm still investigating this, but it seems it's caused by patch
>> e303ffce67951a29d822c8c819e74e2c70c297d7 from Luiz which forgot to
>> remove set_state(OPEN) from avdtp_open_cmd() (his patch changes OPEN
>> state change for the initiator case from the response reveiving to the
>> stream L2CAP channel establishment). All in all looking at the AVDTP
>> spec 1.2 it seems Luiz's patch isn't correct since according to figure
>> 6.9 (page 35) the OPEN state should be entered *before* the stream
>> L2CAP channel is established.
> Ineed removing the set_state call from avdtp_open_cmd causes the
> device to initialize correctly and even work with pulseaudio. If this
> is correct according to the specification it is indeed the fix for the
> case of Motorola S9.

Also after getting the device to connect I get a second duplicate:

bluetoothd[24705]: Audio API: sending BT_STREAMSTART_RSP
bluetoothd[24705]: Audio API: sending BT_STREAMFD_IND
bluetoothd[24705]: setup_unref(0xb9c67a70): ref=1
bluetoothd[24705]: setup_unref(0xb9c67a70): ref=0
bluetoothd[24705]: setup_free(0xb9c67a70)
bluetoothd[24705]: avdtp_unref(0xb9c5d468): ref=3
DEBUG: trying to change stream state from 3 to 3
bluetoothd[24705]: stream state change failed: Input/output error

-- 
Patryk Zawadzki

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/