OSDN Git Service

media: vimc: Remove or modify stream checks
authorAndré Almeida <andrealmeid@collabora.com>
Thu, 30 May 2019 13:19:56 +0000 (09:19 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Jun 2019 16:47:08 +0000 (12:47 -0400)
commit3c1b9ac753e99005d7ee0a883d6e5b577ba32aa9
treeab4def1e4d61ac9de2b8c0b8571f69298de9a799
parent84060c65a8fa14ea9974a8f15b8280517b869cdd
media: vimc: Remove or modify stream checks

Change the way subdevices check if the stream is running. Verify the stream
pointer instead of src_frame. This makes easier to get rid of the void* and
u8* that points to frames in the subdevices structs.

Remove checks that s_stream does on subdevices. They are redundant since
the Media Controller Framework doesn't allow two streaming on the same
media pipeline at the same time.

Signed-off-by: André Almeida <andrealmeid@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vimc/vimc-debayer.c
drivers/media/platform/vimc/vimc-scaler.c
drivers/media/platform/vimc/vimc-sensor.c