PDA

View Full Version : A2dp


thesandbag
2007-11-22, 13:15
In the post describing how to install A2DP on OS2007 its been said that its a simple config change to get A2DP to work on OS2008, now i've changed the one i think it is (Audio.config in /etc/bluetooth/) but there isn't the a2dpd binary installed and the it won't connected to the paired bluetooth headphones. Has anybody succesfully got this to work yet or now of any instructions on how to do it. Thanks for anyboy who has this info.

lardman
2007-11-22, 13:55
You still need the a2dp binaries and something to use them (mplayer, Kagu, etc.)

Are these available for OS2008 yet?

thesandbag
2007-11-22, 15:20
Ahh ok, somebody had said it was just a config change, if thats the case ill look at tring it out tonight as they shouldn.t need much changing to work on os2008 as there low level and not effected by the gtk and hildon changes.

Johnx
2007-11-27, 04:16
That someone would be me (among others). ;) I'm relatively confident that with the changes made to bluez between OS2007 and OS2008 A2DP support is now included by default. AFAIK, all we need to do is uncomment the last two lines in /etc/bluetooth/audio.conf. Then to use A2DP all we should need to do is use any player capable of outputting to ALSA and select the "bluetooth" ALSA device. The problem I'm running into is that I can't seem to find any player for OS2008 that supports ALSA. MPlayer for OS2008 seems to not have the alsa audio out built in and mpg123 appears to be OSS only. Any thoughts?
-John

lardman
2007-11-27, 10:46
Ah, I thought Serge had enabled ALSA out on mplayer (certainly he had with the previous version).

Johnx
2007-11-27, 12:29
Nope. I'm sure it was enabled in the mplayer for OS2007. I double checked after you posted and here's what mplayer has to say for itself:
~ $ mplayer -ao help
MPlayer 1.0rc1-maemo.22.n8x0 (C) 2000-2006 MPlayer Team
CPU: ARM
Internet Tablet OS version: RX-34+RX-44_2008SE_1.2007.44-4_PR_MR0

Available audio output drivers:
esd EsounD audio output
gst Gstreamer audio output for Nokia 770
sdl SDLlib audio output
mpegpes Mpeg-PES audio output
null Null audio output
pcm RAW PCM/WAVE file writer audio output

~ $


That looks like no ALSA output to me. I guess I should poke at Serge.

-John

thesandbag
2007-11-27, 12:53
Yeah thats what i got, the old a2dpd binaries work after a bit of tweeking (one of the libaries has changed but after putting in a link it worked fine) but yeah the little problem with mplayer put the plan into the bin.

Beni
2007-11-28, 20:55
So does AD2P work with OS2008? Does it work with Kagu? Canola? UKMP?

Johnx
2007-11-29, 13:42
it *should* work. i ended up installing the .19 release of mplayer and it had alsa support, but it seems like my headphones had gotten paired to the tablet in the headset profile and didn't/couldn't change to the a2dp profile. i'm trying to dig into hcidump to see what's going on but i'm not that familiar wwith bluetooth at that low of a level. any ideas appreciated...

-john

thesandbag
2007-11-29, 14:03
Currently no, im looking at compiling mplayer to get alsa support but im not sure thats all it needs, i have an incling that a2dp has actualy been compiled out of bluez for os2008

pearl62
2007-12-05, 02:45
MPlayer 1.0rc1-maemo.23.n8x0 shows that it has ALSA support on my OS2008 N800, but I still can't hear anything. I uncommented the 2 lines in the A2DP section of audio.conf. Is something else required? How can I tell mplayer the address of the headphones?

BTW, the same headphones were working fine with mplayer under OS2007, so I know they should work...

bachviet
2007-12-05, 09:36
I installed UKMP and MPlayer (.23) in my N800 with the beta OS2008 (version 1.2007.44-4). I am using the Motorola BT820 stereo bluetooth headset and it works fine with both UKMP and MPlayer (sounds come out from both sides). I did not edit the audio.conf file.

thesandbag
2007-12-05, 12:53
Bachviet what exactly did you do to get this to work(i.e. did you install the copy of bluez used to do this on os2007) as i have been able to get this to work only by installing bluez and a2dpd, but this is quite buggy and choppy on os2008

Fadsjeik
2007-12-05, 13:48
Bachviet are you sure? Just cause sounds come out from both sides doesn't mean that the sound is stereo. Out of the box OS2008 should support mono, but you can immediately hear that the sound quality is plain awful.

bachviet
2007-12-05, 18:37
Bachviet are you sure? Just cause sounds come out from both sides doesn't mean that the sound is stereo. Out of the box OS2008 should support mono, but you can immediately hear that the sound quality is plain awful.

It's probably just mono sound coming out of both sides as the Moto BT820 profiles show only HFP & HSP (no A2DP).

I want to edit the Audio.conf file but there is no edit command with X-Term.

How did you edit this file so I could try.

pearl62
2007-12-05, 18:56
vi /etc/bluetooth/audio.conf

bachviet
2007-12-05, 19:36
Edit the file but sound still comes out as mono on both sides.

thesandbag
2007-12-06, 09:10
I am almost certain now that it doesn't support a2dp out of the box and the reports that it does are either people seeing the config file or people using hfs compliant a2dp headphones. I'm going to have a go at compiling a current version of bluez with a2dp support and see if i can get it to install.

Johnx
2007-12-06, 11:46
Its possible that some of this confusion might have been caused by me. If so, I apologize. After reading bug #667 (https://bugs.maemo.org/show_bug.cgi?id=667) i was fairly convinced that 2008OS would ship with a2dp. i've had no luck getting it working either, though.
thesandbag: good idea. keep us updated.

lardman
2007-12-06, 12:41
http://www.internettablettalk.com/forums/showpost.php?p=103403&postcount=42

thesandbag
2007-12-06, 13:08
Make sure the audio service is installed and enabled (file /etc/bluetooth/audio.service should exist)
modify your ~/.asoundrc to contain pcm.bluetooth {
type bluetooth
device 00:11:22:33:44:55
}
where 00:11:22:33:44:55 is the Bluetooth address of your headset (use for example hcitool scan to find it)
configure your audio application to use the alsa device "bluetooth". See Supported Players for some examples.
start playing :)

This is from the bluez howto (http://wiki.bluez.org/wiki/HOWTO/AudioDevices) so it may be true that its installed but not setup.

lardman
2007-12-06, 14:34
Afaict, the mplayer thread said that although ALSA was specified as a configure option, as the library wasn't installed, it silently ignored it. Therefore it's no wonder if doesn't work.

pearl62
2007-12-06, 16:18
Oddly, my installation (1.0rc1-maemo.23.n8x0) reports ALSA as present.

Fadsjeik
2007-12-06, 16:39
Oddly, my installation (1.0rc1-maemo.23.n8x0) reports ALSA as present.

Yes, but it doesn't work properly for video yet, hopefully it can be fixed. See the topic on mplayer http://www.internettablettalk.com/forums/showthread.php?t=12046&page=6