[PATCH] media: microchip-isc: fix default gamma row for SAMA7G5

From: Balakrishnan Sambath

Date: Wed Dec 02 2026 - 02:02:59 EST


The default row of isc_sama7g5_gamma_table is labelled 1/2.2 but its
64 words encode the 1/2.4 curve. The output is brighter than the label
says. Regenerate the row for 1/2.2 with the same bipartite encoding,
so the default matches its label.

Fixes: 91b4e487b0c6 ("media: microchip: add ISC driver as Microchip ISC")
Signed-off-by: Balakrishnan Sambath <balakrishnan.s@xxxxxxxxxxxxx>
---
.../platform/microchip/microchip-sama7g5-isc.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/media/platform/microchip/microchip-sama7g5-isc.c b/drivers/media/platform/microchip/microchip-sama7g5-isc.c
index 9e78ea07b013..f5968e3b388d 100644
--- a/drivers/media/platform/microchip/microchip-sama7g5-isc.c
+++ b/drivers/media/platform/microchip/microchip-sama7g5-isc.c
@@ -321,17 +321,17 @@ static void isc_sama7g5_adapt_pipeline(struct isc_device *isc)
static const u32 isc_sama7g5_gamma_table[][GAMMA_ENTRIES] = {
/* index 0 --> gamma bipartite */
{
- 0x980, 0x4c0320, 0x650260, 0x7801e0, 0x8701a0, 0x940180,
- 0xa00160, 0xab0120, 0xb40120, 0xbd0120, 0xc60100, 0xce0100,
- 0xd600e0, 0xdd00e0, 0xe400e0, 0xeb00c0, 0xf100c0, 0xf700c0,
- 0xfd00c0, 0x10300a0, 0x10800c0, 0x10e00a0, 0x11300a0, 0x11800a0,
- 0x11d00a0, 0x12200a0, 0x12700a0, 0x12c0080, 0x13000a0, 0x1350080,
- 0x13900a0, 0x13e0080, 0x1420076, 0x17d0062, 0x1ae0054, 0x1d8004a,
- 0x1fd0044, 0x21f003e, 0x23e003a, 0x25b0036, 0x2760032, 0x28f0030,
- 0x2a7002e, 0x2be002c, 0x2d4002c, 0x2ea0028, 0x2fe0028, 0x3120026,
- 0x3250024, 0x3370024, 0x3490022, 0x35a0022, 0x36b0020, 0x37b0020,
- 0x38b0020, 0x39b001e, 0x3aa001e, 0x3b9001c, 0x3c7001c, 0x3d5001c,
- 0x3e3001c, 0x3f1001c, 0x3ff001a, 0x40c001a },
+ 0x780, 0x3c02c0, 0x520200, 0x6201c0, 0x700180, 0x7c0160,
+ 0x870140, 0x910120, 0x9a0100, 0xa20100, 0xaa0100, 0xb200e0,
+ 0xb900e0, 0xc000e0, 0xc700c0, 0xcd00c0, 0xd300c0, 0xd900c0,
+ 0xdf00a0, 0xe400c0, 0xea00a0, 0xef00a0, 0xf400a0, 0xf900a0,
+ 0xfe00a0, 0x10300a0, 0x1080080, 0x10c00a0, 0x1110080, 0x1150080,
+ 0x1190080, 0x11d00a0, 0x1220074, 0x15c0062, 0x18d0056, 0x1b8004c,
+ 0x1de0044, 0x2000040, 0x220003c, 0x23e0038, 0x25a0036, 0x2750034,
+ 0x28f0030, 0x2a7002e, 0x2be002e, 0x2d5002a, 0x2ea002a, 0x2ff0028,
+ 0x3130028, 0x3270026, 0x33a0024, 0x34c0024, 0x35e0024, 0x3700022,
+ 0x3810022, 0x3920020, 0x3a20022, 0x3b3001e, 0x3c20020, 0x3d2001e,
+ 0x3e1001e, 0x3f0001e, 0x3ff001c, 0x40d001c },
};

static int xisc_parse_dt(struct device *dev, struct isc_device *isc)

---
base-commit: 0b19af378cd5004bdf6bfaf7b3809fbbb0711a9b
change-id: 20261202-isc-gamma-fix-v1-3b1868e615f8

Best regards,
--
Balakrishnan Sambath <balakrishnan.s@xxxxxxxxxxxxx>