]> sigrok.org Git - libsigrok.git/blobdiff - hardware/alsa/protocol.c
alsa: Use std_dev_clear().
[libsigrok.git] / hardware / alsa / protocol.c
index 70a5e68606905ebb9b7a75bd09c68b9b2a90b356..eea2f5bd427159faff0ee160f4474952659037e8 100644 (file)
@@ -282,22 +282,6 @@ SR_PRIV GSList *alsa_scan(GSList *options, struct sr_dev_driver *di)
        return devices;
 }
 
-/*
- * Helper to be used with g_slist_free_full(); for properly freeing an alsa
- * dev instance.
- */
-SR_PRIV void alsa_dev_inst_clear(struct sr_dev_inst *sdi)
-{
-       struct dev_context *devc;
-
-       if (!(devc = sdi->priv))
-               return;
-
-       snd_pcm_hw_params_free(devc->hw_params);
-       g_free((void*)devc->samplerates);
-       sr_dev_inst_free(sdi);
-}
-
 /**
  * Set the samplerate of the ALSA device.
  *