alsa: Set the probe index

This commit is contained in:
Joel Holdsworth 2013-03-16 08:43:36 +00:00 committed by Bert Vermeulen
parent 9e5670d0ab
commit f0b6ae19a8
1 changed files with 1 additions and 1 deletions

View 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);
}