[maemo-users] a2dp not working, any help appreciated

From: Simon Pickering S.G.Pickering at bath.ac.uk
Date: Mon Aug 6 12:40:44 EEST 2007
Hello all,

I just bought an A2DP headset (Jabra bt320s) and was trying to get it 
to play some music as per the instructions here (SBC DSPsink might be 

I followed all of the instructions, but no music and the headphones 
flash (indicating that they are not connected according to the 
instruction manual). I'm afraid Bluetooth is a bit of a black art to me 
so any help would be appreciated.

The output of mplayer is:

Nokia-N800-26:~# mplayer -ac ffmp3 -ao alsa:device=a2dpd2 
/media/mmc2/Laura\ Gre
ene-Moonlight,\ Music\ And\ You.mp3
MPlayer 1.0rc1-maemo.17.n800 (C) 2000-2006 MPlayer Team
[MENU] Can't open menu config file: /root/.mplayer/menu.conf
Menu inited: /etc/mplayer/menu.conf

Playing /media/mmc2/Laura Greene-Moonlight, Music And You.mp3.

Audio file file format detected.
Clip info:
  Title: Moonlight, Music And You
  Artist: Laura Greene
  Genre: Other
Forced audio codec: ffmp3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio decoder)
alsa-lib: pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM a2dpd2
alsa-init: playback open error: No such file or directory
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video

It appears that the audio device isn't present. Is this because the 
headphones have not been 'captured' and a dev entry created for them?

I started a2dpd before I switched the headphones on and expected it to 
have output something when I switched them on, but it just remains like 

Nokia-N800-26:/root$ a2dpd
A2DPD[09:53:11.567]: init_ipc: Selected IPC: unix, addr=, 
bcst=, port=21453
A2DPD[09:53:11.568]: make_daemon_process: a2dpd [Jun  9 2007 00:16:35] 
starting ...
A2DPD[09:53:11.570]: main: (errno=9:Bad file descriptor)a2dpd 
addr=00:16:8F:06:95:3D timer=0 us [Jun  9 2007 00:16:41]
A2DPD[09:53:11.571]: a2dpd_signal_init: Getting on DBUS
A2DPD[09:53:11.599]: a2dpd_signal_init: Installing watch
A2DPD[09:53:11.603]: add_dbus_watch: Added watch 0 0x66978 disabled
A2DPD[09:53:11.605]: add_dbus_watch: Added watch 1 0x669a0 enabled
A2DPD[09:53:11.607]: a2dpd_signal_init: Registering object path: 
A2DPD[09:53:11.611]: a2dpd_signal_init: Acquiring service: com.access.a2dpd
A2DPD[09:53:11.622]: a2dpd_signal_init: OK
A2DPD[09:53:11.624]: a2dpd_signal_init: OK
A2DPD[09:53:11.627]: a2dpd_register_sdp: Start
A2DPD[09:53:11.630]: add_avrtg:
A2DPD[09:53:11.636]: add_a2source:
A2DPD[09:53:11.639]: a2dpd_register_sdp: OK
A2DPD[09:53:11.641]: main_loop:
A2DPD[09:53:11.645]: make_server_socket:
A2DPD[09:53:11.648]: bta2dpdevicenew:
A2DPD[09:53:11.651]: a2dpd_signal_address_changed: 00:16:8F:06:95:3D
A2DPD[09:53:11.654]: a2dpd_signal_set_socket: Signal socket set to 7
A2DPD[09:53:11.667]: a2dpd_signal_state: Disconnected
A2DPD[09:53:11.671]: a2dp_alloc:
A2DPD[09:53:11.674]: a2dp_alloc: (a2dp = 0x6a180)
A2DPD[09:53:11.676]: a2dp_new: 00:16:8F:06:95:3D, 44100
A2DPD[09:53:11.679]: a2dp_new: State AVDTP_STATE_DISCONNECTED
A2DPD[09:53:11.681]: alsa_new:
A2DPD[09:53:11.684]: alsa_new: device=plughw:0,0, framerate=44100
A2DPD[09:53:11.687]: alsa_new: State ALSA_STATE_DISCONNECTED
A2DPD[09:53:11.690]: alsa_new: returning 0x6c318
A2DPD[09:53:11.692]: sco_new:
A2DPD[09:53:11.695]: sco_new: State SCO_STATE_DISCONNECTED
A2DPD[09:53:11.697]: sco_state_disconnect: Filtering state : already 
A2DPD[09:53:11.700]: main_loop: Bluetooth Device Settings [44100 hz, 2 
channels, 16 bits]
A2DPD[09:53:11.715]: avrcp_new: Listening for AVRCP on socket 9
A2DPD[09:53:11.717]: avrcp_new: 0x6c428

Is this expected behaviour?

For completeness (and interest) here's the output of hcitool info on 
the address of the headphones:

Nokia-N800-26:~# hcitool info 00:16:8F:06:95:3D
Requesting information ...
         BD Address:  00:16:8F:06:95:3D
         LMP Version: 2.0 (0x3) LMP Subversion: 0xd55
         Manufacturer: Cambridge Silicon Radio (10)
         Features: 0xbf 0xfe 0x8b 0x78 0x18 0x18 0x00 0x80
                 <3-slot packets> <5-slot packets> <encryption> <slot offset>
                 <timing accuracy> <role switch> <sniff mode> <RSSI>
                 <channel quality> <SCO link> <HV2 packets> <HV3 packets>
                 <u-law log> <A-law log> <CVSD> <paging scheme>
                 <transparent SCO> <broadcast encrypt> <enhanced iscan>
                 <interlaced iscan> <interlaced pscan> <inquiry with RSSI>
                 <AFH cap. slave> <AFH class. slave> <AFH cap. master>
                 <AFH class. master> <extended features>

One last thing, I did (also) pair the headphones with the N800 using 
the Bluetooth applet on the control panel, not sure if this would cause 
a problem.

Thanks in advance,


More information about the maemo-users mailing list