[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cannot connect nokia 5800 audio to alsa/pulseaudio



Hello,


       I'm trying to connect by bluetooth a nokia 5800 to debian stable
audio system (alsa + pulseaudio).

       When I try to connect from the phone, the bluetooth applet display a
green spot, bluetooth devices dialog display orange, green, blue for a
while and the phone display a cannot connect message.

       The command arecord -v  -D bluetooth test.wav gives the following
messages:

Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
ALSA lib pcm_params.c:2150:(snd1_pcm_hw_refine_slave) Slave PCM not usable
arecord: set_params:1031: Broken configuration for this PCM: no
configurations available

after trying to connect to the phone. Sometimes the song played on the
phone stop playing. The phone stay connected for a short time.


       When I try to connect from Bluetooth devices dialog to Audio Source,
the connection is established, the phone appears as a source in sound
preferences, but the sound preferences dialog freezes with a message
"waiting for a reply from the sound system" and I cannot switch the input
source. While the phone is connected, the song stop playing on the phone
at random intervals.

The option Headset Service is available only after trying to connect from the phone to the audio system. The option Audio Source is available only after /etc/init.d/bluetooth restart.
Refresh Services remove these two services.

       Any suggestions ?


Nokia 5800 xm bluetooth profiles:
=================================
SDP, A2DP, AVRC, AVRCP, TCP, HSP, FTP, PBA, OPP, DUN, BIP, HFP, HID, SAP


/etc/asound.conf
================
@hooks [
           {
                   func load
                   files [
                           "/usr/share/alsa/bluetooth.conf"
                   ]
                   errors false
           }
]

pcm.pulse {
        type pulse
}

ctl.pulse {
        type pulse
}

pcm.!default {
        type pulse
}

ctl.!default {
        type pulse
}


/etc/bluetooth/audio.conf
==========================
# Configuration file for the audio service

# This section contains options which are not specific to any
# particular interface
[General]

# Switch to master role for incoming connections (defaults to true)
#Master=true

# If we want to disable support for specific services
# Defaults to supporting all implemented services
#Disable=Control,Source

Enable=Source,Sink,Headset,Gateway,Control,Socket,Media

# SCO routing. Either PCM or HCI (in which case audio is routed to/from
ALSA)
# Defaults to HCI
#SCORouting=PCM

# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect
the
# other one automatically so the default setting of true is usually a good
# idea.
AutoConnect=true

# Headset interface specific options (i.e. options which affect how the
audio
# service interacts with remote headset devices)
[Headset]

# Set to true to support HFP, false means only HSP is supported
# Defaults to true
HFP=true

# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
MaxConnected=1

# Just an example of potential config options for the other interfaces
[A2DP]
#SBCSources=1
#MPEG12Sources=0

dmesg
========
[    6.385114] usb 2-9.3: Product: BLUETOOTH USB +EDR ADAPTER v2.1 UHE
[    8.183571] Bluetooth: Core ver 2.15
[    8.183922] Bluetooth: HCI device and connection manager initialized
[    8.183958] Bluetooth: HCI socket layer initialized
[    8.325634] Bluetooth: Generic Bluetooth USB driver ver 0.6
[   29.037794] Bluetooth: L2CAP ver 2.14
[   29.037837] Bluetooth: L2CAP socket layer initialized
[   29.284040] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   29.284077] Bluetooth: BNEP filters: protocol multicast
[   29.288811] Bluetooth: RFCOMM TTY layer initialized
[   29.288852] Bluetooth: RFCOMM socket layer initialized
[   29.288885] Bluetooth: RFCOMM ver 1.11
[   29.477692] Bluetooth: SCO (Voice Link) ver 0.6
[   29.477728] Bluetooth: SCO socket layer initialized
[14261.837044] usb 2-9.3: Product: BLUETOOTH USB +EDR ADAPTER v2.1 UHE

package versions
==================
ii  bluedevil
1.0~rc3-2                              The KDE bluetooth stack
ii  blueman
1.21-4.1                               A Graphical bluetooth manager
ii  bluetooth
4.66-3                                 Bluetooth support
ii  bluez
4.66-3                                 Bluetooth tools and daemons
ii  bluez-alsa
4.66-3                                 Bluetooth ALSA support
ii  bluez-audio
4.66-3                                 Transitional package
ii  bluez-cups
4.66-3                                 Bluetooth printer driver for CUPS
ii  bluez-firmware
1.2-2                                  Firmware for Bluetooth devices
ii  bluez-gstreamer
4.66-3                                 Bluetooth GStreamer support
ii  bluez-utils
4.66-3                                 Transitional package
ii  gnome-bluetooth
2.30.0-2                               GNOME Bluetooth tools
ii  kdebluetooth
1:1.0~rc3-2                            dummy transition package for
kdebluetooth to bluedevil
ii  libbluedevil1
1.7+dfsg-1                             A Qt wrapper for bluez
ii  libbluetooth3
4.66-3                                 Library to use the BlueZ Linux
Bluetooth stack
ii  libgnome-bluetooth7
2.30.0-2                               GNOME Bluetooth tools - support
library
ii  pulseaudio-module-bluetooth
0.9.21-3+squeeze1                      Bluetooth module for PulseAudio
sound server

ii  alsa-base
1.0.23+dfsg-2                          ALSA driver configuration files
ii  alsa-oss
1.0.17-4                               ALSA wrapper for OSS applications
ii  alsa-utils
1.0.23-3                               Utilities for configuring and using
ALSA

ii  gnome-alsamixer
0.9.7~cvs.20060916.ds.1-2              ALSA sound mixer for GNOME

ii  libpulse-browse0
0.9.21-3+squeeze1                      PulseAudio client libraries
(zeroconf support)
ii  libpulse-mainloop-glib0
0.9.21-3+squeeze1                      PulseAudio client libraries (glib
support)
ii  libpulse0
0.9.21-3+squeeze1                      PulseAudio client libraries
ii  pulseaudio
0.9.21-3+squeeze1                      PulseAudio sound server
ii  pulseaudio-esound-compat
0.9.21-3+squeeze1                      PulseAudio ESD compatibility layer
ii  pulseaudio-module-bluetooth
0.9.21-3+squeeze1                      Bluetooth module for PulseAudio
sound server
ii  pulseaudio-module-gconf
0.9.21-3+squeeze1                      GConf module for PulseAudio sound
server
ii  pulseaudio-module-hal
0.9.21-3+squeeze1                      HAL to udev transitioning module
for PulseAudio sound server
ii  pulseaudio-module-jack
0.9.21-3+squeeze1                      jackd modules for PulseAudio sound
server
ii  pulseaudio-module-x11
0.9.21-3+squeeze1                      X11 module for PulseAudio sound
server
ii  pulseaudio-module-zeroconf
0.9.21-3+squeeze1                      Zeroconf module for PulseAudio
sound server
ii  pulseaudio-utils
0.9.21-3+squeeze1                      Command line tools for the
PulseAudio sound server

/var/log/syslog
==============
Nov  7 17:46:51 nvidia bluetoothd[7651]: link_key_request
(sba=00:0A:3A:87:0F:61, dba=00:24:04:F0:48:48)


Nov  7 17:40:54 nvidia NetworkManager[2204]: <info> BT device
00:24:04:F0:48:48 removed
Nov  7 17:40:54 nvidia avahi-daemon[2269]: Withdrawing workstation service
for pan0.
Nov  7 17:40:54 nvidia NetworkManager[2204]:    SCPlugin-Ifupdown: devices
removed (path: /sys/devices/virtual/net/pan0, iface: pan0)
Nov  7 17:40:54 nvidia bluetoothd[7567]: bridge pan0 removed
Nov  7 17:40:54 nvidia bluetoothd[7567]: Stopping SDP server
Nov  7 17:40:54 nvidia bluetoothd[7567]: Exit
Nov  7 17:40:54 nvidia obex-data-server: sdp_send_req_w4_rsp: Error
sending data:Broken pipe
Nov  7 17:40:54 nvidia obex-data-server: sdp_send_req_w4_rsp: Error
sending data:Broken pipe
Nov  7 17:40:55 nvidia bluetoothd[7605]: Bluetooth deamon 4.66
Nov  7 17:40:55 nvidia bluetoothd[7605]: Starting SDP server
Nov  7 17:40:55 nvidia bluetoothd[7605]: Starting experimental netlink
support
Nov  7 17:40:55 nvidia bluetoothd[7605]: Failed to find Bluetooth netlink
family
Nov  7 17:40:55 nvidia bluetoothd[7605]: Failed to init netlink plugin
Nov  7 17:40:55 nvidia bluetoothd[7605]: bridge pan0 created
Nov  7 17:40:55 nvidia bluetoothd[7605]: HCI dev 0 registered
Nov  7 17:40:55 nvidia NetworkManager[2204]: <warn> bluez error getting
default adapter: No such adapter
Nov  7 17:40:55 nvidia NetworkManager[2204]:    SCPlugin-Ifupdown: devices
added (path: /sys/devices/virtual/net/pan0, iface: pan0)
Nov  7 17:40:55 nvidia NetworkManager[2204]:    SCPlugin-Ifupdown: device
added (path: /sys/devices/virtual/net/pan0, iface: pan0): no ifupdown
configuration found.
Nov  7 17:40:55 nvidia NetworkManager[2204]: <warn>
/sys/devices/virtual/net/pan0: couldn't determine device driver;
ignoring...
Nov  7 17:40:55 nvidia bluetoothd[7605]: HCI dev 0 up
Nov  7 17:40:55 nvidia bluetoothd[7605]: Starting security manager 0
Nov  7 17:40:56 nvidia bluetoothd[7605]: ioctl(HCIUNBLOCKADDR): Invalid
argument (22)
Nov  7 17:40:56 nvidia bluetoothd[7605]: probe failed with driver
input-headset for device /org/bluez/7605/hci0/dev_00_24_04_F0_48_48
Nov  7 17:40:56 nvidia bluetoothd[7605]: Adapter /org/bluez/7605/hci0 has
been enabled
Nov  7 17:40:56 nvidia blueman-mechanism: Starting blueman-mechanism
Nov  7 17:40:56 nvidia bluetoothd[7605]: HCI dev 0 down
Nov  7 17:40:56 nvidia bluetoothd[7605]: Adapter /org/bluez/7605/hci0 has
been disabled
Nov  7 17:40:56 nvidia bluetoothd[7605]: Stopping security manager 0
Nov  7 17:40:56 nvidia bluetoothd[7605]: HCI dev 0 up
Nov  7 17:40:56 nvidia bluetoothd[7605]: Starting security manager 0
Nov  7 17:40:56 nvidia bluetoothd[7605]: Adapter /org/bluez/7605/hci0 has
been enabled


Nov 7 21:30:38 nvidia bluetoothd[16772]: link_key_request (sba=00:0A:3A:87:0F:61, dba=00:24:04:F0:48:48) Nov 7 21:30:38 nvidia pulseaudio[20873]: module.c: Failed to load module "module-bluetooth-device" (argument: "path=/org/bluez/16772/hci0/dev_00_24_04_F0_48_48 address=00:24:04:F0:48:48 profile=a2dp_source source_properties=device.icon_name=blueman card_properties=device.icon_name=blueman"): initialization failed. Nov 7 21:30:38 nvidia kernel: [28416.008297] input: 00:24:04:F0:48:48 as /devices/virtual/input/input47 Nov 7 21:30:39 nvidia pulseaudio[20873]: module-bluetooth-device.c: Assertion '(size_t) decoded == a2dp->frame_length' failed at modules/bluetooth/module-bluetooth-device.c:1367, function a2dp_process_push(). Aborting. Nov 7 21:30:39 nvidia pulseaudio[21197]: pid.c: Stale PID file, overwriting. Nov 7 21:30:40 nvidia pulseaudio[21197]: module-bluetooth-device.c: Assertion '(size_t) decoded == a2dp->frame_length' failed at modules/bluetooth/module-bluetooth-device.c:1367, function a2dp_process_push(). Aborting.
Nov  7 21:30:40 nvidia pulseaudio[21187]: main.c: Daemon startup failed.
Nov  7 21:30:40 nvidia pulseaudio[21208]: pid.c: Daemon already running.
Nov  7 21:30:40 nvidia pulseaudio[21210]: pid.c: Daemon already running.
Nov 7 21:30:40 nvidia pulseaudio[21213]: pid.c: Stale PID file, overwriting. Nov 7 21:30:41 nvidia pulseaudio[21213]: module-bluetooth-device.c: Assertion '(size_t) decoded == a2dp->frame_length' failed at modules/bluetooth/module-bluetooth-device.c:1367, function a2dp_process_push(). Aborting.
Nov  7 21:30:41 nvidia pulseaudio[21192]: main.c: Daemon startup failed.
Nov  7 21:30:41 nvidia pulseaudio[21223]: pid.c: Daemon already running.
Nov  7 21:30:41 nvidia pulseaudio[21225]: pid.c: Daemon already running.
Nov 7 21:30:41 nvidia pulseaudio[21226]: pid.c: Stale PID file, overwriting. Nov 7 21:30:42 nvidia pulseaudio[21226]: module-bluetooth-device.c: Assertion '(size_t) decoded == a2dp->frame_length' failed at modules/bluetooth/module-bluetooth-device.c:1367, function a2dp_process_push(). Aborting.


Reply to: