From 8d7250759ea4a050b047613c1cb38f497030f76e Mon Sep 17 00:00:00 2001 From: Gerd Knorr Date: Wed, 1 Sep 2004 19:18:00 +0000 Subject: - cx88: fix wrapfix. --- linux/drivers/media/video/cx88/cx88-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linux/drivers') diff --git a/linux/drivers/media/video/cx88/cx88-core.c b/linux/drivers/media/video/cx88/cx88-core.c index 935234201..9a14f261e 100644 --- a/linux/drivers/media/video/cx88/cx88-core.c +++ b/linux/drivers/media/video/cx88/cx88-core.c @@ -597,9 +597,9 @@ void cx88_wakeup(struct cx88_core *core, break; #else /* count comes from the hw and is is 16bit wide -- - * this trick is taken from the time_after() macro and - * hopefully handles wrap-arounds correctly ... */ - if ((s16)count - (s16)buf->count < 0) + * this trick handles wrap-arounds correctly for + * up to 32767 buffers in flight... */ + if ((s16) (count - buf->count) < 0) break; #endif do_gettimeofday(&buf->vb.ts); -- cgit v1.2.3