mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
<Dirk.Kalis@t-online.de>
I have attached patch for envy24control because after update from James Tappin i have had problems with the mixer and patchbay. SPDIF inputs and outputs was duplicated.
This commit is contained in:
parent
902bb89cbd
commit
766a16ca2e
5 changed files with 21 additions and 16 deletions
|
|
@ -25,7 +25,7 @@
|
|||
#define toggle_set(widget, state) \
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), state);
|
||||
|
||||
static int stream_active[10];
|
||||
static int stream_active[MAX_OUTPUT_CHANNELS + MAX_SPDIF_CHANNELS];
|
||||
extern int output_channels, input_channels, spdif_channels;
|
||||
|
||||
static int is_active(GtkWidget *widget)
|
||||
|
|
@ -136,7 +136,7 @@ void patchbay_init(void)
|
|||
snd_ctl_elem_value_alloca(&val);
|
||||
snd_ctl_elem_value_set_interface(val, SND_CTL_ELEM_IFACE_MIXER);
|
||||
snd_ctl_elem_value_set_name(val, ANALOG_PLAYBACK_ROUTE_NAME);
|
||||
memset (stream_active, 0, 10 * sizeof(int));
|
||||
memset (stream_active, 0, (MAX_OUTPUT_CHANNELS + MAX_SPDIF_CHANNELS) * sizeof(int));
|
||||
for (i = 0; i < output_channels; i++) {
|
||||
snd_ctl_elem_value_set_numid(val, 0);
|
||||
snd_ctl_elem_value_set_index(val, i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue