From patchwork Fri Oct 5 12:49:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 10627949 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1AD7D1515 for ; Fri, 5 Oct 2018 12:50:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0857628F6E for ; Fri, 5 Oct 2018 12:50:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F07A228F8B; Fri, 5 Oct 2018 12:49:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90FC428F6E for ; Fri, 5 Oct 2018 12:49:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728477AbeJETsY (ORCPT ); Fri, 5 Oct 2018 15:48:24 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:35712 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728414AbeJETsX (ORCPT ); Fri, 5 Oct 2018 15:48:23 -0400 Received: by mail-ed1-f68.google.com with SMTP id y19-v6so11559338edd.2; Fri, 05 Oct 2018 05:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pKIor/sW87BP+V4JOfoeCe5+eQYewOaKx6KSwXqqmD0=; b=vc/VKF/tUAH9Z/FhaVqQhoGrBnIC05AJL+iTw2+LPT23+93GSki6X1XaHJgzZRqnBT jWy97OvgHal9XJP10cGD+shP3XP4omWxumIKgc9nNseNO5Omk7N8U1ZCrL7+GHi0xqIt mtQ6zrTX0A/kiWCDi+fR1xNqUIoNeArhwKM0jnZFtUvAQKkMkW3nDODabCfTFpmkoBjy Pq4lxHkiepCmyCr/tk7Eq3At7Y5v7lyDkE6A3EWUP7U/nVy6RDVFm69j+aUFtrkxXPN3 ENjgTw52f5ui57UU6KeiMupcdXt+2Ryg8FNx0H3PQ+/B3uhMq9fr9Yha9kcdNN+EBm0C 5Lyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pKIor/sW87BP+V4JOfoeCe5+eQYewOaKx6KSwXqqmD0=; b=jlRaYm8fZizu/4YHBoIOblnKLq29bdYenLOM/GwFnRgTqZyr40tQIpXPyDGTl6V9Ip iS5HNo9EKr0um0xFZ/o159qz1/iroCke4TErF1tKa3ceFKvmvDdubXu8uCi8yTCU7HW4 Ht7+lSHe8GEPWooHbn/X0WgBeft9BlgT1qEheucm3XD3jejZPRJDWF/QtvSlZpyREERU gymY5QGFD6CJAEkxB7ILchSZ8ijl2LG9SeimeyASKsvc2BILl3XxFflrbbIir4we9Rip tmDqmBgy1w8Dn5oUwX5JaSA0UvjibT5TvMIfa+xi61HFSVGcFmV63V8fhYzMEasFAhj+ uaiw== X-Gm-Message-State: ABuFfog5MNI86f5iwhqlz9m8ob3coXVURSvhX4XgFtQIEOeT6QqysOZw fjcKmWNVUd4NFwGrqfbNyJw= X-Google-Smtp-Source: ACcGV63CzhivWWpI2CTZzhgqel0esQ1iZvfYsM1oNg2EaDNmY3bb9jS2xPfWSDCReh0JnJ+cmNJDbw== X-Received: by 2002:a50:a186:: with SMTP id 6-v6mr14647112edk.12.1538743786333; Fri, 05 Oct 2018 05:49:46 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id b14-v6sm2360512edc.17.2018.10.05.05.49.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 05:49:45 -0700 (PDT) From: Ricardo Ribalda Delgado To: Hans Verkuil , Laurent Pinchart , Sakari Ailus , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, jacopo@jmondi.org Cc: Ricardo Ribalda Delgado Subject: [PATCH v8 3/3] [media] imx214: Fix range for V4L2_CID_EXPOSURE Date: Fri, 5 Oct 2018 14:49:39 +0200 Message-Id: <20181005124940.15539-3-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181005124940.15539-1-ricardo.ribalda@gmail.com> References: <20181005124940.15539-1-ricardo.ribalda@gmail.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Going above 3184 changes the frame-rate of the sensor. Without this patch there is no way to change the exposure without affecting the frame-rate. With the proper documentation we should be able the change the frame-rate at wish, but until that happens we just cap what the sensor can do. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/imx214.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c index 46a2fdfbd049..0b99123161b8 100644 --- a/drivers/media/i2c/imx214.c +++ b/drivers/media/i2c/imx214.c @@ -1027,7 +1027,7 @@ static int imx214_probe(struct i2c_client *client) */ imx214->exposure = v4l2_ctrl_new_std(&imx214->ctrls, &imx214_ctrl_ops, V4L2_CID_EXPOSURE, - 0, 0xffff, 1, 0x0c70); + 0, 3184, 1, 0x0c70); ret = imx214->ctrls.error; if (ret) {