]> git.alsa-project.org Git - alsa-tools.git/commitdiff
envy24control wordclock text patch
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 Jan 2006 14:25:53 +0000 (14:25 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Jan 2006 14:25:53 +0000 (14:25 +0000)
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).

envy24control/hardware.c

index e3ba5888b90422dbd259d2dd1ef6bbca32531507..8f8a5a6670d19ad162370b0e8c57c87ad58a1482 100644 (file)
@@ -170,7 +170,7 @@ gint master_clock_status_timeout_callback(gpointer data)
        if ((err = snd_ctl_elem_read(ctl, sw)) < 0)
                g_print("Unable to determine word clock status: %s\n", snd_strerror(err));
        gtk_label_set_text(GTK_LABEL(hw_master_clock_status_label),
-                          snd_ctl_elem_value_get_boolean(sw, 0) ? "Locked" : "No signal");
+                          snd_ctl_elem_value_get_boolean(sw, 0) ? "No signal" : "Locked");
        return TRUE;
 }