diff options
author | Jaroslav Kysela <perex@perex.cz> | 2009-12-20 10:47:57 (GMT) |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-01-07 14:47:24 (GMT) |
commit | 4d96eb255c53ab5e39b37fd4d484ea3dc39ab456 (patch) | |
tree | 139ce65a63a2a39ee7dedfa3ca16c70bd5a1b2ba /sound/core/pcm.c | |
parent | 741b20cfb9109760937f403d18d731bfde31f56f (diff) | |
download | linux-fsl-qoriq-4d96eb255c53ab5e39b37fd4d484ea3dc39ab456.tar.xz |
ALSA: pcm_lib - add possibility to log last 10 DMA ring buffer positions
In some debug cases, it might be usefull to see previous ring buffer
positions to determine position problems from the lowlevel drivers.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/core/pcm.c')
-rw-r--r-- | sound/core/pcm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index 6884ae0..df57a0e 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c @@ -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); |