summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2020-06-18 19:15:45 +0200
committerJaroslav Kysela <perex@perex.cz>2020-06-18 19:18:14 +0200
commit7cf0fb693ae016d392f0aaf36f162fd35570feec (patch)
tree0e1f72bc817af3d12603c79ff80297aadf38ceb9
parent80a8cc574d71916e94dda8cae619117284cd04cc (diff)
downloadalsa-lib-7cf0fb693ae016d392f0aaf36f162fd35570feec.tar.gz
pcm: copy extplug timestamp type from the slave pcm
The extplug sets incorrectly the timestamping type to gettimeofday. Copy the timestamp type from the slave pcm as other plugins do. The problem is visible when the "pcm: dmix: fix sw_params handling of timestamp types in direct plugins" patch was applied for the direct plugins. BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1847508 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--src/pcm/pcm_extplug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pcm/pcm_extplug.c b/src/pcm/pcm_extplug.c
index 94002dc4..99455d9c 100644
--- a/src/pcm/pcm_extplug.c
+++ b/src/pcm/pcm_extplug.c
@@ -732,6 +732,7 @@ int snd_pcm_extplug_create(snd_pcm_extplug_t *extplug, const char *name,
pcm->private_data = ext;
pcm->poll_fd = spcm->poll_fd;
pcm->poll_events = spcm->poll_events;
+ pcm->tstamp_type = spcm->tstamp_type;
snd_pcm_set_hw_ptr(pcm, &ext->plug.hw_ptr, -1, 0);
snd_pcm_set_appl_ptr(pcm, &ext->plug.appl_ptr, -1, 0);