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)
commita76c86f4274e224ea8e85f284d0371442f78b13a
treed1959151182002f63debe0c093044d909c484b42
parent7a12903182c8c0e3ba61eb9c5bdf160f337686c5
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