OSDN Git Service

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

15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 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>
15 years agoFix misc compile warnings in alsactl
Takashi Iwai [Wed, 18 Feb 2009 14:34:57 +0000 (15:34 +0100)]
Fix misc compile warnings in alsactl

  alsactl.c:166: warning: assignment from incompatible pointer type
  init_utils_string.c:21: warning: ‘string_is_true’ defined but not used

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoalsactl: init - modify default rule to better support some HDA codecs
Jaroslav Kysela [Thu, 5 Feb 2009 11:58:42 +0000 (12:58 +0100)]
alsactl: init - modify default rule to better support some HDA codecs

Some HDA codecs have shifted dB range (-34.5dB - 12dB) for PCM and CD
inputs. Use default 0dB value for them.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoFix build with partially-installed alsa-lib
Takashi Iwai [Thu, 29 Jan 2009 14:41:31 +0000 (15:41 +0100)]
Fix build with partially-installed alsa-lib

Fix build of alsa-utils package with a partially installed alsa-lib,
e.g. without ramwidi or sequencer support.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoUse ANSI C functions
Will Wagner [Mon, 19 Jan 2009 13:19:10 +0000 (14:19 +0100)]
Use ANSI C functions

Replace non-ANSI C functions index() and rindex() with strchr() and
strrchr(), respectively.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoRelease v1.0.19
Jaroslav Kysela [Mon, 19 Jan 2009 11:17:19 +0000 (12:17 +0100)]
Release v1.0.19

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoFix wrong direction check in aplay/arecord --list-pcms
Peter Stokes [Mon, 12 Jan 2009 11:29:41 +0000 (12:29 +0100)]
Fix wrong direction check in aplay/arecord --list-pcms

I have just discovered a minor logic inversion bug in
aplay/arecord --list-pcms functionality.

Basically, executing "aplay --list-pcms" lists all devices capable of
capture and executing "arecord --list-pcms" lists all devices capable
of playback.

Signed-off-by: Peter Stokes <linux@dadeos.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoaseqnet - Add $(INTLLIBS) to Makefile.am
Takashi Iwai [Mon, 8 Dec 2008 10:59:27 +0000 (11:59 +0100)]
aseqnet - Add $(INTLLIBS) to Makefile.am

Add $(INTLLIBS) to LDADD for aseqnet to fix build errors on uclibc
(and possibly others).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoalsa-utils check if __USE_BSD is defined before compiling "BSD functions"
Hans-Christian Egtvedt [Mon, 8 Dec 2008 10:55:27 +0000 (11:55 +0100)]
alsa-utils check if __USE_BSD is defined before compiling "BSD functions"

Another bug/issue I tripped over when compiling alsa-utils in an
environment using uClibc to supply the C library functions. Here I have
enabled some old BSD style functions. The attached patch will honor
them if they are enabled.

Without this patch I get a redefined error during compile.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoMerge branch 'master' of git@git.alsa-project.org:alsa-utils
Takashi Iwai [Wed, 26 Nov 2008 13:32:46 +0000 (14:32 +0100)]
Merge branch 'master' of git@git.alsa-project.org:alsa-utils

15 years agospeaker-test: Fix floating-point exception bug
Takashi Iwai [Wed, 26 Nov 2008 13:27:24 +0000 (14:27 +0100)]
speaker-test: Fix floating-point exception bug

The period_size an buffer_size parameters must be taken after calling
snd_pcm_hw_params().  Otherwise they could be undefined numbers.
For example, period_size gets 0 when pcsp driver is used, resulting in
a floating-point exception error.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoalsactl: Fix restore / init call behaviour when driver contains more controls
Jaroslav Kysela [Fri, 21 Nov 2008 13:44:31 +0000 (14:44 +0100)]
alsactl: Fix restore / init call behaviour when driver contains more controls

Fix check when driver contains more controls than state file. In this case,
initialization procedure should be run, too.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoMake some static tables and strings constants.
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 12:10:02 +0000 (13:10 +0100)]
Make some static tables and strings constants.

By doing this we move them from the .data section to .rodata setion,
or from .data.rel to .data.rel.ro.

The .rodata section is mapped directly from the on-disk file, which is
always a save, while .data.rel.ro is mapped directly when using
prelink, which is a save in a lot of cases.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
15 years agoMark static the functions not used outside their unit.
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 12:09:56 +0000 (13:09 +0100)]
Mark static the functions not used outside their unit.

This way the compiler can assume more information about their
interface for optimisation.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
15 years agoRemove some unused variables.
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 12:09:52 +0000 (13:09 +0100)]
Remove some unused variables.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
15 years agoRemove some dead code (comparisons between 0 and unsigned integers).
Diego E. 'Flameeyes' Pettenò [Fri, 21 Nov 2008 12:09:45 +0000 (13:09 +0100)]
Remove some dead code (comparisons between 0 and unsigned integers).

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
15 years agoMerge branch 'master' of git://git.flameeyes.eu/others/alsa/alsa-utils
Takashi Iwai [Thu, 13 Nov 2008 13:30:01 +0000 (14:30 +0100)]
Merge branch 'master' of git://git.flameeyes.eu/others/alsa/alsa-utils

15 years agoNowadays Gentoo also uses update-modules, so update alsaconf.
Diego 'Flameeyes' Pettenò [Thu, 13 Nov 2008 12:23:04 +0000 (13:23 +0100)]
Nowadays Gentoo also uses update-modules, so update alsaconf.

This was originally reported as Gentoo bug #193303 (
https://bugs.gentoo.org/show_bug.cgi?id=193303 ).

Original patch by Jack Kelly <endgame.dos@gmail.com>

Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
15 years agoCreate a special fd redirection for menu choice.
grdscarabe@grdscarabe.net [Thu, 13 Nov 2008 12:22:55 +0000 (13:22 +0100)]
Create a special fd redirection for menu choice.

Without this patch, dialog errors gets interpreted as the choice,
causing errors related to loading "snd-***" module.

The problem was reported as Gentoo bug #96467 (
https://bugs.gentoo.org/show_bug.cgi?id=96467 ).

Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
15 years agoMove conditional inclusion of locale.h further down.
Diego 'Flameeyes' Pettenò [Thu, 13 Nov 2008 12:22:13 +0000 (13:22 +0100)]
Move conditional inclusion of locale.h further down.

Without this patch, ENABLE_NLS is checked before ever being defined
(aconfig.h is not yet included), and thus locale.h would never be
included even when NLS is enabled.

Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
15 years agoMerge branch 'master' of git@git.alsa-project.org:alsa-utils
Takashi Iwai [Thu, 13 Nov 2008 08:29:40 +0000 (09:29 +0100)]
Merge branch 'master' of git@git.alsa-project.org:alsa-utils

15 years agoAdd -I option to alsactl
Takashi Iwai [Thu, 13 Nov 2008 08:28:43 +0000 (09:28 +0100)]
Add -I option to alsactl

Add -I option to alsactl to take back the old restore behavior without
initialization.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoalsaconf: add Slackware support
Clemens Ladisch [Mon, 10 Nov 2008 08:23:07 +0000 (09:23 +0100)]
alsaconf: add Slackware support

Add Slackware support.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
15 years agoAdd --disable-xmlto configure option
Takashi Iwai [Thu, 30 Oct 2008 10:50:17 +0000 (11:50 +0100)]
Add --disable-xmlto configure option

Added the check of xmlto program in configure script.
Also added --disable-xmlto configure option for systems with a broken
or older xmlto that doesn't work properly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoRelease v1.0.18
Jaroslav Kysela [Wed, 29 Oct 2008 12:42:11 +0000 (13:42 +0100)]
Release v1.0.18

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoiecset - Add missing help text for -n option
Takashi Iwai [Fri, 24 Oct 2008 09:48:57 +0000 (11:48 +0200)]
iecset - Add missing help text for -n option

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoaplay/arecord: add --test-position test
Jaroslav Kysela [Thu, 23 Oct 2008 09:13:24 +0000 (11:13 +0200)]
aplay/arecord: add --test-position test

In some cases (HDA audio) the ring buffer position values returned
from alsa-lib are inaccurate. The added --test-position option will
print suspicious values.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoAdd --disable-alsaconf to configure script
Jaroslav Kysela [Tue, 23 Sep 2008 06:10:19 +0000 (08:10 +0200)]
Add --disable-alsaconf to configure script

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoalsactl: Add -g,--ignore option to ignore 'No soundcards found' error
Jaroslav Kysela [Thu, 18 Sep 2008 07:40:02 +0000 (09:40 +0200)]
alsactl: Add -g,--ignore option to ignore 'No soundcards found' error

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoalsactl: Fix oops (when parsing card argument)
Jaroslav Kysela [Thu, 11 Sep 2008 11:39:42 +0000 (13:39 +0200)]
alsactl: Fix oops (when parsing card argument)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoRelease v1.0.18rc3
Jaroslav Kysela [Tue, 9 Sep 2008 16:55:50 +0000 (18:55 +0200)]
Release v1.0.18rc3

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoMerge branch 'master' of git@git.alsa-project.org:alsa-utils
Jaroslav Kysela [Tue, 9 Sep 2008 10:54:17 +0000 (12:54 +0200)]
Merge branch 'master' of git@git.alsa-project.org:alsa-utils

15 years agoaplay - show sample arrangement (mmap areas) in verbose more for debugging
Jaroslav Kysela [Tue, 9 Sep 2008 10:53:28 +0000 (12:53 +0200)]
aplay - show sample arrangement (mmap areas) in verbose more for debugging

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 years agoAdd arecord to .gitignore
Takashi Iwai [Mon, 25 Aug 2008 06:08:55 +0000 (08:08 +0200)]
Add arecord to .gitignore

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoRemove unneeded files from EXTRA_DIST in root Makefile.am
Takashi Iwai [Mon, 25 Aug 2008 06:07:56 +0000 (08:07 +0200)]
Remove unneeded files from EXTRA_DIST in root Makefile.am

automake packages such filse automatically.

Signed-off-by: Takashi Iwai <tiwai@suse.de>