Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: i2c: imx334: add support for additional test patterns

Added support for three additional test patterns in the
IMX334 driver: Black and Grey Bars, Black Color, and White Color.

Signed-off-by: Shravan Chippa <shravan.chippa@microchip.com>
[Sakari Ailus: Fix hexadecimal value.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Shravan Chippa and committed by
Hans Verkuil
6b4d0531 fda55673

+9
+9
drivers/media/i2c/imx334.c
··· 118 118 #define IMX334_REG_TP CCI_REG8(0x329e) 119 119 #define IMX334_TP_COLOR_HBARS 0xa 120 120 #define IMX334_TP_COLOR_VBARS 0xb 121 + #define IMX334_TP_BLACK 0x0 122 + #define IMX334_TP_WHITE 0x1 123 + #define IMX334_TP_BLACK_GREY 0xc 121 124 122 125 #define IMX334_TPG_EN_DOUT CCI_REG8(0x329c) 123 126 #define IMX334_TP_ENABLE 0x1 ··· 401 398 "Disabled", 402 399 "Vertical Color Bars", 403 400 "Horizontal Color Bars", 401 + "Black and Grey Bars", 402 + "Black Color", 403 + "White Color", 404 404 }; 405 405 406 406 static const int imx334_test_pattern_val[] = { 407 407 IMX334_TP_DISABLE, 408 408 IMX334_TP_COLOR_HBARS, 409 409 IMX334_TP_COLOR_VBARS, 410 + IMX334_TP_BLACK_GREY, 411 + IMX334_TP_BLACK, 412 + IMX334_TP_WHITE, 410 413 }; 411 414 412 415 static const struct cci_reg_sequence raw10_framefmt_regs[] = {