]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/core/pcm.c
ALSA: pcm_lib - add possibility to log last 10 DMA ring buffer positions
[karo-tx-linux.git] / sound / core / pcm.c
index 6884ae031f6fc4975c52fb4beb026aeaa61f2248..df57a0e30bf2f7535d678a49d1d49f1c8cac6928 100644 (file)
@@ -921,6 +921,10 @@ void snd_pcm_detach_substream(struct snd_pcm_substream *substream)
        snd_free_pages((void*)runtime->control,
                       PAGE_ALIGN(sizeof(struct snd_pcm_mmap_control)));
        kfree(runtime->hw_constraints.rules);
+#ifdef CONFIG_SND_PCM_XRUN_DEBUG
+       if (runtime->hwptr_log)
+               kfree(runtime->hwptr_log);
+#endif
        kfree(runtime);
        substream->runtime = NULL;
        put_pid(substream->pid);