From: Clemens Ladisch Date: Mon, 14 Jan 2008 07:50:18 +0000 (+0100) Subject: pcm hw plugin: fix TTSTAMP version check X-Git-Tag: v1.0.16rc1~11 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=6f751a923dc8a56c8c2032d5a4006f6063618983;p=alsa-lib.git pcm hw plugin: fix TTSTAMP version check Fix the version check that determines the availability of the TTSTAMP ioctl. --- 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;