From 7899b9964c02d73c754ec997536f052ddf0bccdc Mon Sep 17 00:00:00 2001 From: ZwX1616 Date: Thu, 31 Oct 2024 16:00:09 -0700 Subject: [PATCH] IFE: fix bls offset scaling (#33905) 14u Co-authored-by: Comma Device --- system/camerad/cameras/ife.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/camerad/cameras/ife.h b/system/camerad/cameras/ife.h index 1616196a3f..a232000100 100644 --- a/system/camerad/cameras/ife.h +++ b/system/camerad/cameras/ife.h @@ -67,7 +67,7 @@ int build_update(uint8_t *dst, const SensorInfo *s, std::vector &patch // black level scale + offset dst += write_cont(dst, 0x6b0, { - ((uint32_t)(1 << 11) << 0xf) | (s->black_level << 0), + ((uint32_t)(1 << 11) << 0xf) | (s->black_level << (14 - s->bits_per_pixel)), 0x0, 0x0, });