]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: report the visible resolution
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 31 Oct 2021 09:38:51 +0000 (09:38 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:42 +0000 (08:11 +0000)
commita5de825e97c11df1c1c0b8afda87e9f504aad56d
tree17cc0e27fdd9f9f888f29dacd95e6ccb34f8361b
parent84a73dff2c06508cc842b65aba7df2da228f71e7
media: atomisp: report the visible resolution

The atomisp sensors and logic adds an extra pad lines/columns,
called "dvs envelope". It also uses an extra 12 lines/columns
at the sensor for BYT.

As those are not visible to userspace, the V4L2 API should
decrement such values when reporting the current resolution.

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