From d1333ebd7d8cb47f863461d20905d7c775bda0a4 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 6 Feb 2004 13:32:58 +0100 Subject: [PATCH] ALSA CVS update - Jaroslav Kysela Intel8x0 driver Andrew Morton - Fix some unnecessary and odd handling of timeval usec overflow --- sound/pci/intel8x0.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index fbefa8c7dbe34..a86481b097007 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c @@ -2283,10 +2283,8 @@ static void __devinit intel8x0_measure_ac97_clock(intel8x0_t *chip) t = stop_time.tv_sec - start_time.tv_sec; t *= 1000000; - if (stop_time.tv_usec < start_time.tv_usec) - t -= start_time.tv_usec - stop_time.tv_usec; - else - t += stop_time.tv_usec - start_time.tv_usec; + t += stop_time.tv_usec - start_time.tv_usec; + printk(KERN_INFO "%s: measured %lu usecs\n", __FUNCTION__, t); if (t == 0) { snd_printk(KERN_ERR "?? calculation error..\n"); return; -- 2.53.0