]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: ioplug: Pass appl_ptr and hw_ptr in snd_pcm_status()
authorTakashi Iwai <tiwai@suse.de>
Fri, 22 Jan 2021 14:48:40 +0000 (15:48 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 22 Jan 2021 16:58:07 +0000 (17:58 +0100)
commit26fdcb98e6be186016d53f87d06ae47aabe5b7fc
treea47ec144fdabc81faccc808250a2980466f1f65f
parentf2c1a9f3279a30cbd8dcba1eaf0d52f50b56b886
pcm: ioplug: Pass appl_ptr and hw_ptr in snd_pcm_status()

The snd_pcm_status() of the ioplug doesn't return the current
positions of hw_ptr and appl_ptr as advertised.  Fix it by copying the
current values stored in the plugin data.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_ioplug.c