OSDN Git Service

media: atomisp: fix VIDIOC_S_FMT logic
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 4 Nov 2021 11:23:14 +0000 (11:23 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:45 +0000 (08:11 +0000)
commitf5f3cedf2b5a48af3092e7bc865ad65284503f5e
treeb420f8af3eeaaaf82433decbe72d1fdf64671233
parent9a542497cc887d2278689ee576c57c34072080f0
media: atomisp: fix VIDIOC_S_FMT logic

There are several issues on S_FMT implementation:

- it doesn't properly handle pad_h/pad_w;
- it reports a wrong visible size to userspace;
- it allows setting the format to a raw mode, which
  currently causes the pipeline to break.

Address such issues, for it to start working with generic
apps.

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