mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-09 05:33:49 -04:00
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>
This commit is contained in:
parent
93a6b69818
commit
6b1cf9b7d1
2 changed files with 7 additions and 7 deletions
|
|
@ -734,10 +734,10 @@ void spdif_on_off_toggled(GtkWidget *togglebutton, gpointer data)
|
|||
if (!is_active(togglebutton))
|
||||
return;
|
||||
if (!strcmp(str, "On"))
|
||||
snd_ctl_elem_value_set_boolean(spdif_input, 0, 1);
|
||||
snd_ctl_elem_value_set_boolean(spdif_on_off, 0, 1);
|
||||
else
|
||||
snd_ctl_elem_value_set_boolean(spdif_input, 0, 0);
|
||||
if ((err = snd_ctl_elem_write(ctl, spdif_input)) < 0)
|
||||
snd_ctl_elem_value_set_boolean(spdif_on_off, 0, 0);
|
||||
if ((err = snd_ctl_elem_write(ctl, spdif_on_off)) < 0)
|
||||
g_print("Unable to write S/PDIF on/off switch: %s\n", snd_strerror(err));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue