Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1085135lqp; Sun, 14 Apr 2024 13:41:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTKziOmw3fpf+0+oEYPNC4uE+TnfssMtarg2nEjrDn9WyBkx5FKlB+h4zg5MoJrwSWhO4Qj0c6dG+jC/PSf9SJ3+5CLaFM4irtHW31xg== X-Google-Smtp-Source: AGHT+IHq2BJyux7467kQRVQKiyOklynwY+1F+Td43QDzvhrRQ/0FxNaXoKmTFVUrw6HfmuecgrmL X-Received: by 2002:ad4:408c:0:b0:69b:3a0a:efd2 with SMTP id l12-20020ad4408c000000b0069b3a0aefd2mr7050901qvp.23.1713127288589; Sun, 14 Apr 2024 13:41:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713127288; cv=pass; d=google.com; s=arc-20160816; b=KTH+79KfSS06y8LmQzm/h3cw+tu9pCtbQMWflPviFeUsTob16oBf9VaGcNMNHkY5RA a/wcxm79Kku/h6IMzmthkvayC4sWBJnxoS3rEcJOFK7Lj+PxhnG+pPv6zl4AaUIpZj29 9slRtv40i9xAt8nXYSePMaecpxMmij/AOm2GXiGleC1koTBxy+HrvbdEmyh7C22XfVxf h1nM898/yUg832S6C09vEM37fx1MHtNQRcOUSCuWlGD52ZXIftrJDSkQtsOwr1Jbiiqy g7SSJufOuhSRaoau0pYHaxS0udXnR5v6zii6tt9D2zzOIJ640RnCaVbHil3lWkLENt9Q AhvQ== 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=DCgAgHlEMGBMjcN16C1bbheZthQRfCGTfl1ll6guAKc=; fh=ng0FUFwPgHHqIHtWcUlLUSBs0e7fHIUGeuUhfcQSRgA=; b=Fc0QLenuA9pssTppkDAKTh+lsRyn3B40vkWTMY7I2sCwhofZJ2aXHMzmcb+Szh8jDo afHAkzB1auUSfO25vl4+A5IPhfXR6Da250hXeW7iQNPnK5+twHiMInnjbXtl8WbtoIzT cbkh2S6eDWZOqsWuhKlrW9UM37VBooBUKYZclYjt8hkYUa/jz7rdZi8caCOvjYu9ajli yOmuMSV88k7jJ05EdzzL1jQ29S8yEXyX+6NUlwiCIknTgPZFSyWnqtTUogMuCffOiTR5 RCn/ftHybpBRuylaUPFcM4YKau1GpAoTY0xKO2MgUzVfCaMV53Xujs9V5uIeMziTerVb i9vQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=jGzfHCb2; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-144386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144386-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m22-20020ae9e716000000b0078a4137f778si8383325qka.227.2024.04.14.13.41.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 13:41:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=jGzfHCb2; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-144386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144386-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 53F761C20CDF for ; Sun, 14 Apr 2024 20:41:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DB54137C34; Sun, 14 Apr 2024 20:40: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="jGzfHCb2" Received: from mail-108-mta199.mxroute.com (mail-108-mta199.mxroute.com [136.175.108.199]) (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 00779137740 for ; Sun, 14 Apr 2024 20:40:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713127247; cv=none; b=LYJQjxQ3Wn1AHRSPw5rxxbKAKbc6RUD/pRyrhi5BlM34kwJ2d+sIBnzGP6ex2i4FQmwprwvB4EwozbiOY3Ir7RqsXoDNu7KrIaq6qjILlYu5GLB8AK/8sW6K+h4+g/TnZvOdtE5UPA8hL5N2n+tRuxbzEM2Yrg2yioaq0O7BuNY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713127247; c=relaxed/simple; bh=g6reCIRH0/JcMBOnGIeqjTP1oTROyutPaPbhmdHf1Dg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ObfK/6iaarZ0KPHnLpcJmHhWMIXc9mblhQdGyJ4h3oIPXjV+T//QncZfZPM6q2CInrKe5tAJerRPuhcPNDhqI9bUYzE+YudEdJgTatwZiT01y4SMbsQQS2/vip2JFbXJyOnycAXHGPpN380RNxAx8QIFLQsQA0d1w+3N38+2Qq0= 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=jGzfHCb2; arc=none smtp.client-ip=136.175.108.199 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-mta199.mxroute.com (ZoneMTA) with ESMTPSA id 18ede5245850003bea.010 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 14 Apr 2024 20:35:17 +0000 X-Zone-Loop: 8dd9ff4719298067131cfb30c14451ed6843a2f7a5ab 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=DCgAgHlEMGBMjcN16C1bbheZthQRfCGTfl1ll6guAKc=; b=jGzfHCb2Gxx+SYTDmCcwvkYkwW 95xJLK3AyV6eWOafIpUxG8243dqBAoBJ7Ri+vFlveBn0Paq4DZcS78+cPwd0JTnbyhx46NsYrQ6ok /9yYQX91caNjPuyszl27D+Ife5VsS25GkrIFZXWf2X7Rz8R5FoqaU0lHs6WGYk8hIKs6Cze6AJ2XJ wkX2HAuhtARFR44+7Fqy1Jo4jnot6YTh/57hsIV5AYfEpcBZneEGzC+EM5D7cC+UnYTj9U5Q/ECkX Hm3ABoLaJH6ljsCnJ317nVGKe6Vod8wbSPDS4be7iGw4Qq6xMlb8K6IxN+4+PTRDKr9R2cnphjOUY 6IP8+CWQ==; 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 v4 03/25] media: i2c: imx258: Disable digital cropping on binned modes Date: Sun, 14 Apr 2024 14:34:41 -0600 Message-ID: <20240414203503.18402-4-git@luigi311.com> In-Reply-To: <20240414203503.18402-1-git@luigi311.com> References: <20240414203503.18402-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 Reviewed-by: Pavel Machek --- 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.44.0