diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2017-11-06 05:20:01 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-12-08 10:44:55 -0500 |
commit | 52cf1d964e4ca89ed80f97a8451245c9bb13a63d (patch) | |
tree | d3db867af41176b73df079df2078f0418c1ba8f7 /drivers/media/platform/vimc/vimc-common.h | |
parent | e2a067048d6263613cee8c5c36aa6f2d755ef425 (diff) |
media: vimc: add test_pattern and h/vflip controls to the sensor
Add support for the test_pattern control and the h/vflip controls.
This makes it possible to switch to more interesting test patterns and to
test control handling in v4l-subdevs.
There are more tpg-related controls that can be added, but this is a good
start.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
[hans.verkuil@cisco.com: fix small whitespace checkpatch warning]
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-common.h')
-rw-r--r-- | drivers/media/platform/vimc/vimc-common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/platform/vimc/vimc-common.h b/drivers/media/platform/vimc/vimc-common.h index dca528a316e7..2e9981b18166 100644 --- a/drivers/media/platform/vimc/vimc-common.h +++ b/drivers/media/platform/vimc/vimc-common.h | |||
@@ -22,6 +22,11 @@ | |||
22 | #include <media/media-device.h> | 22 | #include <media/media-device.h> |
23 | #include <media/v4l2-device.h> | 23 | #include <media/v4l2-device.h> |
24 | 24 | ||
25 | /* VIMC-specific controls */ | ||
26 | #define VIMC_CID_VIMC_BASE (0x00f00000 | 0xf000) | ||
27 | #define VIMC_CID_VIMC_CLASS (0x00f00000 | 1) | ||
28 | #define VIMC_CID_TEST_PATTERN (VIMC_CID_VIMC_BASE + 0) | ||
29 | |||
25 | #define VIMC_FRAME_MAX_WIDTH 4096 | 30 | #define VIMC_FRAME_MAX_WIDTH 4096 |
26 | #define VIMC_FRAME_MAX_HEIGHT 2160 | 31 | #define VIMC_FRAME_MAX_HEIGHT 2160 |
27 | #define VIMC_FRAME_MIN_WIDTH 16 | 32 | #define VIMC_FRAME_MIN_WIDTH 16 |