From: Frederic CAND Date: Thu, 30 Oct 2008 07:46:42 +0000 (-0300) Subject: V4L/DVB (9495): cx88-blackbird: bugfix: cx88-blackbird-poll-fix X-Git-Tag: v2.6.28-rc5~85^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a2482377c9df89daa0cb94252bd1e8829c0e9c2f;p=linux-2.6-omap-h63xx.git V4L/DVB (9495): cx88-blackbird: bugfix: cx88-blackbird-poll-fix Starts encoder not only on a read call but also on a poll command. Signed-off-by: Frederic CAND Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index 078be631955..ae77450f126 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c @@ -1158,6 +1158,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); }