summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2004-09-01 19:18:00 +0000
committerGerd Knorr <devnull@localhost>2004-09-01 19:18:00 +0000
commit8d7250759ea4a050b047613c1cb38f497030f76e (patch)
tree9b1c30a63fa46c364c82aa3344fc55b92f96b98f /linux/drivers/media/video
parentcbff6dd5f38854131acab7742d9ae71445f8f838 (diff)
downloadmediapointer-dvb-s2-8d7250759ea4a050b047613c1cb38f497030f76e.tar.gz
mediapointer-dvb-s2-8d7250759ea4a050b047613c1cb38f497030f76e.tar.bz2
- cx88: fix wrapfix.
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/cx88/cx88-core.c6
1 files changed, 3 insertions, 3 deletions
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);