]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: fix g_fmt logic
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 4 Nov 2021 11:47:10 +0000 (11:47 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:47 +0000 (08:11 +0000)
commita6711bd06fc9b047149cd5909c3c0264b21e1818
treec5a8d72a01bf837ee8e495fca373a6f5a7b00951
parentae7209518eb85d34bb442900c085dada44bffb24
media: atomisp: fix g_fmt logic

The g_fmt logic is currently broken, as it is not returning
the same imagesize as previoulsy calculated by s_fmt.

Fix it by just re-using whatever it was defined at s_fmt,
if this was called before.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_ioctl.c