[media] em28xx-v4l: get rid of field "users" in struct em28xx_v4l2"
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Thu, 18 Sep 2014 20:55:45 +0000 (17:55 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 22 Sep 2014 00:27:57 +0000 (21:27 -0300)
commit8e2c8717c1812628b5538c05250057b37c66fdbe
tree366dea5547845a47d346cde54ca933c1343936b7
parentc7854c2c5d692a329b4d9a9a73bcf36ae137ee7c
[media] em28xx-v4l: get rid of field "users" in struct em28xx_v4l2"

This reverts commit 747dba7de2a51a3db58b665ed3bc8c07921546ec.

It breaks concurrent vbi and video capturing:
While v4l2->users is the number of users of the whole device (all device nodes),
v4l2_fh_is_singular() only checks the number of users of a specific device node.
As a result. if one device node is open and a second device node is opened
(closed), the device is reinitialized (streaming is stopped).

Reported-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/em28xx/em28xx-video.c
drivers/media/usb/em28xx/em28xx.h