summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2009-04-09 10:49:57 +0200
committerJaroslav Kysela <perex@perex.cz>2009-04-09 10:49:57 +0200
commita987a692bf7629006c5c787b448d602211b60f3b (patch)
treee9bf6cf4ba2f57014b5cc6ed75b400dc8fc53f15
parentfb12b894534f3040f02b8b4ff2304c962f3d8b49 (diff)
downloadalsa-lib-a987a692bf7629006c5c787b448d602211b60f3b.tar.gz
pcm_hw plugin: show appl_ptr and hw_ptr in dump() callback
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--src/pcm/pcm_hw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c
index c7e6e565..c46d14ff 100644
--- a/src/pcm/pcm_hw.c
+++ b/src/pcm/pcm_hw.c
@@ -1039,6 +1039,8 @@ static void snd_pcm_hw_dump(snd_pcm_t *pcm, snd_output_t *out)
if (pcm->setup) {
snd_output_printf(out, "Its setup is:\n");
snd_pcm_dump_setup(pcm, out);
+ snd_output_printf(out, " appl_ptr : %li\n", hw->mmap_control->appl_ptr);
+ snd_output_printf(out, " hw_ptr : %li\n", hw->mmap_status->hw_ptr);
}
}