speculatrix's Avatar
Posts: 880 | Thanked: 264 times | Joined on Feb 2007 @ Cambridge, UK
#281
Woohoo, I have working A2DP working to my Moto S705! I followed the instructions here: http://www.guardiani.us/index.php/N8...Bluetooth_ALSA

Except... I only installed SBC and plugz, as the mplayer package in the standard repository understands a2dp/bluez now.

plugz is a tad out of date, I had to force ignoring a dependency and hack in a symlink for compatibility:
Code:
dpkg -i --ignore-depends=libdbus-1-2 plugz-svn_20070608-1_armel.deb
cd /usr/lib
ln -s libdbus-1.so.3.2.0 libdbus-1.so.2
but it worked!

a2dpd eats 35% CPU all the time though


--edit--
snag... if you're a2dp streaming from the n800 and the Moto S705 headset is simultaneously connected by SCO audio to a mobile phone, ringing the mobile phone makes the S705 try and stop the stream, it fails of course, the phone loses its connection, the S705 seems to hang.
so, my guess is that without the AVRCP stuff, I'm only halfway to using the n800 as a cordless media player.

--edit2--
Having managed to trawl through the thread I've relalised that I achieved the original way of doing things, so I've retraced my steps to remove the packages above and try and get it working as per the first post.

--edit3--
I added the following to the mplayer config file which makes the command-line much quieter:
Code:
quiet=1                                  
really-quiet=1

Last edited by speculatrix; 2009-01-02 at 18:14.
 
speculatrix's Avatar
Posts: 880 | Thanked: 264 times | Joined on Feb 2007 @ Cambridge, UK
#282
Originally Posted by qwerty12 View Post
I've edited the a2dp script:
http://pastebin.com/f1911d4b2

This one automatically switches on bluetooth, enables a2dp for mplayer & xmms too. I've also made it pop up "bubble type" notifications instead of dialog ones.
I added a check for the existence of /home/user/.xmms/config

BTW, Simon/lardman, has the DSP code for the SBC coder been adopted yet, will it be in the standard bluez-utils version 3.28-0osso6?
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#283
No, the DSP code hasn't been adopted (I've not tried to get it adopted either, I'm happy maintaining it in Garage for the time being). Regarding the whole load of patches currently going into SBC at the moment (lots from Serge of mplayer fame), these are patches against Bluez 4.x, though they are simple to backport.

I'll do said backporting soon, just waiting to see when Serge's patches slow down a bit so I don't have to keep releasing newer versions as the patches improve performance.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#284
http://people.bath.ac.uk/enpsgp/noki..._armel.deb.arm

Remove the .arm on the end and install with dpkg -i

It is the same version as on our N8x0s, with the exception that I replaced the sbc stuff with the latest patched version from Bluez 4.26.

There's no DSP stuff in this version, just plain ARM code, so if you use a2dp but aren't too fussed about testing my DSP code, don't worry

I've not had a chance to test this deb yet as my headset is charging atm, please let me know if there are any problems. It should sound better though as I've been using an earlier version of these patches for my DSP code and it sounds better to me
 

The Following 2 Users Say Thank You to lardman For This Useful Post:
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#285
Can you send patch against bluez-utils 3.28-0osso6?
I have problem with this version of bluez.
Headphone pause button doesn't work.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#286
Well I've not fiddled with any of the avrcp stuff. I can do you a patch, but not till this evening. In the meantime you can do it yourself quite easily.

Download the maemo version of bluez-utils from here: http://repository.maemo.org/pool/mae...b/bluez-utils/

and simply replace the contents of the sbc subdir with that from bluez-4.26 from here: http://www.kernel.org/pub/linux/blue...ez-4.26.tar.gz

Do let us know what's wrong with avrcp if you find out.
 
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#287
Thank you. I understand.
Once more question. Do you have problem with bison while compile bluez?
I had to compile bison from Debian sources instead of using one form maemo's repo.
Maemo's bison want work also while I compile another packages.
The same think with flex too.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#288
No, worked fine for me.

I downloaded the bluez packages from the maemo.org repo as detailed above, then did the following:

dpkg-source -x bluez-utils_3.28-0osso6.dsc

Then I copied in the sbc directory from Bluez-4.26

Then I did:

cd bluez-utils-3.28
dpkg-buildpackage -rfakeroot

and the package builds and produces the deb I uploaded.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#289
Right, I've finally got round to testing my deb, it works fine. In fact it's pretty bloody good now (the audio quality). Much respect to Siarhei Siamashka for the patches to Bluez.

P.S. It will probably depend on the particular file you're trying to play mind you, and the CPU load (as we're talking about an ARM-only solution here). I'll get round to porting the changes to the DSP asap.
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#290
Do anybody know how to compile sbcenc.o from svn?
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 06:31.