aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/omap3isp/isppreview.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-04-05 11:38:23 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-08 12:58:27 -0400
commit3108e0261111412e9c459124bc07b34fc0d28f32 (patch)
tree199d98fd4a5208b52d3df11f9fb36189ee914cb0 /drivers/media/video/omap3isp/isppreview.h
parent9c3444c1b2127ab037a10785b671aec6f0713a4a (diff)
[media] omap3isp: preview: Merge configuration and feature bits
The preview engine parameters are referenced by a value suitable for being used in a bitmask. Two macros named OMAP3ISP_PREV_* and PREV_* are declared for each parameter and are used interchangeably. Remove the private macro. Replace the configuration bit field in the parameter update attributes structure with a boolean that indicates whether the parameter can be updated through the preview engine configuration ioctl. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/omap3isp/isppreview.h')
-rw-r--r--drivers/media/video/omap3isp/isppreview.h26
1 files changed, 4 insertions, 22 deletions
diff --git a/drivers/media/video/omap3isp/isppreview.h b/drivers/media/video/omap3isp/isppreview.h
index b7f979a18dab..a0d28070a853 100644
--- a/drivers/media/video/omap3isp/isppreview.h
+++ b/drivers/media/video/omap3isp/isppreview.h
@@ -45,28 +45,10 @@
45#define ISPPRV_CONTRAST_HIGH 0xFF 45#define ISPPRV_CONTRAST_HIGH 0xFF
46#define ISPPRV_CONTRAST_UNITS 0x1 46#define ISPPRV_CONTRAST_UNITS 0x1
47 47
48/* Features list */ 48/* Additional features not listed in linux/omap3isp.h */
49#define PREV_LUMA_ENHANCE OMAP3ISP_PREV_LUMAENH 49#define OMAP3ISP_PREV_CONTRAST (1 << 17)
50#define PREV_INVERSE_ALAW OMAP3ISP_PREV_INVALAW 50#define OMAP3ISP_PREV_BRIGHTNESS (1 << 18)
51#define PREV_HORZ_MEDIAN_FILTER OMAP3ISP_PREV_HRZ_MED 51#define OMAP3ISP_PREV_FEATURES_END (1 << 19)
52#define PREV_CFA OMAP3ISP_PREV_CFA
53#define PREV_CHROMA_SUPPRESS OMAP3ISP_PREV_CHROMA_SUPP
54#define PREV_WB OMAP3ISP_PREV_WB
55#define PREV_BLKADJ OMAP3ISP_PREV_BLKADJ
56#define PREV_RGB2RGB OMAP3ISP_PREV_RGB2RGB
57#define PREV_COLOR_CONV OMAP3ISP_PREV_COLOR_CONV
58#define PREV_YCLIMITS OMAP3ISP_PREV_YC_LIMIT
59#define PREV_DEFECT_COR OMAP3ISP_PREV_DEFECT_COR
60#define PREV_GAMMA_BYPASS OMAP3ISP_PREV_GAMMABYPASS
61#define PREV_DARK_FRAME_CAPTURE OMAP3ISP_PREV_DRK_FRM_CAPTURE
62#define PREV_DARK_FRAME_SUBTRACT OMAP3ISP_PREV_DRK_FRM_SUBTRACT
63#define PREV_LENS_SHADING OMAP3ISP_PREV_LENS_SHADING
64#define PREV_NOISE_FILTER OMAP3ISP_PREV_NF
65#define PREV_GAMMA OMAP3ISP_PREV_GAMMA
66
67#define PREV_CONTRAST (1 << 17)
68#define PREV_BRIGHTNESS (1 << 18)
69#define PREV_FEATURES_END (1 << 19)
70 52
71enum preview_input_entity { 53enum preview_input_entity {
72 PREVIEW_INPUT_NONE, 54 PREVIEW_INPUT_NONE,