Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2775247lqz; Wed, 3 Apr 2024 08:16:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfkYbM9lhLFbKJ7I+c4OqWALX62mton6iDsrO1tnQfp5tpmFbFk70ri+gW0nnnnqL0ielg+PSI3zN+AdLISMmGc/VraVgNU3WhNqDtRQ== X-Google-Smtp-Source: AGHT+IHHJqxmqH7OYxja7I37zvdQZreuvvH8PtkNgI3EJHV9XJS3OTMEW4+t/qzHIHUi8k5YpFxU X-Received: by 2002:a17:907:c1f:b0:a4e:d43:dc4b with SMTP id ga31-20020a1709070c1f00b00a4e0d43dc4bmr14024465ejc.58.1712157416909; Wed, 03 Apr 2024 08:16:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712157416; cv=pass; d=google.com; s=arc-20160816; b=PKPr+/Rltogq1z7M0UUTZl60a2gKII2KFNDSBLaR43TklqOWt+IaP4rzuG0VgRNsju dkoBAOk5iO/MmwgII3VXFAwdbXi9Nwlwt+RlR5HwNEyeKOcFnaElUwZwF8t15R+EmoYM elfhW2fOLbOlTHy5VFvsV+sMcVsq0poxC5NRL98jOjKhoqZ4j86A50+X4E8ify1mDfK/ PLLdhfpeHny5zBqGGZQSNMMybJ9AhjlyKMEk6jz5iGyyU3Uoz+gZA2pX/PwcQxOc+5tK 6xlDlPX0KR6HDlk1mScTjlg0G3jeSFNFUKOfZVGYfpUr2dRe9JK+vX4LzcM+6xPOpvRB iZfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=DI8jVpDIHtDq0iyliDqyXlGj2OTV9OLOlBmhx287KBo=; fh=ng0FUFwPgHHqIHtWcUlLUSBs0e7fHIUGeuUhfcQSRgA=; b=J+/CCzm8zKzz+HodE4JEXV4MgcoyJGoHSBtqBmm7AkXc6oV7gOB1gfF7aK9/wVN59K SNkw6x4NkOIYE7RGFC0UBZh9RmylQ5i177Tms26UcbmPiLouF+apwnXwhCjeV9vIb3Tk ovMuNcaolWA5RT5yVrncz9LeNSApAyLDl7GG5k3rvx9pyWJEgXVD+f2RkttElzLKu9ii 4H+68fmNDVH/ovRdAqrjPT6keVs5cBJ22rkpagcZUWAIpaieLFu6cq5U6rB2ixch0xwp C5OO7L6w0Fq+OpgSiZg6BSsh2Nj4u7vcjg6AAp9JlxhUqQ21+yci102USFScUgt9d/91 B0EA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b="iR14Ucu/"; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-130062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130062-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id si9-20020a170906cec900b00a46cc89b5ecsi6691278ejb.160.2024.04.03.08.16.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 08:16:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b="iR14Ucu/"; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-130062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130062-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 59C771F28334 for ; Wed, 3 Apr 2024 15:15:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93D8E14BFB7; Wed, 3 Apr 2024 15:12:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b="iR14Ucu/" Received: from mail-108-mta221.mxroute.com (mail-108-mta221.mxroute.com [136.175.108.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42E7C14A629 for ; Wed, 3 Apr 2024 15:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.221 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712157167; cv=none; b=LnnHzx7zMQW3GQQnQjKmuveEPu/s6pvbfZMm8OAAO5wMXo/f2ZQnWdFoFcpCXEMN2lccbtn5Woa7b/8OLOKj5sQ6lBH12GbM5VccXH9kkszZwjq1CIDXNFyCMrcGodGNhNJBck/ZyzVlLINQ40kxtLhbJ3gPQ9FsUnDCOUaMAs0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712157167; c=relaxed/simple; bh=v0sCmJBOD6XpjppCe6NIu80dHEr87sRx5uo7mwRw3LE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IXe06q5V57gHc9FcwvU9MqkSHHMJk4h9QMj9i5ptwsxyx1vjQgO97stfXOUUln+IcgtfbZ7zu5MKtqfXUOJY96q+zT/qDhyS4n4HPRZWPidY0y/juRPB9TqmfGwtyO5fRYmKysvRmIrZPVCdRnKUuTUvpsYPgifYqJbDKlM1iAQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com; spf=pass smtp.mailfrom=luigi311.com; dkim=pass (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b=iR14Ucu/; arc=none smtp.client-ip=136.175.108.221 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=luigi311.com Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta221.mxroute.com (ZoneMTA) with ESMTPSA id 18ea4801b1a0003bea.010 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 03 Apr 2024 15:07:22 +0000 X-Zone-Loop: 4fb7ab7e7e5c4c1678a03ec05ee096cf97cce5aabf64 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=luigi311.com; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DI8jVpDIHtDq0iyliDqyXlGj2OTV9OLOlBmhx287KBo=; b=iR14Ucu/p6jeSJovKRYcP0uGQT vPDqb2nKUJMOuTZ4iPONZRPaBp+SEUptD2Lht4AmB9Hogi2KLlsJYlwKMiu66k4mvRnQ0pIG0HMHv FR6CU89PoGTyv1HLPvIHrGm47Y2oovSD48PxRVqbcmgualE619mbugm7DLjt92ilWgkzB+FF/nEjS ZIQ0VBkf0qyioHkgGQzicZt3cx+858oo/8FXB10SupjHufDEA43TzIk9VVfF9a4p81+x6fUybmUNU RHCpVJ7xljj0IMmII5mECl/jLYXkscyz3EROpRFwxu3Lt+OWMnNluM4S0XnIhrT9J9BHuZo5UZY7/ j1duDBKw==; From: git@luigi311.com To: linux-media@vger.kernel.org Cc: dave.stevenson@raspberrypi.com, jacopo.mondi@ideasonboard.com, mchehab@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, sakari.ailus@linux.intel.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pavel@ucw.cz, phone-devel@vger.kernel.org, Luis Garcia Subject: [PATCH v3 03/25] media: i2c: imx258: Disable digital cropping on binned modes Date: Wed, 3 Apr 2024 09:03:32 -0600 Message-ID: <20240403150355.189229-4-git@luigi311.com> In-Reply-To: <20240403150355.189229-1-git@luigi311.com> References: <20240403150355.189229-1-git@luigi311.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: personal@luigi311.com From: Dave Stevenson The binned modes set DIG_CROP_X_OFFSET and DIG_CROP_IMAGE_WIDTH to less than the full image, even though the image being captured is meant to be a scaled version of the full array size. Reduce X_OFFSET to 0, and increase IMAGE_WIDTH to the full array. Signed-off-by: Dave Stevenson Signed-off-by: Luis Garcia --- drivers/media/i2c/imx258.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/imx258.c b/drivers/media/i2c/imx258.c index 4a7048d834c6..0ae4371940ca 100644 --- a/drivers/media/i2c/imx258.c +++ b/drivers/media/i2c/imx258.c @@ -340,11 +340,11 @@ static const struct imx258_reg mode_2104_1560_regs[] = { { 0x0404, 0x00 }, { 0x0405, 0x20 }, { 0x0408, 0x00 }, - { 0x0409, 0x02 }, + { 0x0409, 0x00 }, { 0x040A, 0x00 }, { 0x040B, 0x00 }, { 0x040C, 0x10 }, - { 0x040D, 0x6A }, + { 0x040D, 0x70 }, { 0x040E, 0x06 }, { 0x040F, 0x18 }, { 0x3038, 0x00 }, @@ -459,11 +459,11 @@ static const struct imx258_reg mode_1048_780_regs[] = { { 0x0404, 0x00 }, { 0x0405, 0x40 }, { 0x0408, 0x00 }, - { 0x0409, 0x06 }, + { 0x0409, 0x00 }, { 0x040A, 0x00 }, { 0x040B, 0x00 }, { 0x040C, 0x10 }, - { 0x040D, 0x64 }, + { 0x040D, 0x70 }, { 0x040E, 0x03 }, { 0x040F, 0x0C }, { 0x3038, 0x00 }, -- 2.42.0