]> git.alsa-project.org Git - alsa-utils.git/log
alsa-utils.git
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 years agoRelease v1.0.25 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 years agoRelease v1.0.24.2 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>
14 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>
14 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>
14 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>
14 years agoRelease v1.0.24.1 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>
14 years agoRelease v1.0.24 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>
14 years agoMerge branch 'ucm'
Jaroslav Kysela [Mon, 24 Jan 2011 14:00:26 +0000 (15:00 +0100)]
Merge branch 'ucm'

14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 years agoalsaucm: fix command line arguments parsing ucm
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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 years agoalsaloop: Fix loopbacks pointer initialization and allocation, fix -T option
Jaroslav Kysela [Wed, 6 Oct 2010 16:30:18 +0000 (18:30 +0200)]
alsaloop: Fix loopbacks pointer initialization and allocation, fix -T option

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoIntroduce alsaloop utility
Jaroslav Kysela [Wed, 18 Aug 2010 06:29:03 +0000 (08:29 +0200)]
Introduce alsaloop utility

alsaloop allows create a PCM loopback between a PCM capture device
and a PCM playback device.

alsaloop supports multiple soundcards, adaptive clock synchronization,
adaptive rate resampling using the samplerate library (if available in
the system). Also, mixer controls can be redirected from one card to
another (for example Master and PCM).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoamixer: fix parsing of control ID name
Jaroslav Kysela [Tue, 5 Oct 2010 08:02:45 +0000 (10:02 +0200)]
amixer: fix parsing of control ID name

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoMerge branch 'ucm-upstream' of git://git.slimlogic.co.uk/alsa-utils into ucm
Jaroslav Kysela [Wed, 22 Sep 2010 18:06:02 +0000 (20:06 +0200)]
Merge branch 'ucm-upstream' of git://git.slimlogic.co.uk/alsa-utils into ucm

15 years agoalsactl init: Initialize also "Master Front Playback Volume" & "Switch"
Jaroslav Kysela [Tue, 7 Sep 2010 15:33:14 +0000 (17:33 +0200)]
alsactl init: Initialize also "Master Front Playback Volume" & "Switch"

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoalsactl init: Handle "Capture Source" and "Mic Boost" in the default script
Jaroslav Kysela [Tue, 7 Sep 2010 15:07:12 +0000 (17:07 +0200)]
alsactl init: Handle "Capture Source" and "Mic Boost" in the default script

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoalsactl: Change handling of inactive controls
Jaroslav Kysela [Thu, 2 Sep 2010 13:48:43 +0000 (15:48 +0200)]
alsactl: Change handling of inactive controls

The inactive controls are stored, but they are not restored
when they are marked inactive in the state file or in the
driver.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoalsactl init: use "generic method" instead "guess method"
Jaroslav Kysela [Thu, 2 Sep 2010 13:36:56 +0000 (15:36 +0200)]
alsactl init: use "generic method" instead "guess method"

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoalsactl init: Use "Found hardware:" instead "Unknown hardware:"
Jaroslav Kysela [Thu, 2 Sep 2010 13:03:23 +0000 (15:03 +0200)]
alsactl init: Use "Found hardware:" instead "Unknown hardware:"

It seems that "Unknown hardware:" confuses users. Use "Found hardware:"
instead.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoalsaucm: Add Use Case Manager utility
Stefan Schmidt [Wed, 30 Sep 2009 19:12:17 +0000 (21:12 +0200)]
alsaucm: Add Use Case Manager utility

alsaucm is a command line tool that can be used to generate and debug UCM
configuration files. The alsaucm utility can fully use the UCM functionality
to query and configure all the UCM functionality in alsa-lib.

This work was sponsored by Slimlogic Ltd, Texas Instruments Inc and Wolfson
Microelectronics PLC.

CC: Ian Molton <ian@mnementh.co.uk>
CC: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Justin Xu <justinx@slimlogic.co.uk>
Signed-off-by: Stefan Schmidt <stefan@slimlogic.co.uk>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
15 years agoaplay/arecord: term_c_lflag variable might be unitialized in some cases
Jaroslav Kysela [Wed, 18 Aug 2010 06:23:09 +0000 (08:23 +0200)]
aplay/arecord: term_c_lflag variable might be unitialized in some cases

The term_c_lflag variable might be unitialized in some cases. Add extra
check to avoid setting of wrong value.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agospeaker-test: add test pattern for PCM layer debugging purposes
Jaroslav Kysela [Wed, 18 Aug 2010 06:22:23 +0000 (08:22 +0200)]
speaker-test: add test pattern for PCM layer debugging purposes

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoaplay: fix termio settings - return back old c_flag value on exit
Jaroslav Kysela [Thu, 15 Jul 2010 11:39:14 +0000 (13:39 +0200)]
aplay: fix termio settings - return back old c_flag value on exit

- symptom - ssh client password authentication does not work with
  the modified terminal settings

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoaplay/arecord: Added hardware pause support (press SPACE or Enter)
Jaroslav Kysela [Thu, 15 Jul 2010 08:40:21 +0000 (10:40 +0200)]
aplay/arecord: Added hardware pause support (press SPACE or Enter)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoRevert wrong parts of "alsactl: use snd_config_imake* functions"
Clemens Ladisch [Wed, 26 May 2010 08:37:58 +0000 (10:37 +0200)]
Revert wrong parts of "alsactl: use snd_config_imake* functions"

This reverts the parts of commit e509df69a5100df28921980362488f6947df0aae
that accidentally reverted a bunch of earlier commits.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
15 years agoalsactl: change format of comment node in state file
Clemens Ladisch [Wed, 26 May 2010 08:28:11 +0000 (10:28 +0200)]
alsactl: change format of comment node in state file

Make the comment node a separate node in the state file (join=0), and
move it after the other fields of the respective control.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
15 years agoalsactl: correctly restore dB values of controls with changed range
Clemens Ladisch [Wed, 26 May 2010 08:27:25 +0000 (10:27 +0200)]
alsactl: correctly restore dB values of controls with changed range

When the range of a control has changed between driver versions, it is a
good idea to restore the same dB value of the control.  However,
computing the dB value by interpolating betweem the min/max dB values
duplicates alsa-lib's TLV functions and does not even work for controls
with a linear dB range.

A simple conversion to dB and back can be done if we add the dB value(s)
to the saved state.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
15 years agoalsactl: remove open-coded search
Clemens Ladisch [Wed, 26 May 2010 08:19:17 +0000 (10:19 +0200)]
alsactl: remove open-coded search

Remove search_comment_item since it does the same as snd_config_search.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
15 years agoalsactl: move alloca out of loop
Clemens Ladisch [Wed, 26 May 2010 08:18:43 +0000 (10:18 +0200)]
alsactl: move alloca out of loop

Reserving new space from the stack in every loop iteration is not
necessary, so move the call to snd_ctl_elem_id_alloca outside where it
is executed only once.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
15 years agoalsactl: use snd_config_imake* functions
Clemens Ladisch [Wed, 26 May 2010 08:07:47 +0000 (10:07 +0200)]
alsactl: use snd_config_imake* functions

To save a call to snd_config_set_xxx, replace the calls to
snd_config_make_xxx with snd_config_imake_xxx.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>