diff options
-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); |