Content-Type: multipart/mixed; boundary="===============9209087882724874866==" MIME-Version: 1.0 From: Dillon Min To: kbuild-all@lists.01.org Subject: [PATCH v7 07/10] media: v4l2-ctrls: Add V4L2_CID_COLORFX_CBCR max setting Date: Tue, 26 Oct 2021 15:11:19 +0800 Message-ID: <1635232282-3992-8-git-send-email-dillon.minfei@gmail.com> In-Reply-To: <1635232282-3992-1-git-send-email-dillon.minfei@gmail.com> List-Id: --===============9209087882724874866== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The max of V4L2_CID_COLORFX_CBCR is 0xffff, so add it to v4l2_ctrl_fill() to sure not beyond that. Signed-off-by: Dillon Min --- drivers/media/v4l2-core/v4l2-ctrls-defs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls-defs.c b/drivers/media/v4l2= -core/v4l2-ctrls-defs.c index ebe82b6ba6e6..0cb6c0f18b39 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls-defs.c +++ b/drivers/media/v4l2-core/v4l2-ctrls-defs.c @@ -1400,6 +1400,12 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum = v4l2_ctrl_type *type, /* Max is calculated as RGB888 that is 2^24 */ *max =3D 0xFFFFFF; break; + case V4L2_CID_COLORFX_CBCR: + *type =3D V4L2_CTRL_TYPE_INTEGER; + *step =3D 1; + *min =3D 0; + *max =3D 0xffff; + break; case V4L2_CID_FLASH_FAULT: case V4L2_CID_JPEG_ACTIVE_MARKER: case V4L2_CID_3A_LOCK: -- = 2.7.4 --===============9209087882724874866==--