Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76409 - alsaplayer-0.99.76 produces white noise
Summary: alsaplayer-0.99.76 produces white noise
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC All
: High major (vote)
Assignee: Torben Hohn (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-02 07:39 UTC by Michael Kiermaier
Modified: 2005-03-05 18:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Chris White's alsaplayer-endian patch (alsaplayer-endian.patch,1.12 KB, patch)
2005-03-05 01:48 UTC, Joe Jezak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kiermaier 2005-01-02 07:39:42 UTC
I have a G3 iBook 800 MHz Rev. 2.2 with vanilla kernel 2.6.10. The kernel ALSAdriver as well as OSS emulation are activated, for the kernel config see below.

alsaplayer -o alsa music.wav
only produces white noise. Could this be a endianness-problem?

I tried also 
alsaplayer -o jack music.wav
and everything is ok. (jackd running at 44.1 kHz)

Also, the ALSA output via
aplay music.wav
does not give any problem.

All these obervations are reproducible on my iBook. I tried it with various wave files of different origin, to make sure that it is not an inconsistency in the wave file.


relevant part of kernel-config:
#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
CONFIG_SND_VIRMIDI=m
#
# ALSA PowerMac devices
#
CONFIG_SND_POWERMAC=m


# emerge info
Portage 2.0.51-r8 (default-ppc-2004.1, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10 ppc)
=================================================================
System uname: 2.6.10 ppc 750FX
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.2.2,dev-lang/python-2.3.4 [2.3.4 (#1, Sep 16 2004, 23:11:34)]
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)[disabled]
dev-lang/python:     2.2.2, 2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r2, 1.5, 1.9.3, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.90.0.3-r4
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.18-r2, 2.4.22
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=750 -fsigned-char -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=750 -fsigned-char -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts audiofile berkdb bitmap-fonts blas bzlib caps cdparanoia crypt cups dba divx4linux doc dvd encode exif f77 flac font-server fortran gcj gd gdbm gif gnome-libs gphoto2 gpm gtk gtk2 guile icq imlib innodb jack jack-tmpfs java jpeg kde ladcca ladspa lcms libcaca libwww live lzo mad maildir matroska monkey motif mpeg mysql ncurses nls objc offensive oggvorbis opengloss pam pdflib perl png ppc python qt readline samba sasl sdl slang sndfile speex spell ssl tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb wmf xine xml xml2 xmms xprint xv xvid xvmc zlib video_cards_radeon"
Comment 1 Lars Weiler (RETIRED) gentoo-dev 2005-01-09 01:14:58 UTC
I know that ChrisWhite did some work on it.  There is some endiannes problem.

And bug 76755 looks quite the same to me.
Comment 2 Michael Kiermaier 2005-01-09 04:30:04 UTC
Actually I posted 3 bug reports about programs that produce white noise on PPC:

1) ALSA output of alsaplayer, this bug.
2) ALSA output of hydrogen, bug 76414.
3) JACK output of xmms-jack, bug 76755.
Comment 3 Joe Jezak (RETIRED) gentoo-dev 2005-03-05 01:48:58 UTC
Created attachment 52705 [details, diff]
Chris White's alsaplayer-endian patch

Chris White provided this patch for the problem, I've tested it and it works
here, so I'm adding it to the bug so it doesn't get lost.
Comment 4 Joe Jezak (RETIRED) gentoo-dev 2005-03-05 18:01:10 UTC
Chris White says that it's alright to add, so I've done it for him.