Enabling Cubieboard hw audio capabilities

347 views
Skip to first unread message

Yoyo Sanchez

unread,
Oct 22, 2013, 5:36:08 AM10/22/13
to cubie...@googlegroups.com
Hi there,

I'm using mpd with an http stream to use my cubieboard as a jukebox available anywhere.
It works great but mpd cpu load is awfull and cpu is always at full speed (1GHz with 80% cpu for mpd).
I tried multiples configurations (lame, flac, bitrate, etc.) but nothing really relevant with all of this.

I read the Cedarx have great encoding/decoding capabilities and wanna know if there is a way to use it for mpd encoding.

Someone could help me please ?

Thanks

PS : I'm using roman (latest) kernel (currently video ones as it comes with cedarx modules).

Emilio López

unread,
Oct 22, 2013, 5:45:02 AM10/22/13
to cubie...@googlegroups.com
El 22/10/13 06:36, Yoyo Sanchez escribi�:
> Hi there,
>
> I'm using mpd with an http stream to use my cubieboard as a jukebox
> available anywhere.
> It works great but mpd cpu load is awfull and cpu is always at full
> speed (1GHz with 80% cpu for mpd).
> I tried multiples configurations (lame, flac, bitrate, etc.) but nothing
> really relevant with all of this.

Odd, I use MPD too and haven't experienced this. Make sure you're using
an armhf distribution, otherwise NEON optimized code won't be used.

Yoyo Sanchez

unread,
Oct 22, 2013, 7:20:31 AM10/22/13
to cubie...@googlegroups.com, tu...@linux-sunxi.org
I'm using roman minimal Debian server ( here : https://romanrm.net/a10/debian ) updated.

Is there a way to know if it's based on armhf (when "apt-get update" I can read armhf packages) ?

Could you post your mpd.conf please ?

Thanks

Le mardi 22 octobre 2013 11:45:02 UTC+2, Emilio López a écrit :
El 22/10/13 06:36, Yoyo Sanchez escribi�:

Emilio López

unread,
Oct 22, 2013, 10:34:07 AM10/22/13
to Yoyo Sanchez, cubie...@googlegroups.com
El 22/10/13 08:20, Yoyo Sanchez escribi�:
> I'm using roman minimal Debian server ( here :
> https://romanrm.net/a10/debian ) updated.
>
> Is there a way to know if it's based on armhf (when "apt-get update" I
> can read armhf packages) ?

You can run the following, and you should get armhf.

$ dpkg --print-architecture
armhf

You can ldd any binary too and you should see it using the armhf libc

$ ldd /bin/sh
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76e36000)
/lib/arm-linux-gnueabihf/ld-linux.so.3 => /lib/ld-linux-armhf.so.3
(0x76f22000)


>
> Could you post your mpd.conf please ?

There's nothing too fancy on it,

http://sprunge.us/GWTM

Cheers,

Emilio

Yoyo Sanchez

unread,
Oct 22, 2013, 11:23:44 AM10/22/13
to cubie...@googlegroups.com, Yoyo Sanchez, tu...@linux-sunxi.org
Thanks for your answer. :-)

As expected I'm on amrhf : both your given commands answer that.

I try to upgrade mpd with backports packages but it doesn't help for my problem.

It seems the vorbis encoder is lighter (flac is too but need too much bandwith for my home connection) so I switch on it.

And there's something fancy on your mpd.conf : your not using mpd http streaming feature but shout/icecast. ^_^
Maybe I should try this combo.

Nut I think it's possible to have less cpu load using SoC encoding/decoding capabilities as in raspberry someone should have around 25% of cpu load with 2 http (I think he has 2 clients for 1 stream) + 1 alsa streams : http://www.raspberrypi.org/phpBB3/viewtopic.php?t=43670&p=350142.

Cheers

Le mardi 22 octobre 2013 16:34:07 UTC+2, Emilio López a écrit :
El 22/10/13 08:20, Yoyo Sanchez escribi�:
Reply all
Reply to author
Forward
0 new messages