pcm_hw plugin: show appl_ptr and hw_ptr in dump() callback
authorJaroslav Kysela <perex@perex.cz>
Thu, 9 Apr 2009 08:49:57 +0000 (10:49 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 9 Apr 2009 08:49:57 +0000 (10:49 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

src/pcm/pcm_hw.c

index c7e6e56..c46d14f 100644 (file)
@@ -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);
        }
 }