From 6f751a923dc8a56c8c2032d5a4006f6063618983 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Mon, 14 Jan 2008 08:50:18 +0100 Subject: [PATCH] pcm hw plugin: fix TTSTAMP version check Fix the version check that determines the availability of the TTSTAMP ioctl. --- src/pcm/pcm_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c index a5a8ea81..8f6e51e6 100644 --- a/src/pcm/pcm_hw.c +++ b/src/pcm/pcm_hw.c @@ -1003,7 +1003,7 @@ int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *name, } } #ifdef HAVE_CLOCK_GETTIME - else if (SNDRV_PROTOCOL_VERSION(2, 0, 9) >= ver) { + if (SNDRV_PROTOCOL_VERSION(2, 0, 9) <= ver) { int on = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC; if (ioctl(fd, SNDRV_PCM_IOCTL_TTSTAMP, &on) < 0) { ret = -errno; -- 2.47.1