summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_direct.c
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2022-11-14 14:34:46 +0100
committerJaroslav Kysela <perex@perex.cz>2022-11-14 14:39:26 +0100
commit425e4d1fbea4965ea0fb7529b1ee6cbb47eb7227 (patch)
tree5a9f819a92bb8dd974f51b890fa8ffedb7424428 /src/pcm/pcm_direct.c
parent78b20e3caa7bba930095e05f3f8cbe665204fcfd (diff)
downloadalsa-lib-425e4d1fbea4965ea0fb7529b1ee6cbb47eb7227.tar.gz
pcm: fix the fast_ops pcm argument for fast_ops
The fast_ops callback invocation must always pass the fast_op_arg as the pcm argument. Plugins expect that. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'src/pcm/pcm_direct.c')
-rw-r--r--src/pcm/pcm_direct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/pcm_direct.c b/src/pcm/pcm_direct.c
index 4803b81b..3cc5305f 100644
--- a/src/pcm/pcm_direct.c
+++ b/src/pcm/pcm_direct.c
@@ -688,7 +688,7 @@ int snd_pcm_direct_check_xrun(snd_pcm_direct_t *direct, snd_pcm_t *pcm)
* so don't increment but just update to actual counter
*/
direct->recoveries = direct->shmptr->s.recoveries;
- pcm->fast_ops->drop(pcm);
+ pcm->fast_ops->drop(pcm->fast_op_arg);
/* trigger_tstamp update is missing in drop callbacks */
gettimestamp(&direct->trigger_tstamp, pcm->tstamp_type);
/* no timer clear: