[Pkg-bluetooth-maintainers] Bug#532098: bluez-alsa is silent, but mplayer complains loudly

Justus Winter 4winter at informatik.uni-hamburg.de
Wed Feb 10 16:04:45 UTC 2010


I ran into the same issue.

# dpkg -l | egrep 'bluetooth|bluez'
ii  bluetooth                                   4.60-1                                          Bluetooth support
ii  bluez                                       4.60-1                                          Bluetooth tools and daemons
ii  bluez-alsa                                  4.60-1                                          Bluetooth ALSA support
ii  bluez-cups                                  4.60-1                                          Bluetooth printer driver for CUPS
rc  bluez-gnome                                 0.27-1                                          Bluetooth utilities for GNOME
ii  bluez-gstreamer                             4.60-1                                          Bluetooth GStreamer support
ii  bluez-hcidump                               1.42-1+b1                                       Analyses Bluetooth HCI packets
ii  bluez-utils                                 4.60-1                                          Transitional package
ii  gnome-bluetooth                             2.28.6-2                                        GNOME Bluetooth tools
rc  libbluetooth2                               3.36-1                                          Library to use the BlueZ Linux Bluetooth stack
ii  libbluetooth3                               4.60-1                                          Library to use the BlueZ Linux Bluetooth stack
rc  libgnome-bluetooth2                         2.27.5-1                                        GNOME Bluetooth tools - support library
ii  libgnome-bluetooth7                         2.28.6-2                                        GNOME Bluetooth tools - support library
ii  pulseaudio-module-bluetooth                 0.9.21-1                                        Bluetooth module for PulseAudio sound server

$ head -n 5 .asoundrc
pcm.Justus {
	   type bluetooth
	   device 00:1A:7D:21:97:EE
	   profile "voice"
}
# hcitool cc 00:1A:7D:21:97:EE
# hcitool con
Connections:
	< ACL 00:1A:7D:21:97:EE handle 11 state 1 lm MASTER 

... master is dropped soon due to some timeout, but that's okay afaik...

$ mplayer -ao alsa:device=Justus ...
[...]
[AO_ALSA] alsa-lib: audio/pcm_bluetooth.c:1607:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
[AO_ALSA] Playback open error: Input/output error

some logs from the bluetoothd:

# pkill bluetoothd
# bluetoothd -nd
[... skipping to the mplayer invokation... ]
bluetoothd[8851]: Accepted new client connection on unix socket (fd=4)
bluetoothd[8851]: Audio API: BT_REQUEST <- BT_GET_CAPABILITIES
bluetoothd[8851]: sending error Input/output error(5)
bluetoothd[8851]: Audio API: BT_ERROR -> BT_GET_CAPABILITIES
bluetoothd[8851]: Unix client disconnected (fd=4)
bluetoothd[8851]: client_free(0x7fd5bf3f91f0)

The device is a cheap headset from logilab. I could actually use it with Ubuntu 9.04, so the device works and worked fine with linuz/bluez/alsa *at some point* in time. Oh, and I am running a kernel that I build on my own, but I also tested this with the stock debian kernel (linux-image-2.6.30-1-amd64):

# uname -a
Linux thinkbox 2.6.32.2 #16 SMP PREEMPT Thu Feb 4 16:36:21 CET 2010 x86_64 GNU/Linux
# fgrep _BT /boot/config-`uname -r`
CONFIG_BT=y
CONFIG_BT_L2CAP=m
CONFIG_BT_SCO=m
CONFIG_BT_RFCOMM=m
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=m
CONFIG_BT_BNEP_MC_FILTER=y
CONFIG_BT_BNEP_PROTO_FILTER=y
CONFIG_BT_HIDP=m
CONFIG_BT_HCIBTUSB=m
CONFIG_BT_HCIBTSDIO=m
CONFIG_BT_HCIUART=m
CONFIG_BT_HCIUART_H4=y
CONFIG_BT_HCIUART_BCSP=y
CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIBCM203X=m
CONFIG_BT_HCIBPA10X=m
CONFIG_BT_HCIBFUSB=m
CONFIG_BT_HCIDTL1=m
CONFIG_BT_HCIBT3C=m
CONFIG_BT_HCIBLUECARD=m
CONFIG_BT_HCIBTUART=m
CONFIG_BT_HCIVHCI=m
# CONFIG_BT_MRVL is not set
CONFIG_INPUT_ATLAS_BTNS=m
# CONFIG_VIDEO_BT848 is not set
# CONFIG_SND_BT87X is not set
CONFIG_BTRFS_FS=m
CONFIG_BTRFS_FS_POSIX_ACL=y

If you need any more information, please let me know.
Justus





More information about the Pkg-bluetooth-maintainers mailing list