OSDN Git Service

android-x86/external-alsa-utils.git
11 years agospeaker-test: increase the maximum supported rate to 384000
Antonio Ospite [Wed, 16 Jan 2013 16:06:04 +0000 (17:06 +0100)]
speaker-test: increase the maximum supported rate to 384000

There are some devices around supporting this sample rate so let's make
speaker-test capable to deal with them.

Signed-off-by: Antonio Ospite <ao2@amarulasolutions.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoconfigure: Fix obsolete AM_CONFIG_HEADER macro
Marko Lindqvist [Wed, 16 Jan 2013 14:25:38 +0000 (15:25 +0100)]
configure: Fix obsolete AM_CONFIG_HEADER macro

Automake-1.13 removed long obsolete AM_CONFIG_HEADER completely (
http://lists.gnu.org/archive/html/automake/2012-12/msg00038.html )
and errors out upon seeing it.

Attached patch replaces it with proper AC_CONFIG_HEADERS.

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoaplay: Add the support for big-endian WAV format (RIFX)
Takashi Iwai [Thu, 13 Dec 2012 09:53:19 +0000 (10:53 +0100)]
aplay: Add the support for big-endian WAV format (RIFX)

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoalsaloop: Fix missing #endif
Takashi Iwai [Fri, 30 Nov 2012 13:53:12 +0000 (14:53 +0100)]
alsaloop: Fix missing #endif

Sorry, forgotten.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoalsaloop: Make alsaloop working without libsamplerate
Takashi Iwai [Fri, 30 Nov 2012 13:35:31 +0000 (14:35 +0100)]
alsaloop: Make alsaloop working without libsamplerate

When alsaloop is built with libsamplerate, it quits immediately with
  No libsamplerate suppor
message.  It's because the check of -A option and it's set as default
non-zero value.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoamixer: Fix parsing container TLV entries
Takashi Iwai [Mon, 26 Nov 2012 15:13:57 +0000 (16:13 +0100)]
amixer: Fix parsing container TLV entries

Fix the wrong calculation of the size of a container TLV entry, which
resulted in "TLV size error" messages.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoamixer: fix rounding of relative changes
Clemens Ladisch [Tue, 13 Nov 2012 20:54:20 +0000 (21:54 +0100)]
amixer: fix rounding of relative changes

When doing control changes by a relative amount, amixer used the wrong
rounding direction, which would make it possible to stay at the same raw
value if the step was not big enough to reach the next value.

Reported-by: Honza Javorek <jan.javorek@gmail.com>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
11 years agoaplay: Show usage if no parameter is passed
Fabio Estevam [Tue, 13 Nov 2012 12:05:39 +0000 (10:05 -0200)]
aplay: Show usage if no parameter is passed

When aplay/arecord are called without any argument the application hangs forever.

Instead of hanging, print the usage and exit.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoalsamixer: fix handling of removed controls
Clemens Ladisch [Fri, 19 Oct 2012 10:16:33 +0000 (12:16 +0200)]
alsamixer: fix handling of removed controls

When we get a notification that an element has been removed, we have to
recreate our internal control representation to avoid accessing freed
memory.  (And the checking for SND_CTL_EVENT_MASK_REMOVE should actually
be done correctly while we're at it.)

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
11 years agoaplay: fix typo & silence warning..
Jaroslav Kysela [Mon, 24 Sep 2012 14:18:54 +0000 (16:18 +0200)]
aplay: fix typo & silence warning..

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
11 years agospeaker-test: Update man page for chmap option
Takashi Iwai [Thu, 20 Sep 2012 12:00:02 +0000 (14:00 +0200)]
speaker-test: Update man page for chmap option

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoaplay: More support for channel map option
Takashi Iwai [Thu, 20 Sep 2012 11:53:46 +0000 (13:53 +0200)]
aplay: More support for channel map option

Now aplay tries to follow the given channel map by rearranging the
channels even when the channel map override isn't allowed but if the
device is still capable to return a channel map.

Also update the man page appropriately.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoaplay: Add support for channel mapping
Takashi Iwai [Tue, 11 Sep 2012 10:20:55 +0000 (12:20 +0200)]
aplay: Add support for channel mapping

With -m option, user can specify the order of channel map.
As of this commit, it just tries to override the channel map, thus it
works only on devices that support the channel map override like HDMI.
Adjusting the channel order in aplay itself will be added later.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agospeaker-test: Add support for channel mapping API
Takashi Iwai [Tue, 11 Sep 2012 09:36:45 +0000 (11:36 +0200)]
speaker-test: Add support for channel mapping API

The surround channel map follows the given channel map from the
driver if available.

Also, the channels can be specified manually via -m option.
Pass the channel map like "FL,FR,FC,LFE".

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoRelease v1.0.26
Jaroslav Kysela [Thu, 6 Sep 2012 07:52:57 +0000 (09:52 +0200)]
Release v1.0.26

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
11 years agobuild: Don't call AC_CHECK_FUNC with --disable-alsatest
Arun Raghavan [Tue, 17 Jul 2012 10:15:35 +0000 (15:45 +0530)]
build: Don't call AC_CHECK_FUNC with --disable-alsatest

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoaplay: Use open() instead of open64()
Arun Raghavan [Tue, 17 Jul 2012 10:15:34 +0000 (15:45 +0530)]
aplay: Use open() instead of open64()

AC_SYS_LARGEFILE in configure.in will automatically set up defines so
that open() will support large files if supported, and if not, this
allows us to fall back gracefully to non-LFS open().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoaplay: Fix signal.h include
Arun Raghavan [Tue, 17 Jul 2012 10:15:33 +0000 (15:45 +0530)]
aplay: Fix signal.h include

The correct header to include is <signal.h> not <sys/signal.h>.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoaseqnet: Remove obsoleted .LO entry from man page
Takashi Iwai [Fri, 15 Jun 2012 14:34:55 +0000 (16:34 +0200)]
aseqnet: Remove obsoleted .LO entry from man page

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoalsactl: Add reference to alsactl_init(7) in alsactl man page
Takashi Iwai [Thu, 14 Jun 2012 14:14:29 +0000 (16:14 +0200)]
alsactl: Add reference to alsactl_init(7) in alsactl man page

Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 years agoalsactl: Read only *.conf files when a directory is passed via INCLUDE
Takashi Iwai [Thu, 14 Jun 2012 11:14:48 +0000 (13:14 +0200)]
alsactl: Read only *.conf files when a directory is passed via INCLUDE

When alsactl init is invoked and a directory path is passed to INCLUDE
command in the config file, read only *.conf files in that directory.
This will avoid reading backup files or invalid files that have been
created accidentally.

Also by using scandir() with alphasort(), alsactl reads the files in
alphabetical order.  Thus it's highly recommended to use some number
prefix to the file name for assuring the order.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoalsaloop: fix the avail_min setup
Jaroslav Kysela [Sun, 13 May 2012 11:24:01 +0000 (13:24 +0200)]
alsaloop: fix the avail_min setup

The previous code does not work as expected for some period_size
configurations. We do not rely on the period size value, so do not
correlate the avail_min parameter with this value.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
12 years agoaplay: print vu-meter to stderr, not stdout
Jerome Carretero [Sun, 6 May 2012 03:10:01 +0000 (23:10 -0400)]
aplay: print vu-meter to stderr, not stdout

It allows showing the vu-meter while recording to stdout, eg:

   aplay -C -V stereo | oggenc - > out.ogg

Signed-off-by: Jerome Carretero <cJ@zougloub.eu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoalsactl: Do not access other cards than specified for init
Jaroslav Kysela [Wed, 9 May 2012 06:45:47 +0000 (08:45 +0200)]
alsactl: Do not access other cards than specified for init

When the global state does not exist, alsactl tries to
initialize all soundcards. It is not good when alsactl
is called multiple times from udev. Also, selinux can deny
access to non-existent devices.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
12 years agoconfigure.in: use AS_HELP_STRING everywhere
Mike Frysinger [Wed, 18 Apr 2012 14:29:18 +0000 (10:29 -0400)]
configure.in: use AS_HELP_STRING everywhere

This macro takes care of spacing for us.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoconfigure.in: look for ncurses pkg-config first
Mike Frysinger [Wed, 18 Apr 2012 14:25:54 +0000 (10:25 -0400)]
configure.in: look for ncurses pkg-config first

Newer ncurses installs pkg-config files, and these are much easier
to manage when cross-compiling, so default to searching for those.
If they can't be found, we fall back to the existing xxx-config.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoamixer, alsamixer: Add description of volume-mapping
Takashi Iwai [Mon, 19 Mar 2012 15:03:33 +0000 (16:03 +0100)]
amixer, alsamixer: Add description of volume-mapping

Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoaplay/arecord: option to treat any xrun as fatal
Ben Gardiner [Fri, 16 Mar 2012 03:51:02 +0000 (23:51 -0400)]
aplay/arecord: option to treat any xrun as fatal

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoamixer: Add the support for mapped volumes like alsamixer
Takashi Iwai [Mon, 12 Mar 2012 09:56:22 +0000 (10:56 +0100)]
amixer: Add the support for mapped volumes like alsamixer

When -M option is given, amixer handles the volumes in percent unit
with the mapping more intuitive to human ears just like in alsamixer.

The -R option is to take the raw value as the volume percentage.
This mode is still used as default.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoaplay - option to dump HW parameters
Pavel Hofman [Mon, 5 Mar 2012 21:27:00 +0000 (21:27 +0000)]
aplay - option to dump HW parameters

Dumping HW parameters of the current device with snd_pcm_hw_params_dump,
a new option --dump-hw-params added.

Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoalsaloop: Improve xrun_sync - fill missing playback samples
Jaroslav Kysela [Mon, 20 Feb 2012 15:41:19 +0000 (16:41 +0100)]
alsaloop: Improve xrun_sync - fill missing playback samples

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
12 years agoRemove the cvscompile file
Vikram Narayanan [Sat, 18 Feb 2012 15:23:56 +0000 (20:53 +0530)]
Remove the cvscompile file

package: alsa-utils

Removed the cvscompile file.

Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoTrivial fixes in INSTALL file
Vikram Narayanan [Sat, 11 Feb 2012 08:17:48 +0000 (13:47 +0530)]
Trivial fixes in INSTALL file

Changed from HG->git in the INSTALL file

Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoFix the examples in aplay.1
Jaroslav Kysela [Mon, 6 Feb 2012 13:58:03 +0000 (14:58 +0100)]
Fix the examples in aplay.1

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
12 years agoRelease v1.0.25
Jaroslav Kysela [Wed, 25 Jan 2012 09:43:38 +0000 (10:43 +0100)]
Release v1.0.25

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
12 years agoaplay: Add backward compatible endian macro definitions
Jaroslav Kysela [Wed, 25 Jan 2012 09:40:25 +0000 (10:40 +0100)]
aplay: Add backward compatible endian macro definitions

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
12 years agoAlsa-utils: Fix typo causing some volumes not to be initialized
David Henningsson [Wed, 11 Jan 2012 16:45:14 +0000 (17:45 +0100)]
Alsa-utils: Fix typo causing some volumes not to be initialized

When I was reading the source code, I stumbled over this typo causing
Center, LFE, and Surround speakers not to be initialized.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoalsactl: Initialize Front Speaker, etc
Takashi Iwai [Fri, 4 Nov 2011 16:01:57 +0000 (17:01 +0100)]
alsactl: Initialize Front Speaker, etc

Add missing initialization of surround and CLFE playback volumes and
switches.  Ditto for "Front Speaker", etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoaplaymidi: clarify multi-port documentation
Clemens Ladisch [Wed, 2 Nov 2011 18:44:12 +0000 (19:44 +0100)]
aplaymidi: clarify multi-port documentation

The man page did not document what happens when multiple ports are
specified; this could be misinterpreted as the events being duplicated
so that they are played on all ports simultaneously.  As suggested by
Peter Billam, clarify that these ports are only used for multi-port MIDI
files.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
12 years agoalsamixer: Fix X-win related crash for PulseAudio plugin (bad linking)
Jaroslav Kysela [Wed, 2 Nov 2011 16:27:47 +0000 (17:27 +0100)]
alsamixer: Fix X-win related crash for PulseAudio plugin (bad linking)

A lot of reports that alsamixer crashes in X terminal when the PulseAudio
CTL plugin is activated were entered to the tracking systems.

I figured that there is a linking clash for the shutdown() function.
The shutdown() function in glibc is socket related, but the alsamixer code
redefines this function and appearently that under some linking
circumstances - which PA client invokes during the runtime dynamic linking
- the wrong function is called.

This patch, for safety, renames the shutdown() function from alsamixer
to app_shutdown(), but it might make sense to figure the real linking
culprit to avoid future surprises.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
12 years agoaplay: Fix spelling error
David Henningsson [Wed, 12 Oct 2011 17:37:57 +0000 (19:37 +0200)]
aplay: Fix spelling error

BugLink: https://bugs.launchpad.net/bugs/816388
Reported-by: Chad Dunlap <cldunlap1@gmail.com>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
12 years agoalsactl: add support for recreating enumerated user controls
Clemens Ladisch [Fri, 7 Oct 2011 21:16:35 +0000 (23:16 +0200)]
alsactl: add support for recreating enumerated user controls

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
12 years agofix use of $(SED)
Michał Górny [Wed, 31 Aug 2011 20:27:10 +0000 (22:27 +0200)]
fix use of $(SED)

The alsactl Makefile used 'sed $(SED)' which is going to failed when SED
is actually set. Replaced that with '$(SED)', and a few 'sed' calls in
alsaconf Makefile as well. Added AC_PROG_SED to configure to have it
set.

Fixes: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5363
Fixes: http://bugs.gentoo.org/show_bug.cgi?id=366587
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
12 years agoaplay: increase channel limit to 256
Tim Blechmann [Wed, 29 Jun 2011 07:44:06 +0000 (09:44 +0200)]
aplay: increase channel limit to 256

aplay is limited to 32 channels, which makes it impossible to use it for
testing devices with more channels. here we increase the limit to 256,
which should be sufficient for a virtual device made of 4 64-channel
soundcards.

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
12 years agoalsa-utils: amixer: Fix SND_CTL_TLVT_DB_RANGE handling
Lars-Peter Clausen [Thu, 16 Jun 2011 12:19:18 +0000 (14:19 +0200)]
alsa-utils: amixer: Fix SND_CTL_TLVT_DB_RANGE handling

Current support for handling SND_CTL_TLVT_DB_RANGE in amixer is completely
broken. This patch fixes it.

Reported-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agospeaker-test.1: Clarify man page by giving examples
Daniel T Chen [Sat, 4 Jun 2011 21:44:43 +0000 (17:44 -0400)]
speaker-test.1: Clarify man page by giving examples

BugLink: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620513
From the Debian bug report:
"The speaker-test manpage could be improved somewhat by helping a
little bit the user determine how to find out the devices he can test.

Based on http://alsa.opensrc.org/Speaker-test I have make some changes
to the manpage (diff attached) to describe a little bit more how
speaker-test can be used alongside 'aplay'.

Please consider the following patch for
alsa-utils-1.0.23/speaker-test/speaker-test.1"

Signed-off-by: Javier Fernández-Sanguino Peña <jfs@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoaplay: Use standard endian convesions
Takashi Iwai [Fri, 3 Jun 2011 12:35:44 +0000 (14:35 +0200)]
aplay: Use standard endian convesions

asm/*.h stuff shouldn't be used directly from the user-space apps.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoaplay: Add include files for mkdir()
Takashi Iwai [Fri, 3 Jun 2011 12:30:55 +0000 (14:30 +0200)]
aplay: Add include files for mkdir()

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoalsamixer: Fix 64bit issues
Takashi Iwai [Fri, 3 Jun 2011 12:28:28 +0000 (14:28 +0200)]
alsamixer: Fix 64bit issues

lrint() returns a long int.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoUpdated COPYING with the recent FSF address
Takashi Iwai [Fri, 3 Jun 2011 12:24:30 +0000 (14:24 +0200)]
Updated COPYING with the recent FSF address

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoalsaloop: Use AM_CFLAGS in Makefile.am
Takashi Iwai [Fri, 3 Jun 2011 12:21:53 +0000 (14:21 +0200)]
alsaloop: Use AM_CFLAGS in Makefile.am

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoAdd alsaucm to .gitignore
Takashi Iwai [Fri, 3 Jun 2011 10:45:13 +0000 (12:45 +0200)]
Add alsaucm to .gitignore

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoaplay: Avoid recursive signal handling
Takashi Iwai [Fri, 3 Jun 2011 10:44:17 +0000 (12:44 +0200)]
aplay: Avoid recursive signal handling

When abort() is issued in snd_pcm_close() path, it may loop recursively
and crash.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoaplay: Add -i option for interactive mode
Takashi Iwai [Fri, 3 Jun 2011 10:41:26 +0000 (12:41 +0200)]
aplay: Add -i option for interactive mode

The recent addition of pause/resume control via keyboard brought
a problem when aplay/arecord is invoked in background.  For avoiding
regressions, it's safer to use non-interactive mode as default and
enable the new feature via an option.

Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoalsaucm: Don't double-free empty lists
Stephen Warren [Thu, 2 Jun 2011 22:45:13 +0000 (16:45 -0600)]
alsaucm: Don't double-free empty lists

When snd_use_case_get_list (and hence also snd_use_case_card_list) returns
an empty list, alsaucm still attempts to free it. This ends up double-
freeing the returned list, or worse, freeing an invalid pointer, depending
on how snd_use_case_get_list gets implemented. Fix alsaucm to return early
on empty lists to avoid this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaucm: Add list1 command for non-tuple lists
Stephen Warren [Thu, 2 Jun 2011 22:45:12 +0000 (16:45 -0600)]
alsaucm: Add list1 command for non-tuple lists

snd_use_case_get_list returns lists of strings that are either:
a) A sequence of single strings
b) A sequence of pairs of strings all flattened into a single list

The current list command assumes layout (b) above, and hence prints
nothing when printing a single-entry list that's actually in layout (a).
Add a new command "list1" to dump lists in layout (a).

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoRevert "alsactl - Display help for names command"
Jaroslav Kysela [Thu, 28 Apr 2011 06:13:28 +0000 (08:13 +0200)]
Revert "alsactl - Display help for names command"

This reverts commit 6d32e055d73edfe6be90135c500dcb32491cf04d.

From: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsactl init: Mute CD Playback volume by default
David Henningsson [Mon, 4 Apr 2011 09:28:47 +0000 (11:28 +0200)]
alsactl init: Mute CD Playback volume by default

The CD analog playback line is seldom used these days, as all
modern players rip the CD and use the DAC on the sound card.
In addition, it causes background hum on some machines.
Therefore keep it muted by default.

BugLink: http://bugs.launchpad.net/bugs/747184
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoalsamixer: fix build on uClibc
Peter Korsgaard [Mon, 14 Mar 2011 08:48:13 +0000 (09:48 +0100)]
alsamixer: fix build on uClibc

exp10 is a glibc extension, which isn't supported on uClibc. Luckily,
exp10() is trivial to compute based on exp(), so add a wrapper for
the uClibc case.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: another try to force correct formats for libsamplerate
Jaroslav Kysela [Tue, 8 Mar 2011 11:56:56 +0000 (12:56 +0100)]
alsaloop: another try to force correct formats for libsamplerate

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: libsamplerate requires specific formats, force them for slave mode
Jaroslav Kysela [Mon, 7 Mar 2011 13:21:19 +0000 (14:21 +0100)]
alsaloop: libsamplerate requires specific formats, force them for slave mode

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsamixer: fix display of active/inactive controls
Raymond Yau [Mon, 28 Feb 2011 14:36:36 +0000 (15:36 +0100)]
alsamixer: fix display of active/inactive controls

Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
13 years agoRelease v1.0.24.2
Jaroslav Kysela [Mon, 31 Jan 2011 14:19:55 +0000 (15:19 +0100)]
Release v1.0.24.2

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaucm: do not bail out in the interactive mode upon error
Jaroslav Kysela [Mon, 31 Jan 2011 13:30:20 +0000 (14:30 +0100)]
alsaucm: do not bail out in the interactive mode upon error

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaucm: fix interactive mode, add batch mode
Jaroslav Kysela [Mon, 31 Jan 2011 13:12:55 +0000 (14:12 +0100)]
alsaucm: fix interactive mode, add batch mode

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaucm: fix list command and output
Pierre-Louis Bossart [Fri, 28 Jan 2011 05:14:44 +0000 (23:14 -0600)]
alsaucm: fix list command and output

add one argument to list to avoid error message, do not list
comments as verbs

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoRelease v1.0.24.1
Jaroslav Kysela [Fri, 28 Jan 2011 12:03:25 +0000 (13:03 +0100)]
Release v1.0.24.1

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoRelease v1.0.24
Jaroslav Kysela [Wed, 26 Jan 2011 11:04:37 +0000 (12:04 +0100)]
Release v1.0.24

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoMerge branch 'ucm'
Jaroslav Kysela [Mon, 24 Jan 2011 14:00:26 +0000 (15:00 +0100)]
Merge branch 'ucm'

13 years agoconfigure.in: Fix xmlto detection
Ozan Çağlayan [Wed, 5 Jan 2011 11:01:04 +0000 (13:01 +0200)]
configure.in: Fix xmlto detection

xmlto was never detected when alsaconf is disabled leading to a missing
alsactl_init man page.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoTranslate alsa-utils to French.
Christoph J. Thompson [Fri, 7 Jan 2011 12:46:58 +0000 (13:46 +0100)]
Translate alsa-utils to French.

modified:   po/LINGUAS
new file:   po/fr.po

Signed-off-by: Christoph J. Thompson <cjsthompson@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoalsamixer: use cubic scale for volume bars
Clemens Ladisch [Mon, 6 Dec 2010 13:07:48 +0000 (14:07 +0100)]
alsamixer: use cubic scale for volume bars

Instead of mapping the raw volume values linearly to the screen, use
a mapping where the bar height is proportional to the audible volume,
i.e., where the amplitude is the cube of the bar height.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
13 years agoalsamixer: increase step size for big control value ranges
Clemens Ladisch [Mon, 6 Dec 2010 13:05:10 +0000 (14:05 +0100)]
alsamixer: increase step size for big control value ranges

For controls with a big range, stepping through all values can become
tedious and make it impossible to adjust the volume easily.  Therefore,
ensure that all steps are big enough so that the full range has at most
one hundred steps.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
13 years agoalsamixer: remove obsolete e-mail
Clemens Ladisch [Mon, 6 Dec 2010 13:04:39 +0000 (14:04 +0100)]
alsamixer: remove obsolete e-mail

Remove the no-longer-valid e-mail address also from the man page.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
13 years agoalsactl: Add a --with-udev-rules-dir configure option.
Colin Guthrie [Thu, 25 Nov 2010 21:40:25 +0000 (21:40 +0000)]
alsactl: Add a --with-udev-rules-dir configure option.

After the previous patch to install udev rules it is impossible to do a
non-root, custom-prefix make install. This is generally not a problem
when building official packages but it can be a pain for developers
and debuggers etc.

This is essentially the same patch as was already made in PulseAudio
in commit e8a5746f2fcae59bfd18d39b621509b3ef130453.

Signed-off-by: Colin Guthrie <gmane@colin.guthr.ie>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoconfigure.in: Fix variable name
Ozan Çağlayan [Thu, 25 Nov 2010 07:36:37 +0000 (09:36 +0200)]
configure.in: Fix variable name

Fix variable name for --with-asound-state-dir as currently we have
to pass --with-ASOUND_STATE_DIR= which is wrong and inconsistent with
the other switches.

Signed-off-by: Ozan Çağlayan <ozan@pardus.org.tr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoalsactl: Move asound.state location to /var/lib/alsa
Lennart Poettering [Tue, 23 Nov 2010 01:59:18 +0000 (02:59 +0100)]
alsactl: Move asound.state location to /var/lib/alsa

.... and add configure switch for it.

/etc might be on a read-only partition which is not suitable for dynamic
data such as the mixer settings. Hence move the location of asound.state
to /var/lib.

This is based on a patch from Ubuntu/Debian which hardcoded the pah in
/var/lib.

Signed-off-by: Lennart Poettering <mznyfn@0pointer.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsactl: systemd and udev hookup
Lennart Poettering [Tue, 23 Nov 2010 00:45:08 +0000 (01:45 +0100)]
alsactl: systemd and udev hookup

Add minimal systemd and udev support to alsactl so that mixer settings
are restored at boot, when sound cards are plugged in and saved on
shutdown.

This is similar to existing udev/init script solutions in various
distributions.

Note that alsactl is called both synchronously from the udev rules as
well as asynchronously at boot. This is intended, and to ensure two
things:

- At boot the asound.state file might not be readable, since it resides
  on a different file system. That means exclusively restoring sound card
  settings from udev rules will no suffice, since if the rule is
  executed at early boot (for example within udev settle) then the file
  will no be readable and cannot be restored.

- We need to ensure that applications monitoring sound cards coming and
  going (such as PA) must not get these events before the mixer settings
  have been restored. That means the mixer settings must be restored
  synchronously withing the udev rules, before the events are passed on
  to the apps.

That basically means we need to restore the settings once in udev, to
deal with sound cards becoming available during runtime. And once in
early boot to deal with coldplugged soundcards whose data files might
not have been available at time of plugging. Hence we call alsactl
twice: one from the udev rule, and once from he systemd unit file.

Signed-off-by: Lennart Poettering <mznyfn@0pointer.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoupdate German translations
Clemens Ladisch [Wed, 10 Nov 2010 09:16:07 +0000 (10:16 +0100)]
update German translations

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
13 years agoalsamixer: remove obsolete e-mail
Clemens Ladisch [Wed, 10 Nov 2010 09:14:53 +0000 (10:14 +0100)]
alsamixer: remove obsolete e-mail

Tim Janik's e-mail address is no longer valid.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
13 years agoalsaloop: rework the ctl event handling routine
Jaroslav Kysela [Thu, 21 Oct 2010 18:38:06 +0000 (20:38 +0200)]
alsaloop: rework the ctl event handling routine

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaucm: fix command line arguments parsing
Jaroslav Kysela [Thu, 21 Oct 2010 18:24:37 +0000 (20:24 +0200)]
alsaucm: fix command line arguments parsing

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: Delay the restart a bit (to handle snd-aloop playback xruns better)
Jaroslav Kysela [Wed, 20 Oct 2010 07:26:24 +0000 (09:26 +0200)]
alsaloop: Delay the restart a bit (to handle snd-aloop playback xruns better)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agospeaker-test: Don't retry after fatal errors
David Henningsson [Fri, 15 Oct 2010 10:30:44 +0000 (12:30 +0200)]
speaker-test: Don't retry after fatal errors

Fixup commit 9b1a2566: Remove error loop

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 years agoalsaloop: Fix latency print
Jaroslav Kysela [Thu, 14 Oct 2010 13:39:28 +0000 (15:39 +0200)]
alsaloop: Fix latency print

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: fixes, added -W/--wake option
Jaroslav Kysela [Thu, 14 Oct 2010 09:17:25 +0000 (11:17 +0200)]
alsaloop: fixes, added -W/--wake option

- added -W/--wake option to reduce poll time
- another try to fix the avail_min parameter for playback
- fixed initial silence fill

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: add -U/--xrun to alsaloop.1 man page
Jaroslav Kysela [Wed, 13 Oct 2010 21:41:29 +0000 (23:41 +0200)]
alsaloop: add -U/--xrun to alsaloop.1 man page

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: added xrun profiling support (-U,--xrun), added SIGUSR1 state dump
Jaroslav Kysela [Wed, 13 Oct 2010 21:39:36 +0000 (23:39 +0200)]
alsaloop: added xrun profiling support (-U,--xrun), added SIGUSR1 state dump

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoucm: added listcards command
Jaroslav Kysela [Wed, 13 Oct 2010 09:47:23 +0000 (11:47 +0200)]
ucm: added listcards command

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaucm: initial rewrite to use update API
Jaroslav Kysela [Tue, 12 Oct 2010 11:16:54 +0000 (13:16 +0200)]
alsaucm: initial rewrite to use update API

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: add --pctl and --cctl options to man page
Jaroslav Kysela [Mon, 11 Oct 2010 09:56:16 +0000 (11:56 +0200)]
alsaloop: add --pctl and --cctl options to man page

Signed-off-by: Jaroslav Kysela <perex@perex.cz># Please enter the commit message for your changes. Lines starting
13 years agoalsaloop: add --pctl and --cctl options
Jaroslav Kysela [Mon, 11 Oct 2010 09:53:50 +0000 (11:53 +0200)]
alsaloop: add --pctl and --cctl options

In some cases it might be usefull to specify another CTL device names.
Add -X/--pctl and -Y/--cctl options.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: Fixes and added --workaround option
Jaroslav Kysela [Mon, 11 Oct 2010 08:24:14 +0000 (10:24 +0200)]
alsaloop: Fixes and added --workaround option

- added workaround for alsa-lib (pthread configuration parsing issue) -
  the workaround must be activated manually using ('--workaround serialopen')
- fixed avail_min initialization (caused high CPU usage or xruns)
- fixed shared buffer initialization (both capture and playback buffers
  must have equal number of samples in this config)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaucm: Report failure to set a device due to missing verb setup
Mark Brown [Fri, 8 Oct 2010 21:11:54 +0000 (23:11 +0200)]
alsaucm: Report failure to set a device due to missing verb setup

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
13 years agoalsaloop: Fix command-line parsing and pollfd initialization
Jaroslav Kysela [Fri, 8 Oct 2010 20:23:05 +0000 (22:23 +0200)]
alsaloop: Fix command-line parsing and pollfd initialization

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: Add OSS mixer redirection support
Jaroslav Kysela [Fri, 8 Oct 2010 13:10:23 +0000 (15:10 +0200)]
alsaloop: Add OSS mixer redirection support

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: added resampling for unsupported soundcard rates
Jaroslav Kysela [Thu, 7 Oct 2010 18:38:36 +0000 (20:38 +0200)]
alsaloop: added resampling for unsupported soundcard rates

- improve also xrun synchronization

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: fix resample argument parsing
Jaroslav Kysela [Wed, 6 Oct 2010 22:12:38 +0000 (00:12 +0200)]
alsaloop: fix resample argument parsing

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: fix -a option and slave mode processing
Jaroslav Kysela [Wed, 6 Oct 2010 18:34:03 +0000 (20:34 +0200)]
alsaloop: fix -a option and slave mode processing

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
13 years agoalsaloop: Fix thread handling
Jaroslav Kysela [Wed, 6 Oct 2010 16:51:29 +0000 (18:51 +0200)]
alsaloop: Fix thread handling

Signed-off-by: Jaroslav Kysela <perex@perex.cz>