[PATCH 04/15] media: microchip-isc: enable black level correction on SAMA7G5
From: Balakrishnan Sambath
Date: Wed Dec 02 2026 - 02:16:29 EST
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 <balamanikandan.gunasundar@xxxxxxxxxxxxx>
Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@xxxxxxxxxxxxx>
Signed-off-by: Balakrishnan Sambath <balakrishnan.s@xxxxxxxxxxxxx>
---
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