[PATCH 15/18] media: microchip-isc: decouple histogram cycling from AWB mode
Balamanikandan Gunasundar
balamanikandan.gunasundar at microchip.com
Thu Oct 9 08:52:48 PDT 2025
From: Balakrishnan Sambath <balakrishnan.s at microchip.com>
Fix histogram cycling stopping after first channel when AWB is disabled.
Now the histogram cycling will continue even when AWB is disabled,
enabling hardware histogram data export to userspace.
Signed-off-by: Balakrishnan Sambath <balakrishnan.s at microchip.com>
---
drivers/media/platform/microchip/microchip-isc-base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/microchip/microchip-isc-base.c b/drivers/media/platform/microchip/microchip-isc-base.c
index e9f14de7ae32..cafd05244db2 100644
--- a/drivers/media/platform/microchip/microchip-isc-base.c
+++ b/drivers/media/platform/microchip/microchip-isc-base.c
@@ -1509,7 +1509,7 @@ static void isc_awb_work(struct work_struct *w)
mutex_unlock(&isc->awb_mutex);
/* if awb has been disabled, we don't need to start another histogram */
- if (ctrls->awb)
+ if (ctrls->hist_stat == HIST_ENABLED)
regmap_write(regmap, ISC_CTRLEN, ISC_CTRL_HISREQ);
pm_runtime_put_sync(isc->dev);
--
2.34.1
More information about the linux-arm-kernel
mailing list