media: staging: rkisp1: validate links before powering and streaming
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Fri, 2 Oct 2020 18:42:17 +0000 (20:42 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:08 +0000 (10:31 +0100)
commit35d1a7bbe45626a9bada329c42353e402030bc83
treedd95acd7ffda8bb52ef19765a8eed9444b86725c
parent6e8c09bb8d60a0b905295e9e2c999b39953c5bf3
media: staging: rkisp1: validate links before powering and streaming

In function rkisp1_vb2_start_streaming, the call to
media_pipeline_start should be the first thing in order
to validate the links and prevents their state from being modified
before power up and streaming.

Adjust stop streaming to the same logic, call media_pipeline_stop
after we disable streaming on the entities in the topology.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-capture.c