media: atmel: atmel-isc-base: move cropping settings outside start_dma
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 23 May 2022 14:17:05 +0000 (15:17 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:35 +0000 (10:30 +0100)
commit5c2111c29689239c31e82ee1fe287f03be94a68c
tree50acffe7d28d609681682f85e2623337c2da7f53
parent7e89476b59ca0e00cb5499267edec3f62e8ef67d
media: atmel: atmel-isc-base: move cropping settings outside start_dma

The cropping configuration of the Parallel Front Engine (PFE) can be done
just once when the streaming starts. The ISC configuration is in place and
will not be changed while streaming.
It is not effective to keep rewriting the crop registers configuration
everytime start_dma is called, as this can be called for each queued
buffer.
Thus we can configure the cropping at start_streaming time.
This change moves the code to a dedicated function.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/atmel/atmel-isc-base.c