]> git.baikalelectronics.ru Git - kernel.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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 15:24:57 +0000 (11:24 -0400)
commit1254173c09ee480e00e90a1a8cdd5b6ec7f6109f
tree8ef1612e1c22cebc5135435aa8912d6b47d2f897
parent427407ea1463bda099d85c110b6e04b6269120b7
media: au0828: stop video streaming only when last user stops

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>
drivers/media/usb/au0828/au0828-video.c