From patchwork Thu Jul 21 08:35:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 592299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FBEECCA479 for ; Thu, 21 Jul 2022 08:36:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231911AbiGUIgD (ORCPT ); Thu, 21 Jul 2022 04:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231859AbiGUIgB (ORCPT ); Thu, 21 Jul 2022 04:36:01 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43C0713F6A for ; Thu, 21 Jul 2022 01:36:01 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C8BDD825; Thu, 21 Jul 2022 10:35:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1658392560; bh=VfjfsXAw0fxAUEVRsj1Ez4AGWnOR24fziFFBMkZ/vGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BzuxBHr3s8jnLjjIv5AR0ejuHtlo0lCctTDO+np/+Y7srf29GiST5/7G9tqqDmhgI M3YLAXzzbMRTKY3LrVmFeezOuHUeqM7dN5V8LAa329ZRC+AHoKahTZR/7p7NCfGht1 PLfBa5A5JFSUAexFvB8eI/JzkThZer8R88EpcyKI= From: Laurent Pinchart To: linux-media@vger.kernel.org Cc: Manivannan Sadhasivam , Sakari Ailus Subject: [PATCH 12/19] media: i2c: imx290: Fix max gain value Date: Thu, 21 Jul 2022 11:35:33 +0300 Message-Id: <20220721083540.1525-13-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220721083540.1525-1-laurent.pinchart@ideasonboard.com> References: <20220721083540.1525-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The gain is expressed in multiple of 0.3dB, as a value between 0.0dB and 72.0dB. The maximum value is thus 240, not 72. Signed-off-by: Laurent Pinchart --- drivers/media/i2c/imx290.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/imx290.c b/drivers/media/i2c/imx290.c index 3cb024b73ee7..1bd464932432 100644 --- a/drivers/media/i2c/imx290.c +++ b/drivers/media/i2c/imx290.c @@ -1020,7 +1020,7 @@ static int imx290_probe(struct i2c_client *client) imx290->ctrls.lock = &imx290->lock; v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops, - V4L2_CID_GAIN, 0, 72, 1, 0); + V4L2_CID_GAIN, 0, 240, 1, 0); v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops, V4L2_CID_EXPOSURE, 1, IMX290_VMAX_DEFAULT - 2, 1,