X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Falsa%2Fprotocol.c;h=eea2f5bd427159faff0ee160f4474952659037e8;hb=0ab702601d6b855f162340da9a19b1885ee16253;hp=70a5e68606905ebb9b7a75bd09c68b9b2a90b356;hpb=f0b6ae19a8e6ae7050cde3e1fa0a3ce46b9b5f66;p=libsigrok.git diff --git a/hardware/alsa/protocol.c b/hardware/alsa/protocol.c index 70a5e686..eea2f5bd 100644 --- a/hardware/alsa/protocol.c +++ b/hardware/alsa/protocol.c @@ -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. *