From 03fa826b897d7f40fcdd50ee7b76a3077ea949c1 Mon Sep 17 00:00:00 2001 From: "darron@kewl.org" Date: Thu, 30 Oct 2008 07:46:42 +0000 Subject: cx88-blackbird: bugfix: cx88-blackbird-poll-fix From: Frederic CAND Starts encoder not only on a read call but also on a poll command. Signed-off-by: Frederic CAND --- linux/drivers/media/video/cx88/cx88-blackbird.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux/drivers/media/video/cx88/cx88-blackbird.c b/linux/drivers/media/video/cx88/cx88-blackbird.c index 3f33cb600..eca841bef 100644 --- a/linux/drivers/media/video/cx88/cx88-blackbird.c +++ b/linux/drivers/media/video/cx88/cx88-blackbird.c @@ -1177,6 +1177,10 @@ static unsigned int mpeg_poll(struct file *file, struct poll_table_struct *wait) { struct cx8802_fh *fh = file->private_data; + struct cx8802_dev *dev = fh->dev; + + if (!dev->mpeg_active) + blackbird_start_codec(file, fh); return videobuf_poll_stream(file, &fh->mpegq, wait); } -- cgit v1.2.3