]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: adv7180: Add support for the test patterns
authorFabio Estevam <festevam@gmail.com>
Wed, 27 Apr 2022 13:50:25 +0000 (15:50 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:12:23 +0000 (09:12 +0200)
commit260bb524fdbfb9ad48d7d1e41bda8725ce791e3d
treed1959151182002f63debe0c093044d909c484b42
parent643165189ddf570061403e1b44f6e1c9229d5a32
media: i2c: adv7180: Add support for the test patterns

ADV7180 has a built-in mechanism to generate some video patterns,
which is very useful for debug/bring-up activities.

Add support for it.

The test_pattern parameter can be one of the following values:

0: "Single color"
1: "Color bars"
2: "Luma ramp"
3: "Boundary box"
4: "Disable"

Tested on a imx6q board with an ADV7280.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/adv7180.c