summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146_fops.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-10-26 16:46:10 +0000
committerMichael Hunold <devnull@localhost>2004-10-26 16:46:10 +0000
commit7086c1ee37d2f07aa94d61f22b0a9e2dfb0eee03 (patch)
tree02fd44d673e9dbf3738987ec48f00755a01f22f0 /linux/drivers/media/common/saa7146_fops.c
parentf49b28cb00eca5493b3a155e51da67e145c30d93 (diff)
downloadmediapointer-dvb-s2-7086c1ee37d2f07aa94d61f22b0a9e2dfb0eee03.tar.gz
mediapointer-dvb-s2-7086c1ee37d2f07aa94d61f22b0a9e2dfb0eee03.tar.bz2
- add back support for older kernels due to popular demand
Diffstat (limited to 'linux/drivers/media/common/saa7146_fops.c')
-rw-r--r--linux/drivers/media/common/saa7146_fops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/common/saa7146_fops.c b/linux/drivers/media/common/saa7146_fops.c
index 427372a55..b94dcef03 100644
--- a/linux/drivers/media/common/saa7146_fops.c
+++ b/linux/drivers/media/common/saa7146_fops.c
@@ -362,7 +362,11 @@ static unsigned int fops_poll(struct file *file, struct poll_table_struct *wait)
if (V4L2_BUF_TYPE_VBI_CAPTURE == fh->type) {
if( 0 == fh->vbi_q.streaming )
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10))
+ return videobuf_poll_stream(file, &fh->vbi_q, wait);
+#else
return videobuf_poll_stream(file, file->private_data, &fh->vbi_q, wait);
+#endif
q = &fh->vbi_q;
} else {
DEB_D(("using video queue.\n"));