OSDN Git Service

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)
commit03723b924867718ca7f357668c414e2a218c18d4
tree17cc0e27fdd9f9f888f29dacd95e6ccb34f8361b
parent5380c4cfeb8e069b0ec1e2aae73c65229d76d18e
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