aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2021-07-23 11:22:32 +0000
committerMauro Carvalho Chehab <[email protected]>2021-08-04 12:43:51 +0000
commit51f93add3669f1b1f540de1cf397815afbd4c756 (patch)
tree1210d5fdad6da8554c76da9be909c4480d4a153c /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentmedia: ov8856: ignore gpio and regulator for ov8856 with ACPI (diff)
downloadkernel-51f93add3669f1b1f540de1cf397815afbd4c756.tar.gz
kernel-51f93add3669f1b1f540de1cf397815afbd4c756.zip
media: imx258: Rectify mismatch of VTS value
The frame_length_lines (0x0340) registers are hard-coded as follows: - 4208x3118 frame_length_lines = 0x0c50 - 2104x1560 frame_length_lines = 0x0638 - 1048x780 frame_length_lines = 0x034c The driver exposes the V4L2_CID_VBLANK control in read-only mode and sets its value to vts_def - height, where vts_def is a mode-dependent value coming from the supported_modes array. It is set using one of the following macros defined in the driver: #define IMX258_VTS_30FPS 0x0c98 #define IMX258_VTS_30FPS_2K 0x0638 #define IMX258_VTS_30FPS_VGA 0x034c There's a clear mismatch in the value for the full resolution mode i.e. IMX258_VTS_30FPS. Fix it by rectifying the macro with the value set for the frame_length_lines register as stated above. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Umang Jain <[email protected]> Reviewed-by: Bingbu Cao <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions