From: Joel Holdsworth Date: Sat, 16 Mar 2013 08:43:36 +0000 (+0000) Subject: alsa: Set the probe index X-Git-Tag: dsupstream~158 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=f0b6ae19a8e6ae7050cde3e1fa0a3ce46b9b5f66;hp=9e5670d0ab63af4353003bf879b0aa5e1a6919f8;p=libsigrok.git alsa: Set the probe index --- diff --git a/hardware/alsa/protocol.c b/hardware/alsa/protocol.c index 74326205..70a5e686 100644 --- a/hardware/alsa/protocol.c +++ b/hardware/alsa/protocol.c @@ -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); }