]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit77a3f1409e2023b5927e0c575962f2143f2337f5
treeb420f8af3eeaaaf82433decbe72d1fdf64671233
parentd1e8a96f7b45a5090cee8441e4e443c8d0eb4a85
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