Commit graph

916 commits

Author SHA1 Message Date
Clemens Ladisch
8fc2c39dc8 alsactl: simplify and fix item type detection
Use snd_ctl_elem_type_name() to detect the value of the type comment
instead of using hardcoded strings.

The types list now also includes the BYTES type (Debian bug 481515).

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2008-06-06 09:02:55 +02:00
Jaroslav Kysela
71f78e3f0c Release v1.0.17rc1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-06-03 10:21:08 +02:00
Jaroslav Kysela
6ccfd7bd85 hgcompile -> gitcompile 2008-06-03 10:14:56 +02:00
Jaroslav Kysela
bfd1aa1b25 renamed hgcompile to gitcompile 2008-05-20 13:32:28 +02:00
Jaroslav Kysela
a36c678e47 .hgignore -> .gitignore and removed .hgtags 2008-05-20 13:23:26 +02:00
Giuliano Pochini
1b7f9278af speaker-test.c - fix pink noise generator on big-endian archs
This patch makes speaker-test fill the buffers with properly coded data on
both big- and little-endian processors.

Signed-off-by: Giuliano Pochini <pochini@shiny.it>
2008-04-28 09:16:27 +02:00
Takashi Iwai
6372f4acc2 speaker-test.c - fix sine generator on big-endian archs
speaker-test doesn't work well when you choose a little-endian format on a
big-endian processor, or the opposite. Yes, I know about plughw:, but for
debugging purposes it may not be an option. The following patch add proper
support for S32 and S16 support for but LE and BE processors:

- The "if (bits-per-sample)" construct was replaced by case (format).
- Support for S16_BE, S32_BE formats was added.
- S16_LE and S32_LE were made compatible with big-endian processors.
- NB: The pink noise generator wasn't changed (I'll do if this patch is OK).

From: Giuliano Pochini <pochini@shiny.it>
2008-04-21 15:19:27 +02:00
Takashi Iwai
8802e85d41 aplay - Fix a compile warning
aplay.c: In function ‘compute_max_peak’:
aplay.c:1327: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’
2008-04-16 14:43:01 +02:00
Takashi Iwai
8e3e09dd0b Add check of ncurses*-config
The recent ncurses package provides ncurses*-config program to give the
proper cflags and libs.  Let's use them if available.

Right now, the ncurses version (5) is hard-coded.  It should be better
to be variable as well, but it'd be messy.  Hope the ncurses version won't
change rapidly.
2008-04-16 14:39:41 +02:00
Takashi Iwai
c58817e8af aplay - Add stereo VU-meter support
Added the support of stereo VU-meter.
Enabled via -Vs option.

The new option, -V, can be used to enable the VU-meter.  Now
VU-meter can be enabled even without -vv.
2008-03-14 14:11:06 +01:00
Pawel MOLL
4bdb0adef1 Support for playing WAV files with "extensible format" header using aplay.
WAV files with more than 2 channels or with more than 16 bits per samples
can be saved with "extensible format" chunk
(see http://msdn2.microsoft.com/en-us/library/ms713496(VS.85).aspx).
For instance, sox, when converting data to 24- or 32-bits per sample format
uses this format, and aplay was unable to play such file. Now the problem
is solved :-)

Signed-off-by: Pawel MOLL <pawel.moll@st.com>
2008-03-06 17:34:21 +01:00
Clemens Ladisch
8e2046bed5 aseqdump: flush output
Flush the output after all currently available events have been printed
to allow filtering interactive output through a pipe.
2008-02-21 09:12:53 +01:00
Clemens Ladisch
23f3e570cc fix poll timeout
Use an infinite poll timeout to prevent unnecessary wakeups.
2008-02-21 09:12:27 +01:00
Clemens Ladisch
8497258145 aseqdump: increase verbosity
Include the names of parameters when printing events instead of just
showing the raw values.
2008-02-21 09:11:58 +01:00
Takashi Iwai
8f017f1618 Require alsa-lib 1.0.16
Require alsa-lib 1.0.16 and remove the superfluous check in configure
script.
2008-02-11 14:22:51 +01:00
Andrew Paprocki
6f438b9b9a aplay/arecord - Add support for IEEE float 32-bit WAV files
This patch modifies aplay/arecord to support playing/capturing IEEE float
32-bit WAV files. Tested on HDA hardware in both stereo and multi-channel
modes. Added the WAV file constant for Dolby AC-3 S/PDIF passthrough to
formats.h for future use when AC-3 passthrough is better supported.

Signed-off-by: Andrew Paprocki <andrew@ishiboo.com>
2008-02-06 14:05:07 +01:00
Jaroslav Kysela
a86e94ec04 Added tag v1.0.16 for changeset 16f32be6b8b9 2008-02-05 10:08:11 +01:00
Jaroslav Kysela
81dbe6b226 release 1.0.16
Patch-level: Merged
2008-02-05 10:08:11 +01:00
Takashi Iwai
318258f294 iecset - Add -n option
Added -n option to iecset to specify the index number of the control
element.  This is needed for handling multiple SPDIF devices.
2008-02-05 08:11:02 +01:00
Jaroslav Kysela
eedab6e3e3 Added tag v1.0.16rc1 for changeset 8907a06eb707 2008-01-21 10:42:48 +01:00
Jaroslav Kysela
62a27ec90b release 1.0.16rc1
Patch-level: Merged
2008-01-21 10:42:48 +01:00
Takashi Iwai
9abeb5843a Remove xfer_align
The xfer_align is the obsolete feature now.  Remove it from aplay
and speaker-test to avoid deprecated calls.
2008-01-08 18:39:06 +01:00
Takashi Iwai
4cb74aed89 Remove sleep_min from aplay
The sleep_min is the obsolete feature now.  Remove it from aplay.
2008-01-08 18:38:32 +01:00
Clemens Ladisch
fb1c2d53a1 alsamixer: add 8-channel support
Add support for playback volume controls with 8 channels.
This allows controlling the side channels on 7.1 devices.
2008-01-07 12:28:43 +01:00
Takashi Iwai
b0828653c9 alsactl: skip inactive controls
When using alsactl to save or restore the card settings, it currently
skips over controls that don't have the appropriate read/write
permissions. It should also skip over inactive controls, otherwise it
will get an error when it tries to access that control, and will fail to
save the card state (or fully restore it.)

From: Dave Dillow <dave@thedillows.org>
2007-12-17 11:49:00 +01:00
Takashi Iwai
beecc1419e aplay - Reset non-blocking flag before snd_pcm_drain()
snd_pcm_drain() doesn't block when running with O_NONBLOCK.
Reset the non-blocking mode before calling snd_pcm_drain() properly
(and restore again for any further operations).
2007-12-14 15:29:51 +01:00
Takashi Iwai
8d7759aa32 alsactl - Fix wrong restore
Fix a bug in alsactl that restores wrong values for elements with
multiple channels (counts).
2007-11-30 17:20:39 +01:00
Clemens Ladisch
0629a38f6c iecset: fix card index check
Allow card indices up to 31.
2007-11-30 08:14:04 +01:00
Takashi Iwai
e5b2ab2a9f alsactl - Set -F option as default
Set -F option as default for restore.  There are still too many systems
that are too lazy to set -F option...

Added the new -P option to back to the old behavior.
2007-11-14 11:54:38 +01:00
Takashi Iwai
6f05fd4db2 alsactl - fix double entry of comment.tlv
The entry comment.tlv can be doubly written via alsactl store, and this
results in an error.  I forgot to remove the old code...
2007-11-12 17:24:27 +01:00
Takashi Iwai
1e6f486623 speaker-test - Put errors to stderr
Error messages should be shown in stderr.
2007-11-05 12:44:13 +01:00
Takashi Iwai
9dd3e2801c speaker-test - Fix number of periods to play
The number of periods to play in pink and sine modes could be calculated
as zero, which results in just silence.  Make the minimal value 1.
2007-11-05 12:40:35 +01:00
Takashi Iwai
14f7981d59 Add missing inclusion of assert.h 2007-10-25 15:39:19 +02:00
Takashi Iwai
c88c15a478 alsactl - restore dB level
When alsactl saved state has dB level information and an attribute
of a control element is changed after save (e.g. volume range is
changed), try to restore the values to keep the same dB level.

This change requires the new alsa-lib functions for TLV dB
conversion, so we check it in configure (until AM_PATH_ALSA(1.0.16)
works).
2007-10-24 13:53:14 +02:00
Takashi Iwai
030686a847 Make alsactl restore a bit more robust
Make "alsactl restore" a bit more robust.  Now it tries to parse the
compound items in the case that the number of channels was changed.
The former mono-value is expanded to all channels.
2007-10-24 13:08:28 +02:00
Jaroslav Kysela
c6eb66fdae Added tag v1.0.15 for changeset 3b8e4ee4363e 2007-10-15 10:36:47 +02:00
Jaroslav Kysela
2781f2c9d1 release 1.0.15
Patch-level: Merged
2007-10-15 10:36:47 +02:00
Jaroslav Kysela
48de580a7b Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-15 10:25:17 +02:00
Clemens Ladisch
32c0c7bc5a arecordmidi: mention SMF type in man page
Document the SMF type (0 or 1) that will be generated by arecordmidi.
2007-09-17 09:44:29 +02:00
Jaroslav Kysela
30d3ace1a6 Added tag v1.0.15rc1 for changeset cd39f6c9aa57 2007-08-30 10:23:35 +02:00
Jaroslav Kysela
975abeea47 release 1.0.15rc1
Patch-level: Merged
2007-08-30 10:23:34 +02:00
Takashi Iwai
cbb2d555df alsamixer - Handle capture enums separately
The capture enum controls should appear only in capture and all views.
This is a fix for Input Source enum controls.
2007-08-29 14:49:55 +02:00
Takashi Iwai
f13bea104b alsactl - Remove debug print
Remove an old debug print that simply annoys.
2007-08-15 15:38:01 +02:00
Takashi Iwai
7992d3aca0 aplay - Include missing time.h for time()
With salsa-lib,
  aplay.c: In function ‘compute_max_peak’:
  aplay.c:1207: warning: implicit declaration of function ‘time’
2007-08-07 15:36:41 +02:00
Takashi Iwai
4b16370c01 amixer - Allow to pass enum item string for cset, too
cset accepts only integer values as indices, so far, but it's a bit
unfriendly.  Now it accepts the item name as a string argument, too.
The index can be given using numbers as fallback.
2007-07-31 17:29:45 +02:00
Takashi Iwai
fea8dbf020 Ignore errors with -s option
Ignore non-fatal errors when stdin is parsed with -s option.
2007-07-24 15:19:34 +02:00
Takashi Iwai
483d8d65d9 aplay - Fix VU meter
Fix spaces displayed in VU meter to match with the actual max lengh (51).
2007-07-12 17:02:18 +02:00
Takashi Iwai
2fba9cd65e alsaconf - Don't produce hwcfg file for openSUSE 10.3
hwcfg file is no longer used on openSUSE 10.3, so don't create such a file
on it.
2007-07-12 15:22:06 +02:00
Takashi Iwai
ea04f2c888 aplay - Fix possible endless loop with SIGBART
The signal handler may cause endless loop with SIGABRT.
2007-07-12 15:20:52 +02:00
Jaroslav Kysela
8d0fb15b2b amixer/alsamixer - updated go scripts for debugging 2007-07-11 10:12:24 +02:00