OSDN Git Service
Dan McGee [Sun, 10 May 2009 00:47:40 +0000 (02:47 +0200)]
speaker-test: only check byte order once
Rather than having numerous preprocessor directives scattered in the code
checking __BYTE_ORDER, only check it once and define a set of macros
accordingly that can be used in the rest of the code. This makes things
simpler to read and less error-prone.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Dan McGee [Sun, 10 May 2009 00:47:39 +0000 (02:47 +0200)]
speaker-test: move existing endian macros up in the file
This is necessary for a later patch removing the various endianness checks
sprinkled throughout the code.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Dan McGee [Sun, 10 May 2009 00:27:07 +0000 (02:27 +0200)]
Remove dead/commented out code
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Dan McGee [Sun, 10 May 2009 00:27:06 +0000 (02:27 +0200)]
Allow frequencies down to 30 Hz
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Dan McGee [Sun, 10 May 2009 00:27:05 +0000 (02:27 +0200)]
speaker-test: allow frequency to be floating point
Use atof() rather than atoi() to store the frequency- we were already using
a floating point value internally but did not let the user specify one from
the command line.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Jaroslav Kysela [Wed, 6 May 2009 07:07:24 +0000 (09:07 +0200)]
Release v1.0.20
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Tue, 5 May 2009 09:12:43 +0000 (11:12 +0200)]
alsactl: ca0106 initialization files - wrong exit
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Tue, 5 May 2009 09:10:35 +0000 (11:10 +0200)]
alsactl: add ca0106 initialization file
This file was created using alsa-info.sh database on www.alsa-project.org
without any real tests.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Tue, 5 May 2009 08:33:08 +0000 (10:33 +0200)]
alsactl: changes in initialization files
- handle virtual master for T61 and TM8100
- when master volume control is available, initialize PCM & CD playback
volumes to 0dB
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 30 Apr 2009 09:26:15 +0000 (11:26 +0200)]
alsactl: fix sysfsroot path and parser extensions
The sysfsroot path is /sys/class/sound/cardX/device for recent kernels.
The ACCESS check honors the variable substutition now. Added $config{key}
substitution.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Tue, 28 Apr 2009 09:19:48 +0000 (11:19 +0200)]
alsactl: init rules - fix HDA Conexact codec PCM initialization
Simon Hengel [Wed, 1 Apr 2009 19:51:21 +0000 (21:51 +0200)]
ALSA: Added vi-like key bindings to alsamixer.
* Added 'j' as an alias for KEY_DOWN
* Added 'k' as an alias for KEY_UP
Signed-off-by: Simon Hengel <simon.hengel@gmx.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Jaroslav Kysela [Wed, 15 Apr 2009 06:57:39 +0000 (08:57 +0200)]
alsactl/init: Fix CTL{value} assigning - make it relevant to documentation
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 9 Apr 2009 07:48:27 +0000 (09:48 +0200)]
aplay/arecord: improve suspicious buffer detection and add --test-coef parameter
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Wed, 8 Apr 2009 16:15:56 +0000 (18:15 +0200)]
aplay/arecord: remove debug printfs introduced by previous patch
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Wed, 8 Apr 2009 07:22:16 +0000 (09:22 +0200)]
aplay/arecord: fix underrun/overrun time calculation for monotonic clock
Also, add librt check to configure.in.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Takashi Iwai [Wed, 18 Mar 2009 11:10:55 +0000 (12:10 +0100)]
alsaconf - prefer /etc/modprobe.d/sound/50-sound.conf
For recent module-init-tools, prefer /etc/modprobe.d/50-sound.conf
instead of /etc/modprobe.d/sound. The latest m-i-t version will
complain (and can ignore) files that don't follow the format.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai [Fri, 20 Feb 2009 17:01:58 +0000 (18:01 +0100)]
alsactl - Add missing -I option
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Wu Fengguang [Fri, 20 Feb 2009 16:59:51 +0000 (17:59 +0100)]
speaker-test.c - add readability comments to speaker channels
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai [Wed, 18 Feb 2009 14:34:57 +0000 (15:34 +0100)]
Fix misc compile warnings in alsactl
alsactl.c:166: warning: assignment from incompatible pointer type
init_utils_string.c:21: warning: ‘string_is_true’ defined but not used
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Jaroslav Kysela [Thu, 5 Feb 2009 11:58:42 +0000 (12:58 +0100)]
alsactl: init - modify default rule to better support some HDA codecs
Some HDA codecs have shifted dB range (-34.5dB - 12dB) for PCM and CD
inputs. Use default 0dB value for them.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Takashi Iwai [Thu, 29 Jan 2009 14:41:31 +0000 (15:41 +0100)]
Fix build with partially-installed alsa-lib
Fix build of alsa-utils package with a partially installed alsa-lib,
e.g. without ramwidi or sequencer support.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Will Wagner [Mon, 19 Jan 2009 13:19:10 +0000 (14:19 +0100)]
Use ANSI C functions
Replace non-ANSI C functions index() and rindex() with strchr() and
strrchr(), respectively.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Jaroslav Kysela [Mon, 19 Jan 2009 11:17:19 +0000 (12:17 +0100)]
Release v1.0.19
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Peter Stokes [Mon, 12 Jan 2009 11:29:41 +0000 (12:29 +0100)]
Fix wrong direction check in aplay/arecord --list-pcms
I have just discovered a minor logic inversion bug in
aplay/arecord --list-pcms functionality.
Basically, executing "aplay --list-pcms" lists all devices capable of
capture and executing "arecord --list-pcms" lists all devices capable
of playback.
Signed-off-by: Peter Stokes <linux@dadeos.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai [Mon, 8 Dec 2008 10:59:27 +0000 (11:59 +0100)]
aseqnet - Add $(INTLLIBS) to Makefile.am
Add $(INTLLIBS) to LDADD for aseqnet to fix build errors on uclibc
(and possibly others).
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Hans-Christian Egtvedt [Mon, 8 Dec 2008 10:55:27 +0000 (11:55 +0100)]
alsa-utils check if __USE_BSD is defined before compiling "BSD functions"
Another bug/issue I tripped over when compiling alsa-utils in an
environment using uClibc to supply the C library functions. Here I have
enabled some old BSD style functions. The attached patch will honor
them if they are enabled.
Without this patch I get a redefined error during compile.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai [Wed, 26 Nov 2008 13:32:46 +0000 (14:32 +0100)]
Merge branch 'master' of git@git.alsa-project.org:alsa-utils
Takashi Iwai [Wed, 26 Nov 2008 13:27:24 +0000 (14:27 +0100)]
speaker-test: Fix floating-point exception bug
The period_size an buffer_size parameters must be taken after calling
snd_pcm_hw_params(). Otherwise they could be undefined numbers.
For example, period_size gets 0 when pcsp driver is used, resulting in
a floating-point exception error.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Jaroslav Kysela [Fri, 21 Nov 2008 13:44:31 +0000 (14:44 +0100)]
alsactl: Fix restore / init call behaviour when driver contains more controls
Fix check when driver contains more controls than state file. In this case,
initialization procedure should be run, too.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 12:10:02 +0000 (13:10 +0100)]
Make some static tables and strings constants.
By doing this we move them from the .data section to .rodata setion,
or from .data.rel to .data.rel.ro.
The .rodata section is mapped directly from the on-disk file, which is
always a save, while .data.rel.ro is mapped directly when using
prelink, which is a save in a lot of cases.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 12:09:56 +0000 (13:09 +0100)]
Mark static the functions not used outside their unit.
This way the compiler can assume more information about their
interface for optimisation.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 12:09:52 +0000 (13:09 +0100)]
Remove some unused variables.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 12:09:45 +0000 (13:09 +0100)]
Remove some dead code (comparisons between 0 and unsigned integers).
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Takashi Iwai [Thu, 13 Nov 2008 13:30:01 +0000 (14:30 +0100)]
Merge branch 'master' of git://git.flameeyes.eu/others/alsa/alsa-utils
Diego 'Flameeyes' Pettenò [Thu, 13 Nov 2008 12:23:04 +0000 (13:23 +0100)]
Nowadays Gentoo also uses update-modules, so update alsaconf.
This was originally reported as Gentoo bug #193303 (
https://bugs.gentoo.org/show_bug.cgi?id=193303 ).
Original patch by Jack Kelly <endgame.dos@gmail.com>
Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
grdscarabe@grdscarabe.net [Thu, 13 Nov 2008 12:22:55 +0000 (13:22 +0100)]
Create a special fd redirection for menu choice.
Without this patch, dialog errors gets interpreted as the choice,
causing errors related to loading "snd-***" module.
The problem was reported as Gentoo bug #96467 (
https://bugs.gentoo.org/show_bug.cgi?id=96467 ).
Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
Diego 'Flameeyes' Pettenò [Thu, 13 Nov 2008 12:22:13 +0000 (13:22 +0100)]
Move conditional inclusion of locale.h further down.
Without this patch, ENABLE_NLS is checked before ever being defined
(aconfig.h is not yet included), and thus locale.h would never be
included even when NLS is enabled.
Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
Takashi Iwai [Thu, 13 Nov 2008 08:29:40 +0000 (09:29 +0100)]
Merge branch 'master' of git@git.alsa-project.org:alsa-utils
Takashi Iwai [Thu, 13 Nov 2008 08:28:43 +0000 (09:28 +0100)]
Add -I option to alsactl
Add -I option to alsactl to take back the old restore behavior without
initialization.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Clemens Ladisch [Mon, 10 Nov 2008 08:23:07 +0000 (09:23 +0100)]
alsaconf: add Slackware support
Add Slackware support.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Takashi Iwai [Thu, 30 Oct 2008 10:50:17 +0000 (11:50 +0100)]
Add --disable-xmlto configure option
Added the check of xmlto program in configure script.
Also added --disable-xmlto configure option for systems with a broken
or older xmlto that doesn't work properly.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Jaroslav Kysela [Wed, 29 Oct 2008 12:42:11 +0000 (13:42 +0100)]
Release v1.0.18
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Takashi Iwai [Fri, 24 Oct 2008 09:48:57 +0000 (11:48 +0200)]
iecset - Add missing help text for -n option
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Jaroslav Kysela [Thu, 23 Oct 2008 09:13:24 +0000 (11:13 +0200)]
aplay/arecord: add --test-position test
In some cases (HDA audio) the ring buffer position values returned
from alsa-lib are inaccurate. The added --test-position option will
print suspicious values.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Tue, 23 Sep 2008 06:10:19 +0000 (08:10 +0200)]
Add --disable-alsaconf to configure script
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 18 Sep 2008 07:40:02 +0000 (09:40 +0200)]
alsactl: Add -g,--ignore option to ignore 'No soundcards found' error
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 11 Sep 2008 11:39:42 +0000 (13:39 +0200)]
alsactl: Fix oops (when parsing card argument)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Tue, 9 Sep 2008 16:55:50 +0000 (18:55 +0200)]
Release v1.0.18rc3
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Tue, 9 Sep 2008 10:54:17 +0000 (12:54 +0200)]
Merge branch 'master' of git@git.alsa-project.org:alsa-utils
Jaroslav Kysela [Tue, 9 Sep 2008 10:53:28 +0000 (12:53 +0200)]
aplay - show sample arrangement (mmap areas) in verbose more for debugging
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Takashi Iwai [Mon, 25 Aug 2008 06:08:55 +0000 (08:08 +0200)]
Add arecord to .gitignore
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai [Mon, 25 Aug 2008 06:07:56 +0000 (08:07 +0200)]
Remove unneeded files from EXTRA_DIST in root Makefile.am
automake packages such filse automatically.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai [Mon, 25 Aug 2008 06:07:13 +0000 (08:07 +0200)]
Add missing files to be included in alsactl/Makefile.am
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Jaroslav Kysela [Tue, 19 Aug 2008 11:41:00 +0000 (13:41 +0200)]
Release v1.0.18rc2
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Tue, 19 Aug 2008 11:38:26 +0000 (13:38 +0200)]
alsactl.1 - explicitly notify about ALSA_CONFIG_PATH environment variable
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Tue, 19 Aug 2008 11:28:22 +0000 (13:28 +0200)]
alsactl init - fix memory leaks (valgrind helped)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Mon, 18 Aug 2008 15:02:17 +0000 (17:02 +0200)]
alsactl init - fixed EXTRA_DIST typo in alsactl/init subdirectory
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Mon, 18 Aug 2008 14:57:18 +0000 (16:57 +0200)]
alsactl: Allow card specification by device name (support for udev)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Mon, 18 Aug 2008 14:47:33 +0000 (16:47 +0200)]
alsactl - remove 'names' command, fix alsactl man page
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Mon, 18 Aug 2008 14:27:45 +0000 (16:27 +0200)]
alsactl init - add default command to help config and fix packaging
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Mon, 18 Aug 2008 13:01:44 +0000 (15:01 +0200)]
alsactl init - CTL{values}, CTL{enums} and default "guess method" initialization
Implemented CTL{values)=value to set all values at once.
Implemented CTL{enums} to match against strings in enum list.
Added 'default' (guess method) initialization configuration.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Mon, 18 Aug 2008 10:39:26 +0000 (12:39 +0200)]
alsactl init - add ATTR{dBmin} and ATTR{dBmax}
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Fri, 15 Aug 2008 11:30:26 +0000 (13:30 +0200)]
Release v1.0.18rc1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 14 Aug 2008 15:51:46 +0000 (17:51 +0200)]
alsactl init - fixed enumeration string setting, update Lenovo T61 config (dB)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 14 Aug 2008 15:48:48 +0000 (17:48 +0200)]
alsactl init - modified configuration for Acer Travelmate 8100
Jaroslav Kysela [Thu, 14 Aug 2008 14:46:27 +0000 (16:46 +0200)]
alsactl init - restore calls also init on failure
The initialization procedure consist from default initialization and
state restoration. When restore fails for a reason or the config file
contains inaccurate information, then init is called.
Also, if something fails (init or restore), a file specified using -r
option can be created with description what failed. It can be useful
when user space decides to notify user to set the sound driver properly.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 14 Aug 2008 12:57:19 +0000 (14:57 +0200)]
amixer - fixed TLV dBscale and added dBrange parsing
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 14 Aug 2008 12:08:22 +0000 (14:08 +0200)]
alsactl init - add dB and percentual CTL{value} parsing for integer values
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 14 Aug 2008 09:21:59 +0000 (11:21 +0200)]
alsactl init - allow enum specification by name strings
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Wed, 13 Aug 2008 18:49:07 +0000 (20:49 +0200)]
alsactl init configuration syntax changes
- change SYSFS_DEVICE to CONFIG{sysfs_device}
- INCLUDE key now handles also directories
- RESULT key can assign value now
- EXIT="return" operation returns from included file immediately
Default 00main and hda configuration files changes:
- handle preinit and postinit directories
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Wed, 13 Aug 2008 10:26:50 +0000 (12:26 +0200)]
alsactl - install initialization files
Also, spearate SOUNDSDIR and DATADIR in configure.in.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Wed, 13 Aug 2008 09:40:43 +0000 (11:40 +0200)]
alsactl init - Fix Lenovo T61 configuraton
Pawel MOLL [Fri, 1 Aug 2008 10:23:58 +0000 (11:23 +0100)]
iecset update for new consumer status channel bits
Added iecset support for some of consumer status channel bits,
new in the third edition od IEC60958-3 spec.
Signed-off-by: Pawel Moll <pawel.moll@st.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 31 Jul 2008 14:41:54 +0000 (16:41 +0200)]
alsactl init: Changed support for Acer Travelmate 8100 (use subvendor and subdevice for matching)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 31 Jul 2008 14:40:06 +0000 (16:40 +0200)]
alsactl init: added support for Lenovo T61
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Thu, 31 Jul 2008 13:45:08 +0000 (15:45 +0200)]
Initial 'alsactl init' implementation
See 'man 7 alsactl_init' for more details.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Mon, 14 Jul 2008 08:57:53 +0000 (10:57 +0200)]
Release v1.0.17
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Mon, 16 Jun 2008 07:40:43 +0000 (09:40 +0200)]
Release v1.0.17rc2
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Philippe De Muyter [Fri, 6 Jun 2008 10:25:22 +0000 (12:25 +0200)]
alsaconf: use 'type -p', not which
Here is a small patch for alsaconf, which removes an useless dependency
on `which' by using a bash built-in instead : `type -p'. I encountered
the problem of the missing `which' while using alsaconf on a clfs-built
linux system. It is useless to install `which' when we already have
`type -p', and alsaconf already needs bash, so this does not replace
a dependency by another one, but really removes a dependency for alsaconf.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Clemens Ladisch [Fri, 6 Jun 2008 07:02:55 +0000 (09:02 +0200)]
alsactl: simplify and fix item type detection
Use snd_ctl_elem_type_name() to detect the value of the type comment
instead of using hardcoded strings.
The types list now also includes the BYTES type (Debian bug 481515).
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Jaroslav Kysela [Tue, 3 Jun 2008 08:21:08 +0000 (10:21 +0200)]
Release v1.0.17rc1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Jaroslav Kysela [Tue, 3 Jun 2008 08:14:56 +0000 (10:14 +0200)]
hgcompile -> gitcompile
Jaroslav Kysela [Tue, 20 May 2008 11:32:28 +0000 (13:32 +0200)]
renamed hgcompile to gitcompile
Jaroslav Kysela [Tue, 20 May 2008 11:23:26 +0000 (13:23 +0200)]
.hgignore -> .gitignore and removed .hgtags
Giuliano Pochini [Mon, 28 Apr 2008 07:16:27 +0000 (09:16 +0200)]
speaker-test.c - fix pink noise generator on big-endian archs
This patch makes speaker-test fill the buffers with properly coded data on
both big- and little-endian processors.
Signed-off-by: Giuliano Pochini <pochini@shiny.it>
Takashi Iwai [Mon, 21 Apr 2008 13:19:27 +0000 (15:19 +0200)]
speaker-test.c - fix sine generator on big-endian archs
speaker-test doesn't work well when you choose a little-endian format on a
big-endian processor, or the opposite. Yes, I know about plughw:, but for
debugging purposes it may not be an option. The following patch add proper
support for S32 and S16 support for but LE and BE processors:
- The "if (bits-per-sample)" construct was replaced by case (format).
- Support for S16_BE, S32_BE formats was added.
- S16_LE and S32_LE were made compatible with big-endian processors.
- NB: The pink noise generator wasn't changed (I'll do if this patch is OK).
From: Giuliano Pochini <pochini@shiny.it>
Takashi Iwai [Wed, 16 Apr 2008 12:43:01 +0000 (14:43 +0200)]
aplay - Fix a compile warning
aplay.c: In function ‘compute_max_peak’:
aplay.c:1327: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’
Takashi Iwai [Wed, 16 Apr 2008 12:39:41 +0000 (14:39 +0200)]
Add check of ncurses*-config
The recent ncurses package provides ncurses*-config program to give the
proper cflags and libs. Let's use them if available.
Right now, the ncurses version (5) is hard-coded. It should be better
to be variable as well, but it'd be messy. Hope the ncurses version won't
change rapidly.
Takashi Iwai [Fri, 14 Mar 2008 13:11:06 +0000 (14:11 +0100)]
aplay - Add stereo VU-meter support
Added the support of stereo VU-meter.
Enabled via -Vs option.
The new option, -V, can be used to enable the VU-meter. Now
VU-meter can be enabled even without -vv.
Pawel MOLL [Thu, 6 Mar 2008 16:34:21 +0000 (17:34 +0100)]
Support for playing WAV files with "extensible format" header using aplay.
WAV files with more than 2 channels or with more than 16 bits per samples
can be saved with "extensible format" chunk
(see http://msdn2.microsoft.com/en-us/library/ms713496(VS.85).aspx).
For instance, sox, when converting data to 24- or 32-bits per sample format
uses this format, and aplay was unable to play such file. Now the problem
is solved :-)
Signed-off-by: Pawel MOLL <pawel.moll@st.com>
Clemens Ladisch [Thu, 21 Feb 2008 08:12:53 +0000 (09:12 +0100)]
aseqdump: flush output
Flush the output after all currently available events have been printed
to allow filtering interactive output through a pipe.
Clemens Ladisch [Thu, 21 Feb 2008 08:12:27 +0000 (09:12 +0100)]
fix poll timeout
Use an infinite poll timeout to prevent unnecessary wakeups.
Clemens Ladisch [Thu, 21 Feb 2008 08:11:58 +0000 (09:11 +0100)]
aseqdump: increase verbosity
Include the names of parameters when printing events instead of just
showing the raw values.
Takashi Iwai [Mon, 11 Feb 2008 13:22:51 +0000 (14:22 +0100)]
Require alsa-lib 1.0.16
Require alsa-lib 1.0.16 and remove the superfluous check in configure
script.
Andrew Paprocki [Wed, 6 Feb 2008 13:05:07 +0000 (14:05 +0100)]
aplay/arecord - Add support for IEEE float 32-bit WAV files
This patch modifies aplay/arecord to support playing/capturing IEEE float
32-bit WAV files. Tested on HDA hardware in both stereo and multi-channel
modes. Added the WAV file constant for Dolby AC-3 S/PDIF passthrough to
formats.h for future use when AC-3 passthrough is better supported.
Signed-off-by: Andrew Paprocki <andrew@ishiboo.com>
Jaroslav Kysela [Tue, 5 Feb 2008 09:08:11 +0000 (10:08 +0100)]
Added tag v1.0.16 for changeset
16f32be6b8b9
Jaroslav Kysela [Tue, 5 Feb 2008 09:08:11 +0000 (10:08 +0100)]
release 1.0.16
Patch-level: Merged
Takashi Iwai [Tue, 5 Feb 2008 07:11:02 +0000 (08:11 +0100)]
iecset - Add -n option
Added -n option to iecset to specify the index number of the control
element. This is needed for handling multiple SPDIF devices.
Jaroslav Kysela [Mon, 21 Jan 2008 09:42:48 +0000 (10:42 +0100)]
Added tag v1.0.16rc1 for changeset
8907a06eb707