diff options
author | Jaroslav Kysela <perex@perex.cz> | 2009-12-20 05:47:57 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-01-07 09:47:24 -0500 |
commit | 4d96eb255c53ab5e39b37fd4d484ea3dc39ab456 (patch) | |
tree | 139ce65a63a2a39ee7dedfa3ca16c70bd5a1b2ba /include/sound/pcm.h | |
parent | 741b20cfb9109760937f403d18d731bfde31f56f (diff) |
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 'include/sound/pcm.h')
-rw-r--r-- | include/sound/pcm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index c83a4a79f16b..4e18a6dbe690 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -262,6 +262,8 @@ struct snd_pcm_hw_constraint_list { | |||
262 | unsigned int mask; | 262 | unsigned int mask; |
263 | }; | 263 | }; |
264 | 264 | ||
265 | struct snd_pcm_hwptr_log; | ||
266 | |||
265 | struct snd_pcm_runtime { | 267 | struct snd_pcm_runtime { |
266 | /* -- Status -- */ | 268 | /* -- Status -- */ |
267 | struct snd_pcm_substream *trigger_master; | 269 | struct snd_pcm_substream *trigger_master; |
@@ -340,6 +342,10 @@ struct snd_pcm_runtime { | |||
340 | /* -- OSS things -- */ | 342 | /* -- OSS things -- */ |
341 | struct snd_pcm_oss_runtime oss; | 343 | struct snd_pcm_oss_runtime oss; |
342 | #endif | 344 | #endif |
345 | |||
346 | #ifdef CONFIG_SND_PCM_XRUN_DEBUG | ||
347 | struct snd_pcm_hwptr_log *hwptr_log; | ||
348 | #endif | ||
343 | }; | 349 | }; |
344 | 350 | ||
345 | struct snd_pcm_group { /* keep linked substreams */ | 351 | struct snd_pcm_group { /* keep linked substreams */ |