Audio on Sunblade 100

Gheorghe Ardelean ardelean at ww.uni-erlangen.de
Fri Aug 21 08:45:23 UTC 2009


On Thu, 20 Aug 2009, Christian Ramseyer wrote:

[...]
> As it worked for Gheorghe, chances are that I'm doing something
> wrong/different:

Now I have tested also mpg321 and it has a not that good sound quality. A 
lot of noise is coming out but the sound is there all the time. The noise is coming 
always on the bass (maybe drums?) parts.

blade100# mpg321 Baltimora\ -\ Tarzan\ Boy.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Playing MPEG stream from Baltimora - Tarzan Boy.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 48000 Hz joint-stereo

mpg123 is still ok:

blade100# mpg123 Baltimora\ -\ Tarzan\ Boy.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
         version 1.6.4; written and copyright by Michael Hipp and others
         free software (LGPL/GPL) without any warranty but with best wishes

Playing MPEG stream 1 of 1: Baltimora - Tarzan Boy.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 48000 Hz joint-stereo

So this is some kind of strange to me. I have tested also xmms with
the result of only noise comming out. And x11amp dies when loading. So up
to now the only viable solution is mpg123 (at least for me).

All I can see is mpgs321 is using different libraries from mpg123:

blade100# ldd /usr/local/bin/mpg123
/usr/local/bin/mpg123:
         libltdl.so.4 => /usr/local/lib/libltdl.so.4 (0x4035a000)
         libmpg123.so.11 => /usr/local/lib/libmpg123.so.11 (0x40464000)
         libm.so.5 => /lib/libm.so.5 (0x405aa000)
         libc.so.7 => /lib/libc.so.7 (0x406d4000)

blade100# ldd /usr/local/bin/mpg321
/usr/local/bin/mpg321:
         libid3tag.so.0 => /usr/local/lib/libid3tag.so.0 (0x40346000)
         libmad.so.2 => /usr/local/lib/libmad.so.2 (0x40466000)
         libz.so.4 => /lib/libz.so.4 (0x40588000)
         libao.so.3 => /usr/local/lib/libao.so.3 (0x4069e000)
         libc.so.7 => /lib/libc.so.7 (0x407a4000)
         libthr.so.3 => /lib/libthr.so.3 (0x409e2000)

Christian, could please also test mpg123 and let us know if you get 
different results?

> - the driver is built directly into the kernel, I'm using
> sparc64/conf/GENERIC with minimal modifications:

I included the driver also in the kernel.

blade100# diff -u GENERIC GENERIC.orig
--- GENERIC     2009-08-19 12:51:27.000000000 +0200
+++ GENERIC.orig        2009-08-21 10:26:47.000000000 +0200
@@ -241,6 +241,3 @@
  device         dcons           # Dumb console driver
  device         dcons_crom      # Configuration ROM for dcons

-device          sound
-device          snd_t4dwave
-

in /etc/make.conf I have this line:

MODULES_OVERRIDE=       ipfw

and the kernel was build this way:

cd /usr/src/sys/sparc64/conf
config GENERIC (I modifed the GENERIC file)
cd ../compile/GENERIC
make cleandepend && make depend
make
make install
reboot

Regards,

Gheorghe Ardelean.



More information about the freebsd-sparc64 mailing list