]> sigrok.org Git - libsigrok.git/blobdiff - hardware/alsa/alsa.c
Pass sr_datafeed_packets and payloads with const pointers
[libsigrok.git] / hardware / alsa / alsa.c
index 897e644d9cbe79eb985ac607e0a96c27c37e10f3..23339dcd211a6a7bc48f74f3d75dad9a48ea46fe 100644 (file)
@@ -75,13 +75,11 @@ struct context {
        void *session_dev_id;
 };
 
-static int hw_init(const char *devinfo)
+static int hw_init(struct sr_context *sr_ctx)
 {
        struct sr_dev_inst *sdi;
        struct context *ctx;
 
-       (void)devinfo;
-
        if (!(ctx = g_try_malloc0(sizeof(struct context)))) {
                sr_err("%s: ctx malloc failed", __func__);
                return SR_ERR_MALLOC;