https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/core/pcm_lib.c?id=f5914908a5b7b2338f210e56827a1ef35585dc6d
To debug the ptr position at period interrupt, you need alsa driver build with debug which allow you to enable trace point to log the ptr position in system
https:/ /git.kernel. org/cgit/ linux/kernel/ git/tiwai/ sound.git/ commit/ sound/core/ pcm_lib. c?id=f5914908a5 b7b2338f210e568 27a1ef35585dc6d
To debug the ptr position at period interrupt, you need alsa driver build with debug which allow you to enable trace point to log the ptr position in system