Reply
Thread Tools
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#241
I followed the howto and a2dp works on my n810 diablo. No Problems so far. But
with dsp-sbc enabled mplayer only plays half of my podcasts correctly. The other half is sort of distorted.
The only hint I found was this line in dmesg.
From correct sound:
frequency=2
blocks=3
subbands=1
mode=3
after playing a song that produced crap:
frequency=2
blocks=3
subbands=1
mode=0

Does anybody know if this is a hint in the right direction ? Does anybody else have this problem ?
Yeah, sorry the dsp task doesn't handle mono audio correctly, I bet (not having the source in front of me at the moment to see what mode=0 indicates), that this is your problem.

I will get round to fixing it in the fullness of time. Patches welcome of course.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#242
@UXSam: It appears that you're using neither the software nor the DSP sbc encoder for whatever you're playing with mplayer. See Christoph's post above for what you should see in the output of "dmesg" if the DSP is being used (this is also repeated in the output of mplayer on the command line).

And do you know why my music don't play on my speakers and only my bluetooth headset?
Because you've enabled a2dp? Try disablling it and the output should then be directed through the speakers (assuming you turn the headset off, as otherwise you'll probably get the audio output as HSP audio through them (in mono through both ears)).

If you are getting any working a2dp output, I'd guess you've not managed to install the bluez-utils package. I'll have a look at the file modification date for that and let you know what it should be.

Do you have a file named sbcenc.o and sbcenc.cmd in /lib/dsp/modules?

What is in your /lib/dsp/dsp_dld_avs.conf? (I think that's the right name, not gone the device in front of me atm)
 
Posts: 7 | Thanked: 0 times | Joined on Feb 2008
#243
I do have a sbcenc.o and sbcenc.cmd file.

dsp_dld_avs.conf:
#
# dsp_dld.conf
# 2003-2005 Toshihiro Kobayashi, Nokia Research Center
#

$kernel /lib/dsp/avs_kernel.out
$cmd /lib/dsp/avs_kernelcfg.cmd

# devname taskname pri module cmd file(optional)
pcm2 _pcm2_dsptask 1 /lib/dsp/modules/pcm2.o /lib/dsp/modules/pcm.cmd
aacdec _aacdec_dsptask 1 /lib/dsp/modules/aac.o /lib/dsp/modules/aac.cmd
amrnb _amrnb_dsptask 1 /lib/dsp/modules/amrnb.o /lib/dsp/modules/amrnb.cmd
amrnb_enc _amrnb_enc_dsptask 1 /lib/dsp/modules/amrnb_enc.o /lib/dsp/modules/amrnb_enc.cmd
amrnb_dec _amrnb_dec_dsptask 1 /lib/dsp/modules/amrnb_dec.o /lib/dsp/modules/amrnb_dec.cmd
amrwb _amrwb_dsptask 1 /lib/dsp/modules/amrwb.o /lib/dsp/modules/amrwb.cmd
mp2dec _mp2dec_dsptask 1 /lib/dsp/modules/mp2.o /lib/dsp/modules/mp2.cmd
mp3dec _mp3dec_dsptask 1 /lib/dsp/modules/mp3.o /lib/dsp/modules/mp3.cmd
pcm_rec _pcm_rec_dsptask 1 /lib/dsp/modules/pcm_rec.o /lib/dsp/modules/pcm_rec.cmd
g711_enc _g711_enc_dsptask 1 /lib/dsp/modules/g711_enc.o /lib/dsp/modules/g711_enc.cmd
g711_dec _g711_dec_dsptask 1 /lib/dsp/modules/g711_dec.o /lib/dsp/modules/g711_dec.cmd
g729_enc _g729_enc_dsptask 1 /lib/dsp/modules/g729_enc.o /lib/dsp/modules/g729_enc.cmd
g729_dec _g729_dec_dsptask 1 /lib/dsp/modules/g729_dec.o /lib/dsp/modules/g729_dec.cmd
ilbc_enc _ilbc_enc_dsptask 1 /lib/dsp/modules/ilbc_enc.o /lib/dsp/modules/ilbc_enc.cmd
ilbc_dec _ilbc_dec_dsptask 1 /lib/dsp/modules/ilbc_dec.o /lib/dsp/modules/ilbc_dec.cmd
aep _aep_dsptask 1 /lib/dsp/modules/aep.o /lib/dsp/modules/aep.cmd
sbcenc _task_sbcenc 1 /lib/dsp/modules/sbcenc.o /lib/dsp/modules/sbcenc.cmd
All I did to install this was type "sh ./install_sbcenc.sh" in terminal since I couldn't install it from application manager. It keeps giving me an error.

Thanks for the help!
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#244
That looks fine. Now to check that the DSP version of bluez-utils was installed correctly, check the modification date of the following file (which comes from that package):
/usr/lib/gstreamer-0.10/libgstbluetooth.so

It should be the 6th of July.

When you talk about not seeing output from mplayer, were you running it from the command line, or from the GUI menu? Some data should be output to stderr if you are running the DSP version, but perhaps this is piped elsewhere if you start it from the GUI. Try running mplayer from the command line and see what it says.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#245
I found the error I made in the DSP code which was causing corruption for single channel audio data, please download the sbcenc.tar.gz file again and extract it in the root directory (or extract it elsewhere and move the sbcenc.o file to /lib/dsp/modules)
 

The Following 2 Users Say Thank You to lardman For This Useful Post:
Posts: 45 | Thanked: 25 times | Joined on Aug 2008 @ Germany
#246
I can confirm that the podcasts which had problems before are now playing niceliy. Thank you very much. Good work.
 
Un27Pee's Avatar
Posts: 259 | Thanked: 59 times | Joined on Feb 2008
#247
Hi i want to ask if the first post still holds i am getting a bluetooth headset this week and wish to try installing this ad2p parkage files any suggestions welcomed, finished reading this whole thread and it seems there has been some changes since the beginning of this thread thanks
__________________
Uncle Pee

T3 - IT 810
Confidence is hard to gain easy to loose impossible to regain, Pee
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#248
You need (or rather it will make your life easier) if you install johnx's sbc support deb from the first post. This will allow you to enable sbc.

You can then use the default ARM encoder, or install my packages to use the DSP. The choice is yours. If someone is bored and would like to do a battey-time comparison that would be great and would either justify the use of the DSP or perhaps push me to make the code more efficient
 
Un27Pee's Avatar
Posts: 259 | Thanked: 59 times | Joined on Feb 2008
#249
Thanks lardman i am not technically savy on linux i want to learn, i have already begin to be confortable with xterm, where is your files can you point it so i can look into it thanks,
__________________
Uncle Pee

T3 - IT 810
Confidence is hard to gain easy to loose impossible to regain, Pee
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#250
Go to http://garage.maemo.org/ and search for the dsp-sbc project.
 

The Following User Says Thank You to lardman For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 01:09.