]> sigrok.org Git - libsigrok.git/commitdiff
alsa: Set the probe index
authorJoel Holdsworth <redacted>
Sat, 16 Mar 2013 08:43:36 +0000 (08:43 +0000)
committerBert Vermeulen <redacted>
Sun, 14 Apr 2013 21:39:15 +0000 (23:39 +0200)
hardware/alsa/protocol.c

index 74326205042a48511e5a5a824152c5d058b7ca55..70a5e68606905ebb9b7a75bd09c68b9b2a90b356 100644 (file)
@@ -159,7 +159,7 @@ static void alsa_scan_handle_dev(GSList **devices,
 
        for (i = 0; i < devc->num_probes; i++) {
                snprintf(p_name, sizeof(p_name), "Ch_%d", i);
-               if (!(probe = sr_probe_new(0, SR_PROBE_ANALOG, TRUE, p_name)))
+               if (!(probe = sr_probe_new(i, SR_PROBE_ANALOG, TRUE, p_name)))
                        goto scan_error_cleanup;
                sdi->probes = g_slist_append(sdi->probes, probe);
        }