From: Jaroslav Kysela Date: Thu, 9 Apr 2009 08:49:57 +0000 (+0200) Subject: pcm_hw plugin: show appl_ptr and hw_ptr in dump() callback X-Git-Tag: v1.0.20~1^2~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a987a692bf7629006c5c787b448d602211b60f3b;p=alsa-lib.git pcm_hw plugin: show appl_ptr and hw_ptr in dump() callback Signed-off-by: Jaroslav Kysela --- 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); } }