summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-06-01 17:58:58 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-06-09 17:42:05 +0300
commit930d333a00e1c7ac6caa83b70402367069f6c377 (patch)
treec080d8821c661a78cbfc80a0c8b377205dab6058 /lib/mpi/mpi-mod.c
parent0f417dc1b7330aae06f155ea505899fa74b2eabe (diff)
downloadlinux-930d333a00e1c7ac6caa83b70402367069f6c377.tar.xz
media: atomisp: Fix binning check in atomisp_set_crop()
The fmt / size passed to atomisp_set_crop() includes padding, so the binning check should be against 1/2 of the native rect. of the sensor, rather then 1/2 of the active rect. This fixes binning not being used when using e.g. 800x600 on a 1600x1200 sensor leading to a very small field of view. Link: https://lore.kernel.org/r/20230601145858.59652-4-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>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions