Commit graph

110 commits

Author SHA1 Message Date
Andreas Persson
ddc93b66b4 envy24control: port to GTK 3
Closes: https://github.com/alsa-project/alsa-tools/pull/35
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-04-09 12:38:23 +02:00
Andreas Persson
837033a108 envy24control: fix GtkSpinButton runtime warnings
Change the parameters to gtk_adjustment_new to get rid of this runtime
warning from GTK:

GtkSpinButton: setting an adjustment with non-zero page size is
deprecated

The change is also important when envy24control is ported to GTK 3, as
the spin buttons will stop working if it's not done.

Closes: https://github.com/alsa-project/alsa-tools/pull/31
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-04-09 11:48:37 +02:00
Andreas Persson
65a201fed6 envy24control: fix memory access errors in profiles
Fix two memory errors in the profiles parser: an invalid read and a
"source and destination overlap in strncpy" warning.

When the profiles page is initialized it fetches the profile names from
the profiles file. When a profile wasn't defined in the file, the parser
made invalid reads outside the buffer.

Closes: https://github.com/alsa-project/alsa-tools/pull/34
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-04-09 11:44:37 +02:00
Andreas Persson
52e6481047 envy24control: fix file descriptor leaks in profiles
File descriptors were leaked when "Save active profile" was pressed. Add
the missing calls to close.

Closes: https://github.com/alsa-project/alsa-tools/pull/33
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-04-09 11:44:11 +02:00
Andreas Persson
037ae73ab3 envy24control: fix crash when using system profiles file
envy24control crashed if you tried to start it with -f
/etc/envy24control/profiles.conf.

Closes: https://github.com/alsa-project/alsa-tools/pull/32
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-04-08 15:23:11 +02:00
Andreas Persson
dcf1b94682 envy24control: fix control callback for spdif output
Update S/PDIF Output Settings GUI when settings change.

Closes: https://github.com/alsa-project/alsa-tools/pull/30
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-04-08 15:22:34 +02:00
Andreas Persson
4522439faf envy24control: simplify code by using gtk_widget_show_all
Remove all gtk_widget_show calls and replace it with just one
gtk_widget_show_all. This makes the code shorter and it will also help a
future port to GTK 4, where gtk_widget_show is gone.

Closes: https://github.com/alsa-project/alsa-tools/pull/29
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-04-08 15:22:27 +02:00
Andreas Persson
6d2d500456 envy24control: fix spdif output settings
The S/PDIF Output Settings in envy24control had some bugs: wrong bits
were set when user changed "Stream" under "Professional" or any of the
settings under "Consumer".

Closes: https://github.com/alsa-project/alsa-tools/pull/28
Signed-off-by: Andreas Persson <andreasp56@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-04-08 15:22:20 +02:00
Jaroslav Kysela
97092591e0 envy24control: fix cast warnings and string array overflows
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-01-26 13:08:20 +01:00
Jaroslav Kysela
39a388e01b envy24control: add .desktop and icon files
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2017-11-15 11:15:35 +01:00
Jaroslav Kysela
38f7504af2 Change FSF address (Franklin Street)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2017-11-14 14:47:19 +01:00
Jaroslav Kysela
07896d3d16 Modernize configure.ac 2014-06-12 11:28:22 +02:00
Jordi Mallach
472c414744 Add AM_MAINTAINER_MODE([enable]) macro to all configure scripts.
Signed-off-by: Jordi Mallach <jordi@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-05-16 10:40:12 +02:00
Jaroslav Kysela
52384d8479 envy24control: support gtk1 only in configure.in-gtk1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-01-20 12:39:09 +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
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
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
Jaroslav Kysela
41282b058b Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-15 10:25:36 +02:00
Takashi Iwai
126ee9bddb envy24control - Fix SPDIF input control
Fix SPDIF input control name that was wrongly set due to a typo in
the changeset 48406c03292e.
2007-10-09 12:30:14 +02:00
Takashi Iwai
afb0fb4f7b Don't compare with a literal
Don't compare a pointer with a string literal.  Use strcmp instead.
2006-10-17 17:34:42 +02:00
Takashi Iwai
917e71fcc8 Fix ADC controls with higher resolution in envy24control
Fixed envy24control to handle ADC volumes with higher resolution
properly.
Also, the bogus sync of gtk_adjustment between ADC and IPGA volumes
is fixed in the case no IPGA is detected.
2006-09-07 20:55:49 +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
Takashi Iwai
5341e4ece0 Support both GTK+1.2 and GTK+2.x
Support both GTK+ 1.2 and GTK+ 2.x in single configure scripts.
GTK+ 2.x is used unless --with-gtk2=no is given.

If you have no gtk1 or gtk2 devel packages, use configure.in-gtk1
or -gtk2 and do autoreconf.
2006-03-29 11:33:02 +00:00
Alan Horstmann
2f3fb1aa16 Update envy24control man page
Update envy24control man page for options -t and -w.

Signed-off-by: Alan Horstmann <gineera@aspect135.co.uk>
2006-02-16 18:56:13 +00:00
Jaroslav Kysela
ce125c5d76 envy24control - Delta 1010LT driver has Word Clock Status now
See ALSA bug#1806 for details.
2006-02-10 08:43:45 +00:00
Jaroslav Kysela
06570095be envy24control - select external clock source for WordClock
See bug#1806 for more details.
2006-02-08 08:19:42 +00:00
Alan Horstmann
f205a90f1a Change scroll policy in envy24control
Change gtk scroll policy for the main notebook pages in envy24control from
ALWAYS to AUTOMATIC;  also raise envy24control version.

Signed-off-by: Alan Horstmann <gineera@aspect135.co.uk>
2006-01-09 11:51:33 +00:00
Alan Horstmann
41d8838291 envy24control - Tidy up redundant declarations
Remove declarations in envy24control not needed following my previous patches.

Signed-off-by: Alan Horstmann <gineera@aspect135.co.uk>
2006-01-05 16:26:16 +00:00
Alan Horstmann
18e2c3bf12 Change on-screen appearance of envy24control
Re-arrange envy24control on-screen; put digital mixer meter in outer frame;
split input and pcm mixer meters; add scroll windows on all notebook pages;
re-layout button boxes; add options -w and -t; add rt-click menu; add pixmap
test to levelmeters.c

Signed-off-by: Alan Horstmann <gineera@aspect135.co.uk>
2006-01-02 16:18:07 +00:00
Takashi Iwai
547c373a47 envy24control - Fix/clean up checks of DMX 6fire
Fix/clean up checks of DMX 6fire.
2006-01-02 16:13:06 +00:00
Takashi Iwai
4ba26a7f4f envy24control wordclock text patch
From: John Rigg <ad@sound-man.co.uk>

I reported a bug in envy24control about the text displayed when using
the BNC word clock input on a Delta 1010 (bug id 0001677). It says
`No signal' when locked and `Locked' when there's no signal. I wasn't
sure how to submit a patch using the Bugtrack interface, so I've
attached it here (this fixes it in alsa-tools-1.0.10).
2006-01-02 14:25:53 +00:00
Takashi Iwai
aa10f5531f envy24control: missing command line option help text
From: Dirk Jagdmann <doj@cubic.org>

this patch adds the help description of the "-M" command line option.
2005-12-22 16:03:21 +00:00
Alan Horstmann
f9e1a7c1a1 Tidy up DMX6fire eeprom checks
Multiple instances of DMX6FIRE eeprom checks in envy24control replaced with a
variable.

Signed-off-by: Alan Horstmann <gineera@aspect135.co.uk>
2005-12-08 16:36:12 +00:00
Alan Horstmann
26b56f36f5 Rationalise envy24control controls specific to Terratec DMX6fire
Remove separate 'breakbox led' selector and use led to indicate 'front line
in' is selected (as it should be); combine digital input select to a
one-of-three selector; change various labels; set default pcm mixer channels
to 6.

Signed-off-by:  Alan Horstmann <gineera@aspect135.co.uk>
2005-12-05 21:03:06 +00:00
Takashi Iwai
80dcc7974d Fix for Delta boards
Fix the element types of some delta-specific controls to follow the change
in the driver.
2005-11-28 18:15:09 +00:00
Alan Horstmann
6b1cf9b7d1 Fix envy24control digital input on Terratec DMX6fire
This patch fixes typo in hardware.c that prevented front digital inputs being
selected on the Terratec DMX6fire.  Also renames the digital input controls
for greater clarity with this card.

Signed-off-by: Alan Horstmann <gineera@aspect135.co.uk>
2005-11-25 11:52:40 +00:00
Takashi Iwai
e16a0cb080 Fix segfault of envy24control
Fix segfault of envy24control.
2005-09-02 17:01:32 +00:00
Takashi Iwai
1d0881e212 envy24control save state of LRGang button in config file
From: Dirk Jagdmann <doj@cubic.org>

The last mail I sent for this topic contained a non functional patch,
which has not been included in CVS yet.
I resend the patch, which should now work.
2005-08-04 16:01:10 +00:00
Takashi Iwai
603e129bc5 envy24control: enhanced mapping of midi controller
From: Dirk Jagdmann <doj@cubic.org>

Hello,

this patch adds a command line option to select a better mapping from
midi controller values to dB sliders. The default stays as a linear
mapping, which has the disadvantage, that a sensible area to adjust your
volume (which ist mostly in the range of 0..-12dB) is in the upper
1/10th of your midi controller. This patch adds a map, which consists of
two linear functions, so that the upper half of your midi controller
controls values from 0..-12dB, the lower half then controls -13..-96dB.
2005-08-03 13:52:13 +00:00
Jaroslav Kysela
2ec6fcc317 envy24control save state of LRGang button in config file
From: Dirk Jagdmann <doj@cubic.org>
this patch saves the state of the "LR Gang" buttons in a config/pref file,
because this button's state is not preserved throughout runs of
envy24control. At present it only works, when envy24control is compiled with
GTK2 as I have used routines which were introduced with Glib2.
2005-07-27 06:55:31 +00:00
Jaroslav Kysela
c53973f82e envy24control midi bugfix
From: Dirk Jagdmann <doj@cubic.org>
this patch is a bugfix for the midi patch I posted yesterday. This patch
fixes the "mute" button when driven via midi and the "LR Gang" button is
set.
2005-07-27 06:47:08 +00:00
Jaroslav Kysela
961ee03200 Fix for segmentation fault in envy24control
a user has written he has a segmentation fault if he use the profiles
management. He has used some older version of alsa-tools with previous FC
releases until now and then this problem didn't exists.
I have found a array boundary fault in my code for strstr_icase_blank().
From: Dirk Kalis <dirk.kalis@t-online.de>
2005-07-26 12:32:24 +00:00
Jaroslav Kysela
632a2ae802 envy24control midi updates
I have enhanced the midi control of envy24control.

1) I have fixed midi feedback, where issuing a controller event resulted in
the controller value beeing sent to the midi port again.

2) I have added midi controllers for the "mute" buttons, which can now be
controller via midi.

3) and while rewriting the midi code to support the mute buttons several
off-by-one errors have been fixed.
From: Dirk Jagdmann <doj@cubic.org>
2005-07-26 11:37:11 +00:00
Takashi Iwai
2e27f490d5 Fix compile warnings
Fix compile warnings regarding int <-> pointer conversion
2005-05-24 16:52:18 +00:00
Takashi Iwai
ecef9b6d60 Fix digital mixer checkboxes
Fix by Dirk Jagdmann <doj@cubic.org>:

The digital mixer can routed only to HW1/2 or SPDIF1/2.
In other channels, the checkbox shouldn't appear.
2005-01-07 17:17:41 +00:00