OSDN Git Service

pcm: plugin - optimize sync in snd_pcm_plugin_status()
authorJaroslav Kysela <perex@perex.cz>
Sun, 3 Jan 2021 15:41:29 +0000 (16:41 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 3 Jan 2021 15:41:32 +0000 (16:41 +0100)
commit28cc099d9ea3962b033cb1cb9c3e07db828d9ff7
tree29ba49a2431af3da5d27b4122c190d620f3bd3ac
parentfa1895aa2b4f3f154e537bee92860fe793045643
pcm: plugin - optimize sync in snd_pcm_plugin_status()

Do hw_ptr sync only once after the status call. This avoids
double update.

Also, the application pointer must not change when
the status is called. Add assert() call for this condition.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_plugin.c