linux/drivers/media
Hans Verkuil cbb87efb98 media: vb2: fix VBI/poll regression
commit 58d75f4b1c upstream.

The recent conversion of saa7134 to vb2 unconvered a poll() bug that
broke the teletext applications alevt and mtt. These applications
expect that calling poll() without having called VIDIOC_STREAMON will
cause poll() to return POLLERR. That did not happen in vb2.

This patch fixes that behavior. It also fixes what should happen when
poll() is called when STREAMON is called but no buffers have been
queued. In that case poll() will also return POLLERR, but only for
capture queues since output queues will always return POLLOUT
anyway in that situation.

This brings the vb2 behavior in line with the old videobuf behavior.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-10-09 12:21:27 -07:00
..
common media: sms: Remove CONFIG_ prefix from Kconfig symbols 2014-09-17 09:19:06 -07:00
dvb-core media: af9035: new IDs: add support for PCTV 78e and PCTV 79e 2014-10-05 14:52:22 -07:00
dvb-frontends media: tda10071: force modulation to QPSK on DVB-S 2014-07-31 12:52:53 -07:00
firewire firewire: introduce fw_driver.probe and .remove methods 2013-06-09 18:15:00 +02:00
i2c media: adv7604: fix inverted condition 2014-10-05 14:52:23 -07:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] bw-qcam: fix timestamp handling 2013-05-27 09:30:19 -03:00
pci media: cx18: fix kernel oops with tda8290 tuner 2014-10-05 14:52:23 -07:00
platform media: v4l: vsp1: Remove the unneeded vsp1_video_buffer video field 2014-09-17 09:19:06 -07:00
radio [media] radio-usb-si4713: fix sparse non static symbol warnings 2014-01-15 09:12:51 -02:00
rc [media] rc-core: reuse device numbers 2014-01-15 11:46:37 -02:00
tuners media: xc4000: Fix get_frequency() 2014-09-17 09:19:05 -07:00
usb media: af9035: new IDs: add support for PCTV 78e and PCTV 79e 2014-10-05 14:52:22 -07:00
v4l2-core media: vb2: fix VBI/poll regression 2014-10-09 12:21:27 -07:00
Kconfig [media] subdev autoselect only works if I2C and I2C_MUX is selected 2013-12-21 06:03:06 -02:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c media: media-device: Remove duplicated memset() in media_enum_entities() 2014-09-17 09:19:06 -07:00
media-devnode.c [media] media: Add 64--32 bit compat ioctl handler 2013-03-18 20:44:36 -03:00
media-entity.c [media] media: Check for active links on pads with MEDIA_PAD_FL_MUST_CONNECT flag 2013-12-04 15:03:45 -02:00