mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-27 07:58:28 -04:00
Fix error of rmedigicontrol with recent driver change
There was a change in the mixer (enumerates) and I forgot to change rmedigicontrol, too. But this patch removes "snd_ctl_elem_value_get_enumerated()" for the rme32/rme96 cards now. The patch is only tested with a rme32 card here. Signed-off-by: Martin Langer <martin-langer@gmx.de>
This commit is contained in:
parent
792c421e0a
commit
d8758b8482
1 changed files with 4 additions and 3 deletions
|
|
@ -172,7 +172,7 @@ GtkWidget *create_enum_elem_radio(char *elem_name,ctl_elem_info_val_t *iv)
|
||||||
r=gtk_radio_button_new_with_label(group,snd_ctl_elem_info_get_item_name(iv->info));
|
r=gtk_radio_button_new_with_label(group,snd_ctl_elem_info_get_item_name(iv->info));
|
||||||
group=gtk_radio_button_group(GTK_RADIO_BUTTON(r));
|
group=gtk_radio_button_group(GTK_RADIO_BUTTON(r));
|
||||||
gtk_signal_connect(GTK_OBJECT(r),"toggled",GTK_SIGNAL_FUNC(elem_radio_toggled),(gpointer)iv);
|
gtk_signal_connect(GTK_OBJECT(r),"toggled",GTK_SIGNAL_FUNC(elem_radio_toggled),(gpointer)iv);
|
||||||
if(i==snd_ctl_elem_value_get_enumerated(iv->val,0))
|
if(i==snd_ctl_elem_value_get_integer(iv->val,0))
|
||||||
active=r;
|
active=r;
|
||||||
gtk_box_pack_start(GTK_BOX(box),r,TRUE,FALSE,0);
|
gtk_box_pack_start(GTK_BOX(box),r,TRUE,FALSE,0);
|
||||||
}
|
}
|
||||||
|
|
@ -183,3 +183,4 @@ GtkWidget *create_enum_elem_radio(char *elem_name,ctl_elem_info_val_t *iv)
|
||||||
gtk_container_add(GTK_CONTAINER(frame),box);
|
gtk_container_add(GTK_CONTAINER(frame),box);
|
||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue