mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
pcm hw plugin: fix TTSTAMP version check
Fix the version check that determines the availability of the TTSTAMP ioctl.
This commit is contained in:
parent
cf822aceef
commit
6f751a923d
1 changed files with 1 additions and 1 deletions
|
|
@ -1003,7 +1003,7 @@ int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *name,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef HAVE_CLOCK_GETTIME
|
#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;
|
int on = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC;
|
||||||
if (ioctl(fd, SNDRV_PCM_IOCTL_TTSTAMP, &on) < 0) {
|
if (ioctl(fd, SNDRV_PCM_IOCTL_TTSTAMP, &on) < 0) {
|
||||||
ret = -errno;
|
ret = -errno;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue