OSDN Git Service

media: staging: rkisp1: cap: refactor enable/disable stream to allow multistreaming
authorHelen Koike <helen.koike@collabora.com>
Mon, 19 Oct 2020 16:04:34 +0000 (18:04 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:08 +0000 (10:31 +0100)
commitd51b5d9a277b8555346829d3783ab73d8ad90ada
tree703d5ba0b93b8b82ff48811ea00cde079261b262
parentf4aefc581af4286ff3bfaea44084c5e5d9aa57c8
media: staging: rkisp1: cap: refactor enable/disable stream to allow multistreaming

Allow streaming from self picture path and main picture path at the same
time.

Take care for s_stream() callbacks to not be called twice.
When starting a stream, s_stream(true) shouldn't be called for the isp
and the sensor if the other stream is already enabled (since it was
already called).
When stopping a stream, s_stream(false) shouldn't be called for isp and
the sensor if the other stream is still enabled.

Remove the callback function scheme for navigating through the topology,
simplifying the code, improving readability.

Remove multistreaming item from the TODO list.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Reviewed-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/TODO
drivers/staging/media/rkisp1/rkisp1-capture.c