]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm hw plugin: fix TTSTAMP version check
authorClemens Ladisch <clemens@ladisch.de>
Mon, 14 Jan 2008 07:50:18 +0000 (08:50 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 14 Jan 2008 07:50:18 +0000 (08:50 +0100)
Fix the version check that determines the availability of the TTSTAMP
ioctl.

src/pcm/pcm_hw.c

index a5a8ea816af9fe342dd4246267d9c52861f51a4d..8f6e51e621503a8b26c72ad3e18f4480ee57901e 100644 (file)
@@ -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;