media: ivtv: don't call s_stream(0) if not streaming
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 2 Nov 2023 14:04:05 +0000 (15:04 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 23 Nov 2023 12:36:36 +0000 (13:36 +0100)
commitc411b39df8b84945e6d93e8c5ea586eaa5466f2a
tree612319f8eefc6a9029130671688846b0065153fe
parent074728523dd18da4226d43db6756ae9128d6a2f0
media: ivtv: don't call s_stream(0) if not streaming

Recently a WARN_ON was added in v4l2-subdev.c to warn if s_stream was
called unnecessarily. The ivtv driver hits this once when it is loaded for
the first time. Add a bool to avoid this warning.

[hverkuil: added a comment for the sd_video_is_streaming field]

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/pci/ivtv/ivtv-driver.h
drivers/media/pci/ivtv/ivtv-streams.c