diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/alsa/alsa_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/alsa/alsa_driver.c b/drivers/alsa/alsa_driver.c index 6db2d21..757cca6 100644 --- a/drivers/alsa/alsa_driver.c +++ b/drivers/alsa/alsa_driver.c @@ -1175,7 +1175,7 @@ alsa_driver_xrun_recovery (alsa_driver_t *driver, float *delayed_usecs) && driver->process_count > XRUN_REPORT_DELAY) { struct timeval now, diff, tstamp; driver->xrun_count++; - gettimeofday(&now, 0); + snd_pcm_status_get_tstamp(status,&now); snd_pcm_status_get_trigger_tstamp(status, &tstamp); timersub(&now, &tstamp, &diff); *delayed_usecs = diff.tv_sec * 1000000.0 + diff.tv_usec; |