Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326707 - speaker-test (in media-sound/alsa-utils) loops endlessly
Summary: speaker-test (in media-sound/alsa-utils) loops endlessly
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-03 04:54 UTC by ta2002
Modified: 2010-07-04 02:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2010-07-03 04:54:51 UTC
Tested this on four different machines.

$ speaker-test 

speaker-test 1.0.21

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left
Time per period = 2.665162
 0 - Front Left
Time per period = 2.987108
 0 - Front Left
Time per period = 2.987096
 0 - Front Left
Time per period = 2.987106
 0 - Front Left
Time per period = 2.987113
 0 - Front Left
Time per period = 2.987105
 0 - Front Left
Time per period = 2.987109
[...]

Didn't really look like it was ever going to stop (and never went away from "Front Left").

Also tried playing the wav files (which just repeated "front left" over and over again).

$ speaker-test -t wav

speaker-test 1.0.21

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
Time per period = 1.327945
 0 - Front Left
Time per period = 1.472187
 0 - Front Left
Time per period = 1.472063
 0 - Front Left
Time per period = 1.493000
 0 - Front Left
Time per period = 1.472203
 0 - Front Left
Time per period = 1.493008
 0 - Front Left
Time per period = 1.472197
[...]

Here is a typical emerge --info:

emerge -p --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.32-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-i686-Intel-R-_Pentium-R-_4_CPU_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 02 Jul 2010 09:30:21 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests distlocks fixpackages news protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa ass audiofile berkdb bwscheduler bzip2 cairo caps cdio cdr cjk client consolekit cracklib crypt css cups cxx dbus dga directfb downloadorder dri dvd dvdnav encode exif expat fam fbcon ffmpeg flac gcj ggi gif glibc-omitfp gmp gphoto2 gpm gstreamer gtk hal handbook hardcoded-tables iconv idea imagemagick imap imlib infowidget ipfilter ipv6 jabber javascript jbig joystick jpeg kde lcms libcaca libnotify libwww live logviewer lzma mad matroska mbox mdns-bundled memlimit mmx mmxext mp3 mpeg mudflap mysql nas ncurses netapi network nls no-old-linux nodrm nptl nptlonly ntp ogg opengl openmedia openmp oscar osdmenu pango pcre pdf perl pm-utils png ps qt3support quicktime raptor readline redland rss rtc scanfolder scanner sdl search semantic-desktop server shm silc smbclient smtp sndfile speex spell sse sse2 ssl stats svg sysfs tcpd theora threads threadsafe tiff timidity tremor truetype unicode upnp usb userlocales vcd vorbis webinterface x86 xcb xinerama xml xorg xv xvid yahoo zlib zrtp" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Rafał Mużyło 2010-07-03 17:02:21 UTC
Seems INVALID.
While the manpage is not quite clear, it seems
it should loop, unless given a specific parameter.
Comment 2 Paul Bredbury 2010-07-03 19:55:40 UTC
Only 1 channel with device "default"? Should be 2 channels, i.e. stereo. Have you got a weird custom ~/.asoundrc?

Anyway, speaker-test has always just looped - it's standard behaviour, not a bug.
Comment 3 Paul Bredbury 2010-07-03 19:59:16 UTC
Oops. The default number of channels for speaker-test, if unspecified, seems to be 1 (a stupid default for stereo, of course). So that's why you see 1 channel.
Comment 4 ta2002 2010-07-04 02:04:25 UTC
(In reply to comment #3)
> Oops. The default number of channels for speaker-test, if unspecified,
> seems to be 1 (a stupid default for stereo, of course). So that's why
> you see 1 channel.

I guess it is invalid. :(

In the past, I recall that speaker-test cycled through all of the channels (and used the spoken .wav files) by default. It just seemed "wrong" that it would start and stay on left front. I guess it seemed reasonable to assume two channels a few years ago, but now, quite a few systems have four or more.

I still think it should DEFAULT to two channels, though. :)

Thanks for looking at this.