From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=168.119.41.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796200812; b=LNWuFEpq2IaXVs98aoIst0g8+jESveZhLOxBeUnpZsYq6PfVj0MkIvBZZ6Y+r1PubPc7 O6oYxV1BuOINvkG1WtvFO6TTPlcWy4pZJfvRhGmbYAWlrC9q1+jDTEvZ/NLRLRL8m5wlG yONKmEJMRhmyDP9hN+bLPdLY/55CR8jxLyYtoREI8G9tv+tKmJGTHoBPydfauf9/ItiXE I+FiwCoTVYfbOtei+INctLaG5SAd4IR75x2TplCooNafbf0U9PFMwZVO2E2qC/Xp0O+0c YI2yN2P0/iE6NNspZDBUHVqcnw0pB/uFArvHXw6yvPLU410Ft7Nk4mMUg6YH3oAIJOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796200812; h=DMARC-Filter:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Spam-Score:X-Spam-Bar:X-Spam-Report; bh=Dkg5VpqQeT8o3NxJqxmoZyDOmhY5vvbWyXKM9Sve7AQ=; b=Ey7cG1MEzJjr8LJCdHPCGmq64kAyXv1R8cvQT1Rm8pqEWk+F1KUJY3Hrwyb2+C1/dHX+ V+tAh0kBdqNUifbwaZluWCZjUSh3GBlXNLIcIy8t2GdMjvXlZWlwq4nqN6/A6ulLlm86+ 3zjab5NYBBV4nAHj9u8G7hgSdvfm8Euq/DXAANA6vF1pbv+odf+MFVw4+DLMMDr0taAFo L3Io+3Htk2MFW7gskdECtAd5VBNr5a6NQn5WkeFxnbL2YS3/G//USaOjShQjnCYLsgh+x r8phOyukdCDAz7qyA5J/rrm+eAiRuf01LzkfoNUrL1nJfqEnQFRPj5QhocgiEXXEzvA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=emfend.at; spf=pass smtp.mailfrom=emfend.at; dkim=pass header.d=emfend.at header.i=@emfend.at header.a=rsa-sha256 header.s=mail header.b="e3yIi/Yt"; arc=none smtp.remote-ip=168.119.41.54 Received: from lx20.hoststar.hosting (lx20.hoststar.hosting [168.119.41.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 798D7606A32A; Wed, 2 Dec 2026 08:40:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 798D7606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=emfend.at Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=emfend.at Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=emfend.at header.i=@emfend.at header.a=rsa-sha256 header.s=mail header.b=e3yIi/Yt DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=emfend.at; s=mail; h=Cc:To:In-Reply-To:References:Message-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:Sender:Reply-To: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=Dkg5VpqQeT8o3NxJqxmoZyDOmhY5vvbWyXKM9Sve7AQ=; b=e3yIi/YtIbU7fi8naymk5NYj6j ggiP2Indz2hmv8gR9hgnWFop/wZYI546AP0aottNyxFssy/rdALRcutyMEGvFeQM72wsfQSQfmG4X qug8EK3Fa7L8Q/nUXSEtcwuQCu9RKUM33pVGzjHXT5leM4BxVhWwSHJX7k6zXjs2PHzA=; Received: from 194-208-226-106.tele.net ([194.208.226.106]:49300 helo=[127.0.1.1]) by lx20.hoststar.hosting with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1xYfsh-000vbM-P6; Wed, 02 Dec 2026 09:40:04 +0100 From: Matthias Fend Date: Wed, 02 Dec 2026 09:40:02 +0100 Subject: [PATCH 3/3] media: i2c: ov08d10: fix analogue gain step X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261202-ov08d10-ctrl-fixes-v1-3-778dc83babdd@emfend.at> References: <20261202-ov08d10-ctrl-fixes-v1-0-778dc83babdd@emfend.at> In-Reply-To: <20261202-ov08d10-ctrl-fixes-v1-0-778dc83babdd@emfend.at> To: Sakari Ailus , Jimmy Su , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Fend X-Mailer: b4 0.14.2 X-Spam-Score: -1.0 X-Spam-Bar: - X-Spam-Report: Spam detection software, running on the system "lx20.hoststar.hosting", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Previously, the vblank value was written unchanged to the dummy line registers. But according to the datasheet, these registers are in units of half lines and are added to the minimum VTS of the mode. [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address 0.0 KAM_DMARC_STATUS Test Rule for DKIM or SPF Failure with Strict Alignment (older systems) 0.0 Local_hs_NotFromHoststar Sender is NOT hoststar.(ch|at|com) 0.0 Local_hs_NotToHoststar Recipient is NOT hoststar.(ch|at|com) The gain value is down-shifted by 3 when written to the gain register, so the effective granularity is 8. Respect this by reporting a step size of 8 instead of 1 and adjust the maximum value accordingly. Fixes: 7be91e02ed57 ("media: i2c: Add ov08d10 camera sensor driver") Signed-off-by: Matthias Fend --- drivers/media/i2c/ov08d10.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/ov08d10.c b/drivers/media/i2c/ov08d10.c index 4a6ec91d0b9f60501882a4458ca15d3ef90df996..d2213719909ad0c660bf9de8cbaf122958d56e61 100644 --- a/drivers/media/i2c/ov08d10.c +++ b/drivers/media/i2c/ov08d10.c @@ -45,8 +45,8 @@ /* Analog gain controls from sensor */ #define OV08D10_REG_ANALOG_GAIN 0x24 #define OV08D10_ANAL_GAIN_MIN 128 -#define OV08D10_ANAL_GAIN_MAX 2047 -#define OV08D10_ANAL_GAIN_STEP 1 +#define OV08D10_ANAL_GAIN_MAX 2040 +#define OV08D10_ANAL_GAIN_STEP 8 /* Digital gain controls from sensor */ #define OV08D10_REG_MWB_DGAIN_C 0x21 -- 2.34.1