Donate Share

Bluetooth alsa

Tracker: Bugs

5 moto HT820, works with a2play, doesn't work with alsa plugin - ID: 1450704
Last Update: Comment added ( bryanhundven )

a2play works pretty well (the sound is a tiny bit
scratchy). When trying to use the alsa plugin I get this:
DEBUG: _snd_pcm_a2dp_open: name pcm.headphone mode 0
DEBUG: _snd_pcm_a2dp_open: bdaddr/dest is 00:07:A4:B6:F9:71
DEBUG: a2dp_alloc: init
DEBUG: a2dp_connect: a2dp 0x74f0a0
DEBUG: connect_l2cap: Can't connect to
71:F9:B6:A4:07:00 on psm 25. Resource temporarily
unavailable(11)
DEBUG: connect_l2cap: Can't connect to
71:F9:B6:A4:07:00 on psm 25. Resource temporarily
unavailable(11)
DEBUG: connect_l2cap: Connected [imtu 672, omtu 895,
flush_to 65535]
DEBUG: connect_stream: Sent the Stream End Point
Discovery Command
DEBUG: connect_stream: retrying discover response read...
DEBUG: connect_stream: Got a Stream End Point Discovery
Response
DEBUG: connect_stream: received 1 capabilities
DEBUG: process_seid: SEID = 1
DEBUG: process_seid: Requested Capabilities for SEID = 1
DEBUG: process_seid: Got capabilities response
DEBUG: process_seid: headset does not support this
channel mode
DEBUG: process_seid: headset does not support this
allocation_method
DEBUG: process_seid: headset does not support this
subbands setting
DEBUG: process_seid: Sent set configurations command
DEBUG: process_seid: Set configurations command rejected
DEBUG: process_seid: Sent open stream command
DEBUG: process_seid: Didn't receive open response
confirm for SEID = 1
DEBUG: connect_stream: couldn't locate the correct seid

While attempting to use the alsa plugin I get the
following from hcidump -aV:

HCI sniffer - Bluetooth packet analyzer ver 1.28
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:07:A4:B6:F9:71 ptype 0xcc18 rswitch 0x01
clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Link Key Request (0x17) plen 6
bdaddr 00:07:A4:B6:F9:71
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
bdaddr 00:07:A4:B6:F9:71 key
ECC1F7E4BC91A906A44D0ACF3481FC93
> HCI Event: Command Complete (0x0e) plen 10
Link Key Request Reply (0x01|0x000b) ncmd 1
status 0x00 bdaddr 00:07:A4:B6:F9:71
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 2 bdaddr 00:07:A4:B6:F9:71 type
ACL encrypt 0x01
< ACL data: handle 2 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 25 scid 0x0040
< HCI Command: Write Link Policy Settings (0x02|0x000d)
plen 4
handle 2 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Max Slots Change (0x1b) plen 3
handle 2 slots 5
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 2
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 2 packets 1
> ACL data: handle 2 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0068 scid 0x0040
result 1 status 2
Connection pending - Authorization pending
> ACL data: handle 2 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0068 scid 0x0040
result 0 status 0
Connection successful
< ACL data: handle 2 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0068 flags 0x00 clen 0
> ACL data: handle 2 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 895
< ACL data: handle 2 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0068 flags 0x00 result
0 clen 0
Success
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 2 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 2 packets 1
> ACL data: handle 2 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result
0 clen 0
Success
< ACL data: handle 2 flags 0x02 dlen 7
L2CAP(d): cid 0x0068 len 3 [psm 25]
AVDTP(s): Discover cmd: transaction 0
.
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 2 packets 1
> ACL data: handle 2 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 25]
AVDTP(s): Discover rsp: transaction 0
ACP SEID 1 - Audio Sink
< ACL data: handle 2 flags 0x02 dlen 7
L2CAP(d): cid 0x0068 len 3 [psm 25]
AVDTP(s): Capabilities cmd: transaction 1
ACP SEID 1
< ACL data: handle 2 flags 0x02 dlen 18
L2CAP(d): cid 0x0068 len 14 [psm 25]
AVDTP(s): Set config cmd: transaction 2
ACP SEID 1 - INT SEID 1
Media Transport
Media Codec - SBC
44.1kHz
Stereo
16 Blocks
8 Subbands
SNR
Bitpool Range 241-170
< ACL data: handle 2 flags 0x02 dlen 7
L2CAP(d): cid 0x0068 len 3 [psm 25]
AVDTP(s): Open cmd: transaction 3
ACP SEID 1
< ACL data: handle 2 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0068 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 2 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 2 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 2 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 2 packets 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 2 reason 0x08
Reason: Connection Timeout

I really am out of my depth in all this, but the
"Bitpool Range" looks funny to me. When I successfully
use a2play it gives a very different "Bitpool Range:"

> ACL data: handle 4 flags 0x02 dlen 16
L2CAP(d): cid 0x0041 len 12 [psm 25]
AVDTP(s): Capabilities rsp: transaction 1
Media Transport
Media Codec - SBC
16kHz 32kHz 44.1kHz 48kHz
Mono DualChannel Stereo JointStereo
4 8 12 16 Blocks
4 8 Subbands
SNR Loudness
Bitpool Range 2-33
< ACL data: handle 4 flags 0x02 dlen 18
L2CAP(d): cid 0x0045 len 14 [psm 25]
AVDTP(s): Set config cmd: transaction 2
ACP SEID 1 - INT SEID 1
Media Transport
Media Codec - SBC
44.1kHz
Stereo
16 Blocks
8 Subbands
SNR
Bitpool Range 2-33


If you need more info please email me. I'd love to get
this working with the alsa plugin. Oh, and I don't know
if this matters but this is on an AMD64 / Ubuntu Dapper
Drake, but I got similar results on an i386 (Athlon) /
Debian Sid box. Also, a2play works quite well on my
Sharp Zaurus C1000 in fixed point mode.

-John ( johnxx@gmail.com )


Nobody/Anonymous ( nobody ) - 2006-03-15 21:13

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2007-11-23 19:12
Sender: bryanhundven


I have the same issues with current Debian Lenny and Debian Sid.
I even followed the howto with a fresh install:
http://bluetooth-alsa.sourceforge.net/build.html

If it is just that you don't have an HT820, they are only $65 on some of
the cheapo-e-sites, and I would be happy to buy the bluetooth-alsa project
one for testing just to get this damn thing to work.

Thanks in advance,

Bryan


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.