Commit graph

83 commits

Author SHA1 Message Date
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
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
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
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
a726e5df68 Added configure target to global Makefile and gitcompile to EXTRA_DIST
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-09-09 14:17:10 +02:00
Jaroslav Kysela
f0bb8866ce more gitcompile cleanups
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-08-19 19:22:20 +02:00
Jaroslav Kysela
880926b3cd gitcompile: return error return code and add GITCOMPILE_NO_MAKE condition
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-08-19 18:51:25 +02:00
Jaroslav Kysela
c989fddc7e hgcompile -> gitcompile changes (include README files) 2008-06-03 10:39:28 +02:00
Takashi Iwai
e56788b739 hdspmixer - Fix Digiface channel map for ADAT speed mode 1
Fixed the channel map for ADAT speed mode 1 (rate > 48000).
ALSA bug#3732
	https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3732
2008-02-05 13:30:45 +01:00
Takashi Iwai
18a3037d87 hdspmixer - small memory leak fix
ALSA bug#3687
	https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3687

the hdspmixer application leaks one memory block, a c-style string
which is obtained by snd_card_get_longname, but never freed ...
2008-01-29 13:22:33 +01:00
Takashi Iwai
d6d0775e8c hdspmixer - Automatic initialization of secondary cards
From debian bug#450805:

We are using Hammerfall DSP cards. After booting, their audio output
remains silent until hdspmixer is started. No interaction in the GUI
of hdspmixer is necessary to unmute the first HDSP card; however,
further cards are only unmuted when activating the respective GUI
page ("2", "3"). Apparently, hdspmixer does some automatic
initialization of the card when activating the page.

Since we'd like to have a fully automatic startup, the following
patch activates the page for each existing card on startup, thereby
initializing them. There are surely more elegant solutions, but this
patch is tested and solves the problem for us.
2007-11-14 13:04:34 +01:00
Takashi Iwai
31b5ee97f2 hdspmixer - Fix compilation with gcc4.3
Fixed the doubled parameter 'w'.  Yeah, gcc 4.3 is picky.
2007-10-22 15:16:35 +02:00
Takashi Iwai
2c1948764c hdspmixer - Fix duplicated parameters in function declaration
Fixed duplicated parameters in function declaration.
2006-05-31 15:08:46 +02:00
Takashi Iwai
e13da40b0e Add hgcompile scripts
Added hgcompile scripts.
2006-05-12 15:36:52 +02:00
Takashi Iwai
ef87719aec Fix exec permission of cvscompile and add .hgignore 2006-04-07 18:17:19 +02:00
Clemens Ladisch
7fcbc9917e sound - fix .iface field of mixer control elements
This patch changes .iface to SNDRV_CTL_ELEM_IFACE_MIXER whre _PCM or
_HWDEP was used in controls that are not associated with a specific PCM
(sub)stream or hwdep device, and changes some controls that got
inconsitent .iface values due to copy+paste errors.  Furthermore, it
makes sure that all control that do use _PCM or _HWDEP use the correct
number in the .device field.
2005-07-29 14:33:00 +00:00
Takashi Iwai
792c421e0a alsa-tools small handle leak
From: Mario Lang <mlang@delysid.org>

WHile reading hdspmixer sources, I found a potential handler leak.
2005-06-14 09:26:12 +00:00
Takashi Iwai
2539e7d022 removed --with-soundbase and --with-kernel configure options.
the header files are now included in alsa-lib.
2004-03-19 15:31:13 +00:00
Takashi Iwai
15bdcde372 fixed the path of hdsp.h 2004-03-19 15:29:59 +00:00
Takashi Iwai
8cf8f953a2 Thomas Charbonnel <thomas@undata.org>:
- fix some problems with default presets file handling.
2003-11-27 10:42:40 +00:00
Takashi Iwai
e9f52dd913 added depcomp to EXTRA_DIST 2003-11-25 14:27:45 +00:00
Jaroslav Kysela
d0157a43cf - 1.0.0pre3 version
- added hack for ALSA server to pack also hdsp* tools (fltk issue)
2003-11-25 12:16:40 +00:00
Takashi Iwai
e535082270 - updated to version 1.6
- fixed compile warnings
  - corrects preset 7 for H9632 cards
2003-11-24 18:17:05 +00:00
Takashi Iwai
ca7ae60abd - fixed H9632 problem.
- added desktop file and icon
  new options --with-desktop-dir and --with-pixmap-dir.
- fixed CXXFLAGS for soundbase option.
- fixed compile warnings.
2003-11-24 14:48:21 +00:00
Takashi Iwai
cd8875932e Thomas Charbonnel <thomas@undata.org>:
updated to version 1.4.
2003-11-03 19:10:38 +00:00
Takashi Iwai
657e571adb fixed the fltk header filename. 2003-07-29 09:33:14 +00:00
Jaroslav Kysela
7b82f26934 replaced AC_MSG_ERROR with AC_MSG_WARN to allow generation of configuration script on machines without fltk 2003-07-28 12:02:25 +00:00
Takashi Iwai
0fb00d0bdc added hdspmixer by Thomas Charbonnel 2003-07-28 11:32:32 +00:00