OSDN Git Service

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)
commitc9e9094c4e42124af909b2f5f6ded0498e0854ac
treec430a0cadf8c51336bc023430a0fed3c03b7b132
parente0d42fc0ddbc4660afd6c725e1e75af3ce229f7d
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