alsa-tools.git
5 years agohda-verb: Don't include sys/io.h for PPC
Takashi Iwai [Tue, 31 Jul 2012 08:58:43 +0000 (10:58 +0200)]
hda-verb: Don't include sys/io.h for PPC

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

5 years agohda-verb: Add missing MYNAME definition for packaging
Jaroslav Kysela [Tue, 17 Jul 2012 16:48:20 +0000 (18:48 +0200)]
hda-verb: Add missing MYNAME definition for packaging

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

5 years agousx2yloader: make fxload work without deprecated usbfs
Karsten Wiese [Wed, 25 Apr 2012 10:25:04 +0000 (12:25 +0200)]
usx2yloader: make fxload work without deprecated usbfs

Use $DEVNAME instead of $DEVICE in script tascam_fw.

Signed-off-by: Karsten Wiese <fzuuzf@googlemail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agoUpdate .gitignore for hda-verb
Takashi Iwai [Fri, 20 Apr 2012 13:56:53 +0000 (15:56 +0200)]
Update .gitignore for hda-verb

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

6 years agoConvert hda-verb to use automake
Takashi Iwai [Fri, 20 Apr 2012 13:54:49 +0000 (15:54 +0200)]
Convert hda-verb to use automake

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

6 years agoAdd hdajackretask files to .gitignore
Takashi Iwai [Fri, 20 Apr 2012 13:49:35 +0000 (15:49 +0200)]
Add hdajackretask files to .gitignore

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

6 years agoImport hda-verb 0.4 to alsa-tools repo
Takashi Iwai [Fri, 20 Apr 2012 13:48:01 +0000 (15:48 +0200)]
Import hda-verb 0.4 to alsa-tools repo

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

6 years agohdajackretask: Use autotools
David Henningsson [Fri, 13 Apr 2012 09:49:21 +0000 (11:49 +0200)]
hdajackretask: Use autotools

Start to use autotools as build system, just like the other programs
in the alsa-tools suite.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>

6 years agohdajackretask: Add new program for easy retask of hda pin nodes
David Henningsson [Thu, 22 Mar 2012 16:47:02 +0000 (17:47 +0100)]
hdajackretask: Add new program for easy retask of hda pin nodes

Most HDA Intel soundcards are to some degree retaskable, i e can be
used for more than one thing. This tool is a GUI to make it easy to
retask your jacks - e g, turn your Mic jack into an extra Headphone,
or why not make them both line outs and connect them to your surround
receiver?

Signed-off-by: David Henningsson <david.henningsson@canonical.com>

6 years agoalsa-tools: hwmixvolume - update README for au88x0
Raymond Yau [Sun, 11 Mar 2012 03:37:22 +0000 (11:37 +0800)]
alsa-tools: hwmixvolume - update README for au88x0

- Need to use alsa-driver kernel 3.4 for Aureal sound cards

Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agoRelease v1.0.25 v1.0.25
Jaroslav Kysela [Wed, 25 Jan 2012 07:57:04 +0000 (08:57 +0100)]
Release v1.0.25

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

6 years agoRemove configure.in-gtk2 from Makefiles...
Jaroslav Kysela [Mon, 23 Jan 2012 10:45:15 +0000 (11:45 +0100)]
Remove configure.in-gtk2 from Makefiles...

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

6 years agoMore build fixes (gtk1 check removal from echomixer), cvscompile removal
Jaroslav Kysela [Mon, 23 Jan 2012 10:40:34 +0000 (11:40 +0100)]
More build fixes (gtk1 check removal from echomixer), cvscompile removal

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

6 years agoenvy24control: support gtk1 only in configure.in-gtk1
Jaroslav Kysela [Fri, 20 Jan 2012 11:39:09 +0000 (12:39 +0100)]
envy24control: support gtk1 only in configure.in-gtk1

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

6 years agohdspmixer: Fix temporary RPM constant
Adrian Knoth [Fri, 29 Jul 2011 15:57:30 +0000 (17:57 +0200)]
hdspmixer: Fix temporary RPM constant

RPM in hdsp.h's HDSP_IO_Type is 4, not 5. This patch isn't exactly
necessary here, because the constant is only used internally, but to
avoid confusion if somebody ever reads the code, let's use the correct
value.

Note that we'll drop it after the next alsa-lib release.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdsploader: Fix temporary RPM constant
Adrian Knoth [Fri, 29 Jul 2011 15:57:29 +0000 (17:57 +0200)]
hdsploader: Fix temporary RPM constant

RPM in HDSP_IO_Type (enum from hdsp.h) is 4, not 5.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdsploader: Temporary define for RPM
Adrian Knoth [Thu, 28 Jul 2011 21:45:48 +0000 (23:45 +0200)]
hdsploader: Temporary define for RPM

Right now (1.0.24.1), alsa-lib's hdsp.h doesn't know about the RPM. To
avoid a strong dependency on unreleased code, temporary provide the
define here.

It can be dropped as soon as a new version of alsa-lib will be released,
thus effectively making it the required minimum version for alsa-tools.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdsploader: Add support for RME RPM
Adrian Knoth [Thu, 28 Jul 2011 21:45:47 +0000 (23:45 +0200)]
hdsploader: Add support for RME RPM

Augment hdsploader to support the RME RPM devices. The firmware is
already present in alsa-firmware, so we can directly load it.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

6 years agohdspmixer: Add support for RME RPM
Adrian Knoth [Thu, 28 Jul 2011 21:45:46 +0000 (23:45 +0200)]
hdspmixer: Add support for RME RPM

This patch adds support for the RME RPM devices. It's mostly based on
Florian Faber's previous patch against hdspmixer 1.0.23,
forwarded-ported to the current hdspmixer code.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Handle preset files used in 1.0.24 and 1.0.24.1
Adrian Knoth [Fri, 8 Apr 2011 17:58:37 +0000 (19:58 +0200)]
hdspmixer: Handle preset files used in 1.0.24 and 1.0.24.1

As an addition to the previous commit, let's also cover the 3rd case
when a preset file was written with hdspmixer v1.0.24 or v1.0.24.1.

In this case, no magic header will be present, but the file size would
differ from the pre 1.0.24 format.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Handle channel count in old (v1.0.23) preset file format
Adrian Knoth [Fri, 8 Apr 2011 17:58:36 +0000 (19:58 +0200)]
hdspmixer: Handle channel count in old (v1.0.23) preset file format

When reading a preset file, v1.0.23 only used 26 channels instead of 64.
Reading 64 channels from a 26 channel file won't work, hence set it
depending on the file format version.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Fix read/write from/to preset files on MADI-like cards
Adrian Knoth [Fri, 8 Apr 2011 17:58:35 +0000 (19:58 +0200)]
hdspmixer: Fix read/write from/to preset files on MADI-like cards

The old hdspmixer (prior to e24e56795ea57e3dd7da45063ab71f04e231192d,
that is pre-1.0.24) has used the hard-coded value "14" for
reading/storing 14 ints from/to preset files, however, it's actually
HDSP_MAX_DEST that should be used.

HDSP_MAX_DEST was bumped from 14 to 32 to allow for MADI cards (32
stereo pairs equal 64 output channels on MADI cards)

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Initialize headphones out in presets
Adrian Knoth [Mon, 4 Apr 2011 12:34:30 +0000 (14:34 +0200)]
hdspmixer: Initialize headphones out in presets

Cards like the multiface/digiface have additional headphones out. Those
were not initialized in the presets due to wrong loop boundaries:
maxdest represents the amount of physical stereo pairs, and chnls is
either equal or less, so the output fader array needs more iterations
than the playback section.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Recall 1st preset on all cards, not just on the first
Adrian Knoth [Mon, 4 Apr 2011 12:34:29 +0000 (14:34 +0200)]
hdspmixer: Recall 1st preset on all cards, not just on the first

With the new "store current settings to the virtual 9th preset" before
switching cards code, one needs to make sure the actual mixer state is
loaded with sane values, either from the preset file or a generic
builtin preset.

Calling preset_change(1) is sufficient, setting all the required data.
However, in case of more than one RME card in the system, one needs to
call this function for each card, otherwise, some of the cards store
uninitialized data to the 9th preset, resulting in a weird mixer state
afterwards.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Save preset before switching cards
Adrian Knoth [Mon, 4 Apr 2011 12:34:28 +0000 (14:34 +0200)]
hdspmixer: Save preset before switching cards

When running with more than one card, switching cards would lose any
changes made to the current card. To avoid this inconvenience, save the
current settings to the virtual 9th preset and restore them when
switching back.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Add a 9th pseudo preset
Adrian Knoth [Mon, 4 Apr 2011 12:34:27 +0000 (14:34 +0200)]
hdspmixer: Add a 9th pseudo preset

When switching cards, all current settings are lost. To have a place
where to store them, let's add a virtual 9th preset which can be used as
a temporary scratch pad.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: fix drawing problems with black background
Tim Blechmann [Sat, 2 Apr 2011 12:44:11 +0000 (14:44 +0200)]
hdspmixer: fix drawing problems with black background

- use foreground color instead of black
- HDSPMixerSelector: set colors before setting labels

Signed-off-by: Tim Blechmann <tim@klingt.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspconf: more string constant fixes
Tim Blechmann [Sun, 27 Mar 2011 11:50:34 +0000 (13:50 +0200)]
hdspconf: more string constant fixes

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspconf: use foreground color instead of black
Tim Blechmann [Sun, 27 Mar 2011 11:34:20 +0000 (13:34 +0200)]
hdspconf: use foreground color instead of black

if the background color of the color scheme is black, black text is hard
to read. using the foreground color fixes this problem

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspconf: fix some string constant conversions
Tim Blechmann [Sun, 27 Mar 2011 11:34:19 +0000 (13:34 +0200)]
hdspconf: fix some string constant conversions

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Update NEWS file.
Adrian Knoth [Tue, 22 Mar 2011 10:53:48 +0000 (11:53 +0100)]
hdspmixer: Update NEWS file.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Save and restore level meter settings
Adrian Knoth [Tue, 22 Mar 2011 10:53:47 +0000 (11:53 +0100)]
hdspmixer: Save and restore level meter settings

Each preset can have a different level meter setting (FS samples for
OVR, release rate, minimum level and so on).

These settings were not saved/restore to/from the on-disk file. This
patch adds the missing functionality.

Unfortunately, the current on-disk format is a 1:1 binary dump from
memory without any header information. In other words, this commit will
break backward compatibility with older hdspmixers, that is, new preset
files cannot be read by older versions of hdspmixer. However, we can
still read the old mix files and save them in the new format.

I hence bumped the version, so users know to re-create their files after
upgrading to 1.11.

Bug discovered by Raphaël Doursenaud from ematech.fr.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Use constant instead of hardcoded number of cards.
Adrian Knoth [Tue, 22 Mar 2011 10:53:46 +0000 (11:53 +0100)]
hdspmixer: Use constant instead of hardcoded number of cards.

Again, use MAX_CARDS instead of "3", just in case MAX_CARDS should
change some day.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Improve pixmaps
Adrian Knoth [Tue, 22 Mar 2011 10:53:45 +0000 (11:53 +0100)]
hdspmixer: Improve pixmaps

- Added tick marks at 4dB intervals
- Small fixes and cleanup to buttons
- Better ALSA branding

All pixmaps provided by Reuben Martin.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Fix toggle of master mute and solo buttons
Adrian Knoth [Tue, 22 Mar 2011 10:53:44 +0000 (11:53 +0100)]
hdspmixer: Fix toggle of master mute and solo buttons

The sensitive area for master mute and solo buttons was slightly off.
Discovered and fixed by Reuben Martin. Thanks for the patch.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: New pixmaps
Adrian Knoth [Sun, 13 Mar 2011 18:53:36 +0000 (19:53 +0100)]
hdspmixer: New pixmaps

Reuben Martin has provided me with an updated pixmap set to replace
RME's 1998 style no longer in use by the corresponding Win32 tools.

The Linux pixmaps are based on ardour2. Likewise hdspmixer, ardour2 is
GPLv2.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

7 years agohdspmixer: Show cardname in window title
Adrian Knoth [Mon, 7 Mar 2011 18:03:09 +0000 (19:03 +0100)]
hdspmixer: Show cardname in window title

When running with more than one card, it isn't obvious which card is
shown.

Store the ALSA cardname in the corresponding class and show it in the
window title upon switching cards.

Also, don't show "(null)" but "(unsaved)" in case the user hasn't
selected a preset file.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: [cosmetics] Break code into logic blocks
Adrian Knoth [Mon, 7 Mar 2011 18:03:08 +0000 (19:03 +0100)]
hdspmixer: [cosmetics] Break code into logic blocks

Convert the if-then-else-if chain into standalone if-then blocks to
improve readability. A switch-case statement would also do the trick,
but it's less readable.

No (intended) semantic change.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Fix code indentation
Adrian Knoth [Mon, 7 Mar 2011 18:03:07 +0000 (19:03 +0100)]
hdspmixer: Fix code indentation

Only cosmetics, no changed semantics. Indent the whole function to get
rid of a mixture of tabs and spaces.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Provide headphones out on Multiface/Digiface
Adrian Knoth [Mon, 7 Mar 2011 18:03:06 +0000 (19:03 +0100)]
hdspmixer: Provide headphones out on Multiface/Digiface

Both, Multiface and Digiface feature a separate headphone submix, so
reflect this additional pair of channels in the corresponding maps.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Introduce output channel count for all cards.
Adrian Knoth [Mon, 7 Mar 2011 18:03:05 +0000 (19:03 +0100)]
hdspmixer: Introduce output channel count for all cards.

Some cards (like multiface) have more physical output ports than
playback ports, mostly because of additional headphones out.

For those cards, the old abstraction model of channels_input and
channels_output doesn't fit, so let's introduce channels_output.

Of course, channels_output is always 2*max_dest at the given speed_mode
(SS/DS/QS), so one could extend this idea, store all destination
settings in channels_output[3] (one for each speed mode) and rip off the
massive code duplication for setting maxdest or max_dest respectively.

Note that dest_map_whatever_speed_mode's array size indirectly defines
the right value for channels_output (read: even more unwanted
redundancy)

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Adjust playback channel count on Multiface.
Adrian Knoth [Mon, 7 Mar 2011 18:03:04 +0000 (19:03 +0100)]
hdspmixer: Adjust playback channel count on Multiface.

The multiface has 18/14 (SS/DS) playback channels, matching the native
18/14 I/O ports. Headphones don't count (only for #destinations).

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Fix preset activation segfault on AES(32)
Adrian Knoth [Mon, 7 Mar 2011 18:03:03 +0000 (19:03 +0100)]
hdspmixer: Fix preset activation segfault on AES(32)

When selecting preset 6 or 7 on AES(32), hdspmixer has caused a segfault
due to indirect out of bound access on the destination label array.

The amount of destinations is the number of physical stereo
pairs, so it's usually half the channel count, in some cases one more if
there are additional headphone jacks.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Replace hardcoded 3 by MAX_CARDS
Adrian Knoth [Mon, 7 Mar 2011 18:03:02 +0000 (19:03 +0100)]
hdspmixer: Replace hardcoded 3 by MAX_CARDS

We have a define for the number of cards. Use it.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Fix labels on H9652
Adrian Knoth [Tue, 1 Mar 2011 09:42:27 +0000 (10:42 +0100)]
hdspmixer: Fix labels on H9652

The H9652 uses the same layout as the Digiface, except Digiface features
an additional headphones out. That's why the channel mappings are the
same, but Digiface has mexdest=14 while H9652 has maxdest=13 (12 ADAT
pairs, another pair for S/PDIF and headphone-L/R on Digiface)

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Lower nesting depth in label assignment
Adrian Knoth [Tue, 1 Mar 2011 09:42:26 +0000 (10:42 +0100)]
hdspmixer: Lower nesting depth in label assignment

This fix is mostly cosmetic, the long if-then-else-if-chain was rather
confusing. To improve code readability, use simple if-then statements
and leave the function as soon as a match is found.

Clear code would probably use a two-dimensional map, but it seems rather
overengineered.

Last but not least, the non-matching case was augmented by assigning a
generic "1", "2", "3" .. channel naming schema to prevent hdspmixer from
crashing.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Make static destination maps extern
Adrian Knoth [Tue, 1 Mar 2011 09:42:25 +0000 (10:42 +0100)]
hdspmixer: Make static destination maps extern

To prevent multiple inclusion, make the destmaps global and only
reference them via extern.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Don't use hardcoded number of cards.
Adrian Knoth [Mon, 28 Feb 2011 13:56:08 +0000 (14:56 +0100)]
hdspmixer: Don't use hardcoded number of cards.

We have introduced MAX_CARDS before to make the code more safe and
extendable, so it's just sane to use it all over the place.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Fix compiler warnings.
Adrian Knoth [Mon, 28 Feb 2011 13:56:07 +0000 (14:56 +0100)]
hdspmixer: Fix compiler warnings.

All compiler warnings were caused by a conversion from "foo" to a
char pointer. Given that the string itself really is constant, simply
add the keyword to make g++ happy.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Fix metering for non-MADI cards
Adrian Knoth [Thu, 24 Feb 2011 20:33:31 +0000 (21:33 +0100)]
hdspmixer: Fix metering for non-MADI cards

Currently, hdsp and hdspm use different ioctls. Consequently, the metering
is wrong. To avoid code duplication, use pointers to the corresponding
struct members.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Fix ALSA snd_ctl_open error when running with three cards.
Adrian Knoth [Thu, 24 Feb 2011 20:33:30 +0000 (21:33 +0100)]
hdspmixer: Fix ALSA snd_ctl_open error when running with three cards.

If three (or more) RME cards are installed in one box, hdspmixer will
try to open a non-existing 4th card, causing an error in snd_ctl_open
and finally terminates itself.

cards[] is a static array, and one must not read beyond the last
element. The solution is far from elegant, however, it's a rather
unintrusive change.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Bump version number to 1.10
Adrian Knoth [Thu, 24 Feb 2011 20:33:29 +0000 (21:33 +0100)]
hdspmixer: Bump version number to 1.10

Florian Faber's last hdspmixer64 version was 1.9, so let's make this the
successor (contains everything that was in 1.9 and also Fredrik's work
on AES(32) support)

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Increase height of about window.
Adrian Knoth [Thu, 24 Feb 2011 20:33:28 +0000 (21:33 +0100)]
hdspmixer: Increase height of about window.

The copyright list got longer, so we need more vertical space.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Update FSF address.
Adrian Knoth [Thu, 24 Feb 2011 20:33:27 +0000 (21:33 +0100)]
hdspmixer: Update FSF address.

The FSF has moved, so reflect this change in the about dialogue.

See also http://www.fsf.org/about/contact/

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Improve code coherency
Adrian Knoth [Thu, 24 Feb 2011 20:33:26 +0000 (21:33 +0100)]
hdspmixer: Improve code coherency

Move channelmappings into one place (channelmap.h). Also, use "aes32"
when referring to the card itself to avoid confusion and to be coherent
with the remaining naming scheme.

This work has mainly been done by Fredrik Lingvall.

Signed-off-by: Fredrik Lingvall <fredrik.lingvall@gmail.com>
Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Style and purity fixes for name arrays.
Adrian Knoth [Mon, 7 Feb 2011 17:55:26 +0000 (18:55 +0100)]
hdspmixer: Style and purity fixes for name arrays.

Contribution by Fredrik Lingvall <fredrik.lingvall@gmail.com>

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Add RME HDSPe AES and AES32 support.
Adrian Knoth [Mon, 7 Feb 2011 17:55:25 +0000 (18:55 +0100)]
hdspmixer: Add RME HDSPe AES and AES32 support.

Code provided by  Fredrik Lingvall <fredrik.lingvall@gmail.com>

It seems the PCIe (AES) and PCI (AES32) versions behave the same, so we
can kill two birds with one stone.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Break overlong line and don't plenken.
Adrian Knoth [Thu, 3 Feb 2011 21:43:37 +0000 (22:43 +0100)]
hdspmixer: Break overlong line and don't plenken.

Pure code beautification, just in case somebody ever needs to touch this
again.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Beautification; Lower nesting depth
Adrian Knoth [Thu, 3 Feb 2011 21:43:36 +0000 (22:43 +0100)]
hdspmixer: Beautification; Lower nesting depth

Exit the loop if card < 0. No need to nest the actual code in the else
branch.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Improve readability.
Adrian Knoth [Thu, 3 Feb 2011 21:43:35 +0000 (22:43 +0100)]
hdspmixer: Improve readability.

Group the statements into logical blocks.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: retab and reindent code.
Adrian Knoth [Thu, 3 Feb 2011 21:43:34 +0000 (22:43 +0100)]
hdspmixer: retab and reindent code.

Something seriously was wrong, probably different patches with different
tabwidth levels. I switched to spaces to avoid ambiguity and let vim
reindent everything.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Fix detection for non-MADIface RME cards
Adrian Knoth [Thu, 3 Feb 2011 21:08:04 +0000 (22:08 +0100)]
hdspmixer: Fix detection for non-MADIface RME cards

When adding RayDAT support, detection for cards like the 9652 was
accidently lost. This patch re-adds the missing bits.

Signed-off-by: Jörn Nettingsmeier <nettings@stackingdwarves.net>
Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agoRelease v1.0.24.1 v1.0.24.1
Jaroslav Kysela [Fri, 28 Jan 2011 15:13:36 +0000 (16:13 +0100)]
Release v1.0.24.1

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

7 years agohdspmixer: add missing channelmap.h to Makefile.am
Jaroslav Kysela [Fri, 28 Jan 2011 15:12:05 +0000 (16:12 +0100)]
hdspmixer: add missing channelmap.h to Makefile.am

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

7 years agoRelease v1.0.24 v1.0.24
Jaroslav Kysela [Thu, 27 Jan 2011 11:05:46 +0000 (12:05 +0100)]
Release v1.0.24

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

7 years agohdspmixer: Don't use channelmap from hdspm.h
Adrian Knoth [Thu, 27 Jan 2011 10:41:47 +0000 (11:41 +0100)]
hdspmixer: Don't use channelmap from hdspm.h

The channel mapping has been moved to hdspm.c, so it's no longer
available to userspace tools. For now, let's simply copy (duplicate) the
data and wait for a way to query this information from the driver.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

7 years agoAdd support for RME MADI, RayDAT and AIO
Adrian Knoth [Sun, 9 Jan 2011 18:42:59 +0000 (19:42 +0100)]
Add support for RME MADI, RayDAT and AIO

Merged the work by Florian Faber that's distributed separately as
hdspmixer64.

Code taken from http://wiki.linuxproaudio.org/index.php/App:hdspmixer_64

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

7 years agohdspmixer: Fix buffer overflow
Georg Rudolph [Sat, 15 May 2010 07:37:34 +0000 (09:37 +0200)]
hdspmixer: Fix buffer overflow

A one off string buffer overflow fixed by handling it properly with
string stream.

Signed-off-by: Georg Rudolph <georg.rudolph@schwaben.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

8 years agoRelease v1.0.23 v1.0.23
Jaroslav Kysela [Fri, 16 Apr 2010 11:11:09 +0000 (13:11 +0200)]
Release v1.0.23

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

8 years agohwmixvolume: add hwmixvolume to EXTRA_DIST
Jaroslav Kysela [Wed, 7 Apr 2010 11:53:41 +0000 (13:53 +0200)]
hwmixvolume: add hwmixvolume to EXTRA_DIST

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

8 years agoFix hwmixvolume gitcompile script (missing files)
Jaroslav Kysela [Wed, 7 Apr 2010 07:30:00 +0000 (09:30 +0200)]
Fix hwmixvolume gitcompile script (missing files)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

8 years agohwmixvolume: make scripts executable
Clemens Ladisch [Mon, 18 Jan 2010 14:53:35 +0000 (15:53 +0100)]
hwmixvolume: make scripts executable

The gitcompile script is easier to use if it's executable.

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

8 years agoadd hwmixvolume
Clemens Ladisch [Mon, 18 Jan 2010 14:37:41 +0000 (15:37 +0100)]
add hwmixvolume

Add a tool to control the volume of individual streams on sound cards
that use hardware mixing.

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

8 years agoRelease v1.0.22 v1.0.22
Jaroslav Kysela [Wed, 16 Dec 2009 15:18:53 +0000 (16:18 +0100)]
Release v1.0.22

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

8 years agoenvy24control: Changing the Multi Track Peak control from MIXER to PCM type
Pavel Hofman [Tue, 6 Oct 2009 14:00:16 +0000 (16:00 +0200)]
envy24control: Changing the Multi Track Peak control from MIXER to PCM type

* The "Multi Track Peak" control is now of PCM type, to avoid
  confusing users in other alsa mixers.

Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

8 years agoRelease v1.0.21 v1.0.21
Jaroslav Kysela [Mon, 31 Aug 2009 13:09:39 +0000 (15:09 +0200)]
Release v1.0.21

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

8 years agoqlo10k1: Fix usage of $x_libraries in acinclude.m4 - it may be empty
Jaroslav Kysela [Mon, 31 Aug 2009 10:48:22 +0000 (12:48 +0200)]
qlo10k1: Fix usage of $x_libraries in acinclude.m4 - it may be empty

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

8 years agoac3dec - Fix typos of -q option
Takashi Iwai [Wed, 1 Jul 2009 06:07:46 +0000 (08:07 +0200)]
ac3dec - Fix typos of -q option

It's quiet, not quit.

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

8 years agous428control - Fix array overflow
Takashi Iwai [Mon, 8 Jun 2009 09:48:45 +0000 (11:48 +0200)]
us428control - Fix array overflow

Fix the array overflow in accessing Vol[],
   Cus428State.cc:257:32: warning: array subscript is above array bounds

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

8 years agoAlso fix the configure for hdspconf for LIBS/LDFLAGS mistakes.
Diego Elio 'Flameeyes' Pettenò [Wed, 27 May 2009 21:20:34 +0000 (23:20 +0200)]
Also fix the configure for hdspconf for LIBS/LDFLAGS mistakes.

Commit 56970e8143b4d171a118d114b1ddfa7621401127 already took care of this
for the other tools, but hdspconf somewhat was excluded, fix this now.

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

8 years agoenvy24control - Don't redeclare isblank().
Diego Elio 'Flameeyes' Pettenò [Wed, 27 May 2009 21:20:33 +0000 (23:20 +0200)]
envy24control - Don't redeclare isblank().

While technically isblank() is a C library function, nothing stops it from
being a macro, and indeed it seems to be on glibc-2.10.

This should not be a problem because ctype.h already declares it on
probably all the systems where it's used.

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

8 years agoRelease v1.0.20 v1.0.20
Jaroslav Kysela [Wed, 6 May 2009 07:07:25 +0000 (09:07 +0200)]
Release v1.0.20

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

9 years agoechomixer: little bug fix
Giuliano Pochini [Wed, 18 Mar 2009 23:15:44 +0000 (00:15 +0100)]
echomixer: little bug fix

This patch fixes a stupid bug that was introduced in the last change.

Signed-off-by: Giuliano Pochini <pochini@shiny.it>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

9 years agoechomixer: Fix echomixer to work with the new drivers
Giuliano Pochini [Sun, 15 Mar 2009 20:35:09 +0000 (21:35 +0100)]
echomixer: Fix echomixer to work with the new drivers

There is a long standing bug in the drivers for cards with a vmixer because
I overlooked a detail in the c++ generic driver by echoaudio. Those cards
do not have a line-out volume control. It is a virtual control provided by
the generic driver. The bug is harmless because the DSP just ignores the
command to change the volume.
Since that control has been removed, echomixer must be updated. With this
patch it uses the vmixer to fake the line-out volume.

This patch makes echomixer work with the new drivers.

Signed-off-by: Giuliano Pochini <pochini@shiny.it>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

9 years agoALSA: echomixer, fix vmixer GUI
Giuliano Pochini [Sun, 8 Mar 2009 19:56:08 +0000 (20:56 +0100)]
ALSA: echomixer, fix vmixer GUI

This patch fixes several bugs in the vmixer GUI and removes the "misc"
button from the main window when the card has no global controls.

Signed-off-by: Giuliano Pochini <pochini@shiny.it>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

9 years agoRelease v1.0.19 v1.0.19
Jaroslav Kysela [Mon, 19 Jan 2009 11:17:21 +0000 (12:17 +0100)]
Release v1.0.19

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

9 years agoRemove -Werror for ac3dec/tools
Takashi Iwai [Sun, 30 Nov 2008 17:24:55 +0000 (18:24 +0100)]
Remove -Werror for ac3dec/tools

The -Werror option may cause build errors depending on the compiler
version.

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

9 years agoFix building of alsa-tools when using the --as-needed linker option.
Diego 'Flameeyes' Pettenò [Thu, 13 Nov 2008 12:13:53 +0000 (13:13 +0100)]
Fix building of alsa-tools when using the --as-needed linker option.

Please note that LDFLAGS is the _wrong_ variable to pass libraries
with, automake tells you to use _LDADD for binaries and _LIBADD for
libraries, while autoconf wants them in the LIBS variable.

Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>

9 years agoRelease v1.0.18 v1.0.18
Jaroslav Kysela [Wed, 29 Oct 2008 12:42:12 +0000 (13:42 +0100)]
Release v1.0.18

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

9 years agoac3dec - Add missing -H option
Takashi Iwai [Fri, 24 Oct 2008 09:44:08 +0000 (11:44 +0200)]
ac3dec - Add missing -H option

The option -H was missing in getopt argument.

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

9 years agoMerge branch 'master' of upstream
Takashi Iwai [Fri, 24 Oct 2008 07:26:20 +0000 (09:26 +0200)]
Merge branch 'master' of upstream

9 years agoac3dec - Add -H option for HDMI
Takashi Iwai [Fri, 24 Oct 2008 07:24:32 +0000 (09:24 +0200)]
ac3dec - Add -H option for HDMI

The HD-audio can have an independent HDMI PCM device via "hdmi".
The option -H is for using hdmi instead of spdif.

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

9 years agoAdded seq/gitcompile and seq/Makefile to tarball
Jaroslav Kysela [Tue, 9 Sep 2008 12:48:16 +0000 (14:48 +0200)]
Added seq/gitcompile and seq/Makefile to tarball

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

9 years agoFix the gitcompile addition to EXTRA_DIST - echomixer
Jaroslav Kysela [Tue, 9 Sep 2008 12:30:00 +0000 (14:30 +0200)]
Fix the gitcompile addition to EXTRA_DIST - echomixer

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

9 years agoAdded configure target to global Makefile and gitcompile to EXTRA_DIST
Jaroslav Kysela [Tue, 9 Sep 2008 12:17:10 +0000 (14:17 +0200)]
Added configure target to global Makefile and gitcompile to EXTRA_DIST

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

9 years agoimproved automake directory detection for echomixer tree
Jaroslav Kysela [Tue, 19 Aug 2008 17:36:49 +0000 (19:36 +0200)]
improved automake directory detection for echomixer tree

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

9 years agoimprove Makefile error paths, improve automake directory detection for sbiload
Jaroslav Kysela [Tue, 19 Aug 2008 17:33:36 +0000 (19:33 +0200)]
improve Makefile error paths, improve automake directory detection for sbiload

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

9 years agosb16_csp/gitcompile improve automake directory detection
Jaroslav Kysela [Tue, 19 Aug 2008 17:27:24 +0000 (19:27 +0200)]
sb16_csp/gitcompile improve automake directory detection

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

9 years agormedigicontrol/gitcompile fixed typo
Jaroslav Kysela [Tue, 19 Aug 2008 17:24:35 +0000 (19:24 +0200)]
rmedigicontrol/gitcompile fixed typo

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

9 years agomore gitcompile cleanups
Jaroslav Kysela [Tue, 19 Aug 2008 17:22:20 +0000 (19:22 +0200)]
more gitcompile cleanups

Signed-off-by: Jaroslav Kysela <perex@perex.cz>