]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: au0828: stop video streaming only when last user stops
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 2 Apr 2019 07:24:15 +0000 (03:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:45:02 +0000 (06:45 -0700)
commita9176dab8898fa7ae611e2c4743e1ee7544f7cba
tree633cb31ee46bcebbd58b7df4f36e62f906696c32
parent8d082dcc5150d75583cf0c427b83585e1581db39
media: au0828: stop video streaming only when last user stops

[ Upstream commit f604f0f5afb88045944567f604409951b5eb6af8 ]

If the application was streaming from both videoX and vbiX, and streaming
from videoX was stopped, then the vbi streaming also stopped.

The cause being that stop_streaming for video stopped the subdevs as well,
instead of only doing that if dev->streaming_users reached 0.

au0828_stop_vbi_streaming was also wrong since it didn't stop the subdevs
at all when dev->streaming_users reached 0.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: Shuah Khan <shuah@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/au0828/au0828-video.c