mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
media: rk-isp10: add TEST_PATTERN in s_ctrl
use V4L2_CID_TEST_PATTERN to enable test mode of sensor Change-Id: I8a27d4ae072baecf62efb39d782bdfee897cc7bf Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
This commit is contained in:
@@ -6818,6 +6818,7 @@ int cif_isp10_s_ctrl(
|
||||
case CIF_ISP10_CID_AUTO_FPS:
|
||||
case CIF_ISP10_CID_HFLIP:
|
||||
case CIF_ISP10_CID_VFLIP:
|
||||
case CIF_ISP10_CID_TEST_PATTERN:
|
||||
return cif_isp10_img_src_s_ctrl(dev->img_src,
|
||||
id, val);
|
||||
case CIF_ISP10_CID_FOCUS_ABSOLUTE:
|
||||
|
||||
@@ -162,6 +162,7 @@ enum cif_isp10_cid {
|
||||
CIF_ISP10_CID_VBLANKING = 17,
|
||||
CIF_ISP10_CID_ISO_SENSITIVITY = 18,
|
||||
CIF_ISP10_CID_MIN_BUFFER_FOR_CAPTURE = 19,
|
||||
CIF_ISP10_CID_TEST_PATTERN = 20,
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -228,6 +228,8 @@ static int cif_isp10_v4l2_cid2v4l2_cid(u32 cif_isp10_cid)
|
||||
return V4L2_CID_VFLIP;
|
||||
case CIF_ISP10_CID_MIN_BUFFER_FOR_CAPTURE:
|
||||
return V4L2_CID_MIN_BUFFERS_FOR_CAPTURE;
|
||||
case CIF_ISP10_CID_TEST_PATTERN:
|
||||
return V4L2_CID_TEST_PATTERN;
|
||||
default:
|
||||
cif_isp10_pltfrm_pr_err(NULL,
|
||||
"unknown/unsupported CIF ISP20 ID %d\n",
|
||||
|
||||
@@ -284,6 +284,8 @@ static int cif_isp10_v4l2_cid2cif_isp10_cid(u32 v4l2_cid)
|
||||
return CIF_ISP10_CID_AUTO_FPS;
|
||||
case V4L2_CID_MIN_BUFFERS_FOR_CAPTURE:
|
||||
return CIF_ISP10_CID_MIN_BUFFER_FOR_CAPTURE;
|
||||
case V4L2_CID_TEST_PATTERN:
|
||||
return CIF_ISP10_CID_TEST_PATTERN;
|
||||
default:
|
||||
cif_isp10_pltfrm_pr_err(NULL,
|
||||
"unknown/unsupported V4L2 CID 0x%x\n",
|
||||
|
||||
Reference in New Issue
Block a user