]> sigrok.org Git - libsigrok.git/blobdiff - hardware/alsa/alsa.c
Move the probe naming to the creator of the device, and let each driver name its...
[libsigrok.git] / hardware / alsa / alsa.c
index 5d0214bdfcc2637bd87c3a2470809f99dd0f89e3..db41072c9739b94a388b0a815ae1a4b6d345f885 100644 (file)
@@ -36,6 +36,12 @@ static int capabilities[] = {
        SR_HWCAP_CONTINUOUS,
 };
 
+static const char* probe_names[NUM_PROBES + 1] = {
+       "0",
+       "1",
+       NULL,
+};
+
 static GSList *device_instances = NULL;
 
 struct alsa {
@@ -160,6 +166,9 @@ static void *hw_get_device_info(int device_index, int device_info_id)
        case SR_DI_NUM_PROBES:
                info = GINT_TO_POINTER(NUM_PROBES);
                break;
+       case SR_DI_PROBE_NAMES:
+               info = probe_names;
+               break;
        case SR_DI_CUR_SAMPLERATE:
                info = &alsa->cur_rate;
                break;