OSDN Git Service

android-x86/external-alsa-utils.git
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>
13 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>
13 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>
13 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>
13 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

13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 years agoRelease v1.0.23
Jaroslav Kysela [Fri, 16 Apr 2010 11:11:06 +0000 (13:11 +0200)]
Release v1.0.23

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoaconnect -x: Do not update index after removal of connection.
lieven moors [Mon, 15 Mar 2010 17:13:11 +0000 (18:13 +0100)]
aconnect -x: Do not update index after removal of connection.

Signed-off-by: lieven moors <lievenmoors@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 years agoalsactl: update debug prints in state.c
Jaroslav Kysela [Thu, 25 Feb 2010 15:45:13 +0000 (16:45 +0100)]
alsactl: update debug prints in state.c

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoalsactl: add more debug prints to state.c
Jaroslav Kysela [Thu, 25 Feb 2010 14:01:29 +0000 (15:01 +0100)]
alsactl: add more debug prints to state.c

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoalsactl: improve -d to get warnings and store exitcode to runstate file
Jaroslav Kysela [Thu, 25 Feb 2010 08:19:45 +0000 (09:19 +0100)]
alsactl: improve -d to get warnings and store exitcode to runstate file

Also, make the initialization & restore logic for one card similar to
multiple card initialization & restore.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoalsamixer: handle out-of-range volume values
Clemens Ladisch [Mon, 22 Feb 2010 08:42:03 +0000 (09:42 +0100)]
alsamixer: handle out-of-range volume values

Ensure that control volume values are in their allowed range; otherwise,
the displayed values could be outside the range 0..100 and mess up the
layout.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
14 years agoalsamixer: fix division by zero
Clemens Ladisch [Fri, 19 Feb 2010 16:07:20 +0000 (17:07 +0100)]
alsamixer: fix division by zero

The attempt to divide by max-min fails if a control has only one valid
value.  In this case, adjust the maximum so that the computation can
succeed; the control will look like 0%.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
14 years agoalsactl: Fix return code
Jaroslav Kysela [Sun, 14 Feb 2010 18:07:25 +0000 (19:07 +0100)]
alsactl: Fix return code

The main() should return positive error value.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoamixer: add support for TLV dB minmax types
Jaroslav Kysela [Wed, 10 Feb 2010 10:52:53 +0000 (11:52 +0100)]
amixer: add support for TLV dB minmax types

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoamixer: fix display of unreadable control elements
Clemens Ladisch [Mon, 1 Feb 2010 12:22:39 +0000 (13:22 +0100)]
amixer: fix display of unreadable control elements

When an element is marked as not readble, do not try to read it and then
complain about the error, but just ignore it.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
14 years agospeaker-test: add fflush(stdout) to write_loop
Jaroslav Kysela [Wed, 27 Jan 2010 09:26:52 +0000 (10:26 +0100)]
speaker-test: add fflush(stdout) to write_loop

Flush stdout for pipes. The monitor tool from hda-analyzer requires this.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoamidi: fix port listing
Clemens Ladisch [Mon, 25 Jan 2010 13:11:37 +0000 (14:11 +0100)]
amidi: fix port listing

Rewrite the port listing code because it was too complex and had some
bugs when handling write-only or read-only ports.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
14 years agoaplay -- update the man file
John Sauter [Fri, 8 Jan 2010 21:28:57 +0000 (16:28 -0500)]
aplay -- update the man file

Bring the man file up to date, documenting the signals and all the
options, including those added for audio surveilance.

Signed-off-by: John Sauter <John_Sauter@systemeyescomputerstore.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoaplay -- add features for audio surveilance
John Sauter [Fri, 8 Jan 2010 21:24:33 +0000 (16:24 -0500)]
aplay -- add features for audio surveilance

Add signal SIGUSR1 to turn over the output file,
--max-file-time to cause the output file to turn over automatically,
and --use-strftime to create output files based on the current time.

Signed-off-by: John Sauter <John_Sauter@systemeyescomputerstore.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoaplay - add option --process-id-file
John Sauter [Fri, 8 Jan 2010 21:21:07 +0000 (16:21 -0500)]
aplay - add option --process-id-file

Write the process ID to a file so other programs can
signal aplay.  When aplay exits, delete the file.

Signed-off-by: John Sauter <John_Sauter@systemeyescomputerstore.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoaplay: Dump PCM state on xrun when verbose mode is active
Jaroslav Kysela [Fri, 8 Jan 2010 14:58:47 +0000 (15:58 +0100)]
aplay: Dump PCM state on xrun when verbose mode is active

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoRelease v1.0.22
Jaroslav Kysela [Wed, 16 Dec 2009 15:18:52 +0000 (16:18 +0100)]
Release v1.0.22

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agospeaker-test: not all sample formats are supported - show only supported ones
Jaroslav Kysela [Tue, 15 Dec 2009 14:34:46 +0000 (15:34 +0100)]
speaker-test: not all sample formats are supported - show only supported ones

Also, check if given format is supported.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agospeaker-test: add -d (--debug) option to show PCM parameters
Jaroslav Kysela [Tue, 15 Dec 2009 14:27:05 +0000 (15:27 +0100)]
speaker-test: add -d (--debug) option to show PCM parameters

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoalsactl: fix error path code in init_parse.c
Jaroslav Kysela [Mon, 14 Dec 2009 16:26:57 +0000 (17:26 +0100)]
alsactl: fix error path code in init_parse.c

If initialization file (-i option) does not exists, the free_space()
function was called with NULL pointer.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoalsactl: init - default - initialize also "Digital Input Source"
Jaroslav Kysela [Thu, 12 Nov 2009 07:54:25 +0000 (08:54 +0100)]
alsactl: init - default - initialize also "Digital Input Source"

Set "Digital Input Source" to "Digital Mic 1" or "Mic" (fallback).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoarecord: fix wrong chunk_size initialization when verbose and mmap flags are set
Jaroslav Kysela [Mon, 9 Nov 2009 10:48:23 +0000 (11:48 +0100)]
arecord: fix wrong chunk_size initialization when verbose and mmap flags are set

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoaplay - Show available formats
Arnout Engelen [Sun, 18 Oct 2009 19:34:30 +0000 (21:34 +0200)]
aplay - Show available formats

Report available sample formats in aplay/arecord when currently selected
one doesn't work.

Signed-off-by: Arnout Engelen <alsa2@bzzt.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 years agoalsactl init: Add CTL{do_search} and CTL{do_count} parsers
Jaroslav Kysela [Thu, 8 Oct 2009 11:47:27 +0000 (13:47 +0200)]
alsactl init: Add CTL{do_search} and CTL{do_count} parsers

To increase configuration readability, add CTL{do_search} and CTL{do_count}
actions. The old PROGRAM=="__ctl_search" notion is also allowed.

Add CTL{write} to XML documentation.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoalsactl init: use empty GOTOs in init/default file to increase readability
Jaroslav Kysela [Wed, 7 Oct 2009 11:41:13 +0000 (13:41 +0200)]
alsactl init: use empty GOTOs in init/default file to increase readability

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoalsactl: introduce CTL{write} to match directly written CTL values
Jaroslav Kysela [Wed, 7 Oct 2009 08:37:40 +0000 (10:37 +0200)]
alsactl: introduce CTL{write} to match directly written CTL values

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoalsactl - Initialize Speaker volume to 0dB when Master is present
Takashi Iwai [Wed, 12 Aug 2009 10:45:05 +0000 (12:45 +0200)]
alsactl - Initialize Speaker volume to 0dB when Master is present

Initialize Speaker volume to 0dB as well as Headphone when Master
is present.  Also initialize Headphone,1 for machines with dual
headphones.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 years agoalsactl init: Fix typo "(" -> "{" in Headphone default rule
Jaroslav Kysela [Wed, 2 Sep 2009 12:31:49 +0000 (14:31 +0200)]
alsactl init: Fix typo "(" -> "{" in Headphone default rule

Reported-by: Philipp Jocham <philipp.jocham@gmx.net>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoalsamixer: Improve set_escdelay() function availability detection
Jaroslav Kysela [Mon, 31 Aug 2009 15:03:04 +0000 (17:03 +0200)]
alsamixer: Improve set_escdelay() function availability detection

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 years agoRelease v1.0.21
Jaroslav Kysela [Mon, 31 Aug 2009 13:09:38 +0000 (15:09 +0200)]
Release v1.0.21

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoaplaymidi: reduce bandwidth for big SysEx messages
Clemens Ladisch [Mon, 17 Aug 2009 10:29:11 +0000 (12:29 +0200)]
aplaymidi: reduce bandwidth for big SysEx messages

When throttling the data rate for big SysEx messages, use the bandwidth
that devices use in practice instead of the theoretical maximum.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
15 years agoalsamixer: fix display of inactive volume bar
Clemens Ladisch [Fri, 19 Jun 2009 06:40:00 +0000 (08:40 +0200)]
alsamixer: fix display of inactive volume bar

Fix the volume bar color selection logic so that the current attribute
is used for inactive controls.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
15 years agoalsamixer: rename attr to ch
Clemens Ladisch [Fri, 19 Jun 2009 06:39:24 +0000 (08:39 +0200)]
alsamixer: rename attr to ch

Rename the attr variable because it contains not only the character's
attributes but also the character itself.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
15 years agoalsactl init rules: fix Lenovo T61 initialization (Speaker Playback Switch)
Jaroslav Kysela [Thu, 18 Jun 2009 13:20:15 +0000 (15:20 +0200)]
alsactl init rules: fix Lenovo T61 initialization (Speaker Playback Switch)

See: https://bugzilla.redhat.com/show_bug.cgi?id=506266

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoalsamixer - Tricolorize volume bars
Takashi Iwai [Thu, 18 Jun 2009 12:42:28 +0000 (14:42 +0200)]
alsamixer - Tricolorize volume bars

A little of bit of Italian taste was missing...

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoalsamixer: update man page
Clemens Ladisch [Tue, 2 Jun 2009 09:19:45 +0000 (11:19 +0200)]
alsamixer: update man page

Update man page for change in "CAPTURE" field.

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