Commit graph

532 commits

Author SHA1 Message Date
Adrian Knoth
92e0a21b89 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>
2011-03-08 13:03:26 +01:00
Adrian Knoth
863c47cebe 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>
2011-03-01 13:48:13 +01:00
Adrian Knoth
05d6bc9728 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>
2011-03-01 13:47:21 +01:00
Adrian Knoth
042363a429 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>
2011-03-01 13:46:50 +01:00
Adrian Knoth
e728f0d073 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>
2011-02-28 15:55:23 +01:00
Adrian Knoth
c3349a84ea 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>
2011-02-28 15:55:14 +01:00
Adrian Knoth
646eacb626 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>
2011-02-28 11:11:19 +01:00
Adrian Knoth
97e96addff 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>
2011-02-28 11:11:13 +01:00
Adrian Knoth
3506d3d9a7 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>
2011-02-28 11:11:05 +01:00
Adrian Knoth
3f34b2c0f2 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>
2011-02-28 11:10:58 +01:00
Adrian Knoth
073fad25cb 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>
2011-02-28 11:10:52 +01:00
Adrian Knoth
9ea2fb1f88 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>
2011-02-28 11:10:43 +01:00
Adrian Knoth
0201fd1778 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>
2011-02-10 18:58:37 +01:00
Adrian Knoth
69991756aa 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>
2011-02-10 18:58:21 +01:00
Adrian Knoth
cef20c040c 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>
2011-02-07 14:55:23 +01:00
Adrian Knoth
5d4bcc44ce 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>
2011-02-07 14:54:50 +01:00
Adrian Knoth
4c63a6b7be 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>
2011-02-07 14:54:41 +01:00
Adrian Knoth
d0d9470dee 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>
2011-02-07 14:54:30 +01:00
Adrian Knoth
f2bb47662d 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>
2011-02-07 14:54:10 +01:00
Jaroslav Kysela
12931e9595 Release v1.0.24.1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2011-01-28 16:13:36 +01:00
Jaroslav Kysela
1dddbbf3f5 hdspmixer: add missing channelmap.h to Makefile.am
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2011-01-28 16:12:05 +01:00
Jaroslav Kysela
0265798c12 Release v1.0.24
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2011-01-27 12:05:46 +01:00
Adrian Knoth
fda8bb066f 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>
2011-01-27 11:46:29 +01:00
Adrian Knoth
e24e56795e 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>
2011-01-10 19:59:43 +01:00
Georg Rudolph
6af3047947 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>
2010-05-15 12:00:27 +02:00
Jaroslav Kysela
0de8b19562 Release v1.0.23
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-04-16 13:11:09 +02:00
Jaroslav Kysela
2561d2fd2d hwmixvolume: add hwmixvolume to EXTRA_DIST
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-04-07 13:53:43 +02:00
Jaroslav Kysela
32527a5930 Fix hwmixvolume gitcompile script (missing files)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-04-07 09:30:00 +02:00
Clemens Ladisch
b62f88e176 hwmixvolume: make scripts executable
The gitcompile script is easier to use if it's executable.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2010-01-18 15:53:35 +01:00
Clemens Ladisch
dec4137e8f 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>
2010-01-18 15:37:41 +01:00
Jaroslav Kysela
9b9eb2dafc Release v1.0.22
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2009-12-16 16:18:53 +01:00
Pavel Hofman
4c11a92555 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>
2009-10-06 16:46:03 +02:00
Jaroslav Kysela
a940b9ea67 Release v1.0.21
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2009-08-31 15:09:39 +02:00
Jaroslav Kysela
24b5756c35 qlo10k1: Fix usage of $x_libraries in acinclude.m4 - it may be empty
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2009-08-31 12:48:22 +02:00
Takashi Iwai
66a02ca943 ac3dec - Fix typos of -q option
It's quiet, not quit.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-07-01 08:07:46 +02:00
Takashi Iwai
88343d7989 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>
2009-06-08 11:48:45 +02:00
Diego Elio 'Flameeyes' Pettenò
be542131ef Also fix the configure for hdspconf for LIBS/LDFLAGS mistakes.
Commit 56970e8143 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>
2009-05-29 12:27:58 +02:00
Diego Elio 'Flameeyes' Pettenò
13cbbe0000 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>
2009-05-29 12:27:24 +02:00
Jaroslav Kysela
5034379728 Release v1.0.20
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2009-05-06 09:07:25 +02:00
Giuliano Pochini
4ba89e3b9f 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>
2009-03-19 08:33:36 +01:00
Giuliano Pochini
cf4b9bcad4 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>
2009-03-16 08:48:48 +01:00
Giuliano Pochini
8e2e19c8e8 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>
2009-03-09 14:13:40 +01:00
Jaroslav Kysela
a29ee706ff Release v1.0.19
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2009-01-19 12:17:21 +01:00
Takashi Iwai
9a75162bf4 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>
2008-11-30 18:24:55 +01:00
Diego 'Flameeyes' Pettenò
56970e8143 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>
2008-11-13 13:13:53 +01:00
Jaroslav Kysela
1a8fa92c75 Release v1.0.18
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-10-29 13:42:12 +01:00
Takashi Iwai
b34b15d39f ac3dec - Add missing -H option
The option -H was missing in getopt argument.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-10-24 11:44:08 +02:00
Takashi Iwai
3941d472b2 Merge branch 'master' of upstream 2008-10-24 09:26:45 +02:00
Takashi Iwai
1ffbd0ab28 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>
2008-10-24 09:24:32 +02:00
Jaroslav Kysela
8a3b9b2901 Added seq/gitcompile and seq/Makefile to tarball
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-09-09 14:48:16 +02:00