Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 2009 10:45:20 +0200 (CEST)
From:      Gheorghe Ardelean <ardelean@ww.uni-erlangen.de>
To:        Christian Ramseyer <rc@networkz.ch>
Cc:        freebsd-sparc64@freebsd.org
Subject:   Re: Audio on Sunblade 100
Message-ID:  <alpine.LNX.2.00.0908211010390.13578@servww6.ww.uni-erlangen.de>
In-Reply-To: <4A8DC0DF.4040701@networkz.ch>
References:  <4A7C6B50.3070503@networkz.ch> <20090817205340.GA75477@alchemy.franken.de> <20090817215612.GB75477@alchemy.franken.de> <20090818192748.GA6585@alchemy.franken.de> <20090819161410.GA19351@alchemy.franken.de> <4A8DC0DF.4040701@networkz.ch>

next in thread | previous in thread | raw e-mail | index | archive | help

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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LNX.2.00.0908211010390.13578>