diff options
author | Gerd Knorr <devnull@localhost> | 2004-09-01 19:18:00 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-09-01 19:18:00 +0000 |
commit | 8d7250759ea4a050b047613c1cb38f497030f76e (patch) | |
tree | 9b1c30a63fa46c364c82aa3344fc55b92f96b98f /linux | |
parent | cbff6dd5f38854131acab7742d9ae71445f8f838 (diff) | |
download | mediapointer-dvb-s2-8d7250759ea4a050b047613c1cb38f497030f76e.tar.gz mediapointer-dvb-s2-8d7250759ea4a050b047613c1cb38f497030f76e.tar.bz2 |
- cx88: fix wrapfix.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-core.c | 6 |
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); |