From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=68.232.153.233 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796195779; b=CpWhO5o0UrRSjJbAprvHY8zpeHP2GBIjd0aX94repOnlmmhKcdKwIKu9/d7gIofENi/S +9nehDpPqn9SbHwUT8avcVstT9U40+G60eTYkRqwjemygK9oqQR45NE1mogB5uGXn0xUB f5dmiGPQlmIq3PTN5fUgDuE9GnVqm47kotfR+amf3AxwpVdpdKCfFljBcdVS2+PeZggTo ny2mn1RVT4xxo8y2I4wratzw965kXMbgngJsErZyC9ELept2wXaWPbiO2yO+wNEFHBZo9 QIuPiCbDnmEYZYj9/8PSrxK065kBMVzCYjfKZOSJL2Nf5WbcZe9fVg8OEGMpnM1JSkA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796195779; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-Amp-Result:Received:Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-ID:References:In-Reply-To:To:CC:X-Mailer; bh=5XKZ99TnRQChndclCGmwqjlKf4BHMeGJleF9uQdZ0Zc=; b=WZAlTeEQjQ/2LOqcUIUndHNyXCm70n0RMnnY00xWswvEB6N7PNsi3scYSRThcf901K/o C2pQdPwqB1n30zue3QoPiqfXGvIDwy1xM6HjDn9NMiPS9mcZ3LFYTr79B75/01VOpRvLM 57iT70PqxH9Cq7RB5c5kHpvEjAe2i6WufgM1RZbbbllHCnfBGt/ti6O0jH1YwPJN+mTUY kBGhEwOd5totEpsiTfE2Aky5rJAdoacNoc8fkDGL+3hcX28rRhM2XObnrJ0fYq1faKQZP RhUpyBK6XDLLsQulffcFp1PrW1QGumElIX1eu5cwVFBC0HX4FmFdsuiVXmKpY0S3mXA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=lr9AbGhc; arc=none smtp.remote-ip=68.232.153.233 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B27A606A683 for ; Wed, 2 Dec 2026 07:16:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6B27A606A683 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=lr9AbGhc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1796195779; x=1827731779; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=N/q5x0aKrvVIvOZfq8KPWGEVLIuGbS0EraFpHHj/vsM=; b=lr9AbGhcfwFUBjjHw51xN1pmKJDMDnpVRvRB3oBlKYvYEIYhC3SccPKv vCPFrFPRrALzm4aQchSAvbIkZSCR4xghFAwtnAmYyArLSpt0hM2Nyl5jS Xo7441PotyfmRnuQ1pVehD+19WlXok94mbRXjZ6hDaAFzpp83GJyozpvM JspnGabMK3LBsSBfGRN1u5U8fyJK5v4etcW7jQkRU6M5xzvHtzJgVFap8 iok+xI2rTvQjWPYRi/kNBBvxSX7Ddg55pa7Ciedjcy7g6wC+eHDPItsXh tmMgorYZbXu4UNN/9rONn8g/3xL7JPqo/g3K0QVNBawd822JUktw0jwaZ A==; X-CSE-ConnectionGUID: SOwM7YSXQg6EPjwyYUe8xg== X-CSE-MsgGUID: 24JI5I6hQ2eycUD9+z/FbQ== X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="78213264" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 00:16:18 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.87.71) by chn-vm-ex3.mchp-main.com (10.10.87.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.57; Wed, 2 Dec 2026 00:16:18 -0700 Received: from [127.0.0.1] (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Wed, 2 Dec 2026 00:16:16 -0700 From: Balakrishnan Sambath Date: Wed, 2 Dec 2026 12:46:10 +0530 Subject: [PATCH 04/15] media: microchip-isc: enable black level correction on SAMA7G5 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-isc-series-v1-v1-4-4e2f17c0271c@microchip.com> References: <20261202-isc-series-v1-v1-0-4e2f17c0271c@microchip.com> In-Reply-To: <20261202-isc-series-v1-v1-0-4e2f17c0271c@microchip.com> To: CC: , Balamanikandan Gunasundar , Balakrishnan Sambath X-Mailer: b4 0.14.3 isc_try_configure_pipeline() selects DPC_BLCENABLE for raw Bayer input, but ISC_SAMA7G5_PIPELINE does not include it, so isc_sama7g5_adapt_pipeline() always masks it off and black level correction never runs. Add DPC_BLCENABLE to the mask. Raw capture now has the black level subtracted. The offset programmed in ISC_DPC_CFG.BLOFF is 16 at 8 bits, 64 at 10 bits and 256 at 12 bits. Co-developed-by: Balamanikandan Gunasundar Signed-off-by: Balamanikandan Gunasundar Signed-off-by: Balakrishnan Sambath --- drivers/media/platform/microchip/microchip-sama7g5-isc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/microchip/microchip-sama7g5-isc.c b/drivers/media/platform/microchip/microchip-sama7g5-isc.c index 1a69e77fac2b..6950509372a5 100644 --- a/drivers/media/platform/microchip/microchip-sama7g5-isc.c +++ b/drivers/media/platform/microchip/microchip-sama7g5-isc.c @@ -70,8 +70,8 @@ static const struct isc_xisc_data isc_sam9x7_data = { }; #define ISC_SAMA7G5_PIPELINE \ - (WB_ENABLE | CFA_ENABLE | CC_ENABLE | GAM_ENABLES | CSC_ENABLE | \ - CBC_ENABLE | SUB422_ENABLE | SUB420_ENABLE) + (DPC_BLCENABLE | WB_ENABLE | CFA_ENABLE | CC_ENABLE | GAM_ENABLES | \ + CSC_ENABLE | CBC_ENABLE | SUB422_ENABLE | SUB420_ENABLE) /* This is a list of the formats that the ISC can *output* */ static const struct isc_format sama7g5_controller_formats[] = { -- 2.34.1