]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: fix try_fmt logic
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 4 Nov 2021 11:45:27 +0000 (11:45 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:46 +0000 (08:11 +0000)
commit6a6f11daa332c40c80312e920a227306cd0d92e9
treec430a0cadf8c51336bc023430a0fed3c03b7b132
parentd1cd7f6f519773efc152fa60494dbdccd2fe268c
media: atomisp: fix try_fmt logic

The internal try_fmt logic is not meant to provide everything
that the V4L2 API should provide. Also, it doesn't decrement
the pads that are used only internally by the driver, but aren't
part of the device's output.

Fix it.

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