[media] em28xx: fix VBI handling logic
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 19 Sep 2014 16:02:12 +0000 (13:02 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 22 Sep 2014 00:07:29 +0000 (21:07 -0300)
commitc7854c2c5d692a329b4d9a9a73bcf36ae137ee7c
treea10da2a77603967361a7f12773a218be4fb13d03
parent91235537bc4b53f0b6f953acf963bcbb6215c49c
[media] em28xx: fix VBI handling logic

When both VBI and video are streaming, and video stream is stopped,
a subsequent trial to restart it will fail, because S_FMT will
return -EBUSY.

That prevents applications like zvbi to work properly.

Please notice that, while this fix it fully for zvbi, the
best is to get rid of streaming_users and res_get logic as a hole.

However, this single-line patch is better to be merged at -stable.

Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/em28xx/em28xx-video.c