]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: em28xx: fix VBI handling logic
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 19 Sep 2014 16:02:12 +0000 (13:02 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:10 +0000 (13:41 -0700)
commit8d0622eb9b81ecad3b21055945828dd701c754b5
tree44b57deb3b6bebf79c65afd4d7d4c10a280597ae
parentfcdc612e265e02828157152b33184eba96c49e29
media: em28xx: fix VBI handling logic

commit c7854c2c5d692a329b4d9a9a73bcf36ae137ee7c upstream.

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.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/em28xx/em28xx-video.c