media: atomisp: Use selection API info to determine sensor padding
authorHans de Goede <hdegoede@redhat.com>
Mon, 29 May 2023 10:37:38 +0000 (11:37 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 14:36:27 +0000 (15:36 +0100)
commit3e399cf20f69b7f810bcdf98c8df6b1c2af88465
treeb408f2887bdff987d0a81375548f3ae5c5917ebe
parent62866c23c78d2c5db85bf82d61d8801aa9e93176
media: atomisp: Use selection API info to determine sensor padding

Using the selection / crop info to determine the padding values
to use with a specific resolution on specific sensor.

This allows e.g. automatically halving the padding when using
the max binned resolution and also ensures the right amount
of padding is used on models with 2 sensors with different
padding requirements.

Link: https://lore.kernel.org/r/20230529103741.11904-19-hdegoede@redhat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c
drivers/staging/media/atomisp/pci/atomisp_subdev.c
drivers/staging/media/atomisp/pci/atomisp_subdev.h