]> git.alsa-project.org Git - alsa-utils.git/log
alsa-utils.git
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>
13 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>
13 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>
13 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 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 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 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 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 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 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 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 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
15 years agoRelease v1.0.22 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
16 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>
16 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>
16 years agoalsamixer: Improve set_escdelay() function availability detection v1.0.21
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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 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>
16 years agoalsamixer: fix text box clipping with multi-column characters
Clemens Ladisch [Thu, 28 May 2009 07:16:11 +0000 (09:16 +0200)]
alsamixer: fix text box clipping with multi-column characters

When a multi-column character would straddle the left window border of
a text box, we have to take the inserted space character into account
when we compute how many characters fit into the rest of the line.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
16 years agoUpdate ja.po for alsamixer
Takashi Iwai [Wed, 27 May 2009 13:08:45 +0000 (15:08 +0200)]
Update ja.po for alsamixer

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoalsamixer - Fix uninitialized variable warning
Takashi Iwai [Wed, 27 May 2009 12:16:30 +0000 (14:16 +0200)]
alsamixer - Fix uninitialized variable warning

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoadd German translations
Clemens Ladisch [Mon, 25 May 2009 08:31:06 +0000 (10:31 +0200)]
add German translations

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
16 years agoalsamixer: show channel names for multichannel controls
Clemens Ladisch [Mon, 25 May 2009 08:26:22 +0000 (10:26 +0200)]
alsamixer: show channel names for multichannel controls

For multichannel mixer controls, add the channel name to each screen
control.

Also make some other small changes.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
16 years agoalsactl: init - fix default configuration for ENS1370
Jaroslav Kysela [Thu, 21 May 2009 14:44:42 +0000 (16:44 +0200)]
alsactl: init - fix default configuration for ENS1370

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoalsactl: fixed Headphone Playback Volume setting in default rules
Jaroslav Kysela [Fri, 15 May 2009 10:37:48 +0000 (12:37 +0200)]
alsactl: fixed Headphone Playback Volume setting in default rules

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agospeaker-test: only check byte order once
Dan McGee [Sun, 10 May 2009 00:47:40 +0000 (02:47 +0200)]
speaker-test: only check byte order once

Rather than having numerous preprocessor directives scattered in the code
checking __BYTE_ORDER, only check it once and define a set of macros
accordingly that can be used in the rest of the code. This makes things
simpler to read and less error-prone.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
16 years agospeaker-test: move existing endian macros up in the file
Dan McGee [Sun, 10 May 2009 00:47:39 +0000 (02:47 +0200)]
speaker-test: move existing endian macros up in the file

This is necessary for a later patch removing the various endianness checks
sprinkled throughout the code.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
16 years agoRemove dead/commented out code
Dan McGee [Sun, 10 May 2009 00:27:07 +0000 (02:27 +0200)]
Remove dead/commented out code

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
16 years agoAllow frequencies down to 30 Hz
Dan McGee [Sun, 10 May 2009 00:27:06 +0000 (02:27 +0200)]
Allow frequencies down to 30 Hz

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
16 years agospeaker-test: allow frequency to be floating point
Dan McGee [Sun, 10 May 2009 00:27:05 +0000 (02:27 +0200)]
speaker-test: allow frequency to be floating point

Use atof() rather than atoi() to store the frequency- we were already using
a floating point value internally but did not let the user specify one from
the command line.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
16 years agoRelease v1.0.20 v1.0.20
Jaroslav Kysela [Wed, 6 May 2009 07:07:24 +0000 (09:07 +0200)]
Release v1.0.20

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoalsactl: ca0106 initialization files - wrong exit
Jaroslav Kysela [Tue, 5 May 2009 09:12:43 +0000 (11:12 +0200)]
alsactl: ca0106 initialization files - wrong exit

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoalsactl: add ca0106 initialization file
Jaroslav Kysela [Tue, 5 May 2009 09:10:35 +0000 (11:10 +0200)]
alsactl: add ca0106 initialization file

This file was created using alsa-info.sh database on www.alsa-project.org
without any real tests.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoalsactl: changes in initialization files
Jaroslav Kysela [Tue, 5 May 2009 08:33:08 +0000 (10:33 +0200)]
alsactl: changes in initialization files

- handle virtual master for T61 and TM8100
- when master volume control is available, initialize PCM & CD playback
  volumes to 0dB

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoalsactl: fix sysfsroot path and parser extensions
Jaroslav Kysela [Thu, 30 Apr 2009 09:26:15 +0000 (11:26 +0200)]
alsactl: fix sysfsroot path and parser extensions

The sysfsroot path is /sys/class/sound/cardX/device for recent kernels.
The ACCESS check honors the variable substutition now. Added $config{key}
substitution.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoalsactl: init rules - fix HDA Conexact codec PCM initialization
Jaroslav Kysela [Tue, 28 Apr 2009 09:19:48 +0000 (11:19 +0200)]
alsactl: init rules - fix HDA Conexact codec PCM initialization

16 years agoALSA: Added vi-like key bindings to alsamixer.
Simon Hengel [Wed, 1 Apr 2009 19:51:21 +0000 (21:51 +0200)]
ALSA: Added vi-like key bindings to alsamixer.

* Added 'j' as an alias for KEY_DOWN
* Added 'k' as an alias for KEY_UP

Signed-off-by: Simon Hengel <simon.hengel@gmx.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoalsactl/init: Fix CTL{value} assigning - make it relevant to documentation
Jaroslav Kysela [Wed, 15 Apr 2009 06:57:39 +0000 (08:57 +0200)]
alsactl/init: Fix CTL{value} assigning - make it relevant to documentation

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoaplay/arecord: improve suspicious buffer detection and add --test-coef parameter
Jaroslav Kysela [Thu, 9 Apr 2009 07:48:27 +0000 (09:48 +0200)]
aplay/arecord: improve suspicious buffer detection and add --test-coef parameter

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoaplay/arecord: remove debug printfs introduced by previous patch
Jaroslav Kysela [Wed, 8 Apr 2009 16:15:56 +0000 (18:15 +0200)]
aplay/arecord: remove debug printfs introduced by previous patch

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoaplay/arecord: fix underrun/overrun time calculation for monotonic clock
Jaroslav Kysela [Wed, 8 Apr 2009 07:22:16 +0000 (09:22 +0200)]
aplay/arecord: fix underrun/overrun time calculation for monotonic clock

Also, add librt check to configure.in.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 years agoalsaconf - prefer /etc/modprobe.d/sound/50-sound.conf
Takashi Iwai [Wed, 18 Mar 2009 11:10:55 +0000 (12:10 +0100)]
alsaconf - prefer /etc/modprobe.d/sound/50-sound.conf

For recent module-init-tools, prefer /etc/modprobe.d/50-sound.conf
instead of /etc/modprobe.d/sound.  The latest m-i-t version will
complain (and can ignore) files that don't follow the format.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agoalsactl - Add missing -I option
Takashi Iwai [Fri, 20 Feb 2009 17:01:58 +0000 (18:01 +0100)]
alsactl - Add missing -I option

Signed-off-by: Takashi Iwai <tiwai@suse.de>
16 years agospeaker-test.c - add readability comments to speaker channels
Wu Fengguang [Fri, 20 Feb 2009 16:59:51 +0000 (17:59 +0100)]
speaker-test.c - add readability comments to speaker channels

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>