aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/omap/omap_voutdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/omap/omap_voutdef.h')
-rw-r--r--drivers/media/video/omap/omap_voutdef.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/media/video/omap/omap_voutdef.h b/drivers/media/video/omap/omap_voutdef.h
index 1ef3ed22660c..d793501cafcc 100644
--- a/drivers/media/video/omap/omap_voutdef.h
+++ b/drivers/media/video/omap/omap_voutdef.h
@@ -12,6 +12,7 @@
12#define OMAP_VOUTDEF_H 12#define OMAP_VOUTDEF_H
13 13
14#include <video/omapdss.h> 14#include <video/omapdss.h>
15#include <plat/vrfb.h>
15 16
16#define YUYV_BPP 2 17#define YUYV_BPP 2
17#define RGB565_BPP 2 18#define RGB565_BPP 2
@@ -62,6 +63,18 @@ enum dss_rotation {
62 dss_rotation_180_degree = 2, 63 dss_rotation_180_degree = 2,
63 dss_rotation_270_degree = 3, 64 dss_rotation_270_degree = 3,
64}; 65};
66
67/* Enum for choosing rotation type for vout
68 * DSS2 doesn't understand no rotation as an
69 * option while V4L2 driver doesn't support
70 * rotation in the case where VRFB is not built in
71 * the kernel
72 */
73enum vout_rotaion_type {
74 VOUT_ROT_NONE = 0,
75 VOUT_ROT_VRFB = 1,
76};
77
65/* 78/*
66 * This structure is used to store the DMA transfer parameters 79 * This structure is used to store the DMA transfer parameters
67 * for VRFB hidden buffer 80 * for VRFB hidden buffer
@@ -78,6 +91,7 @@ struct omapvideo_info {
78 int id; 91 int id;
79 int num_overlays; 92 int num_overlays;
80 struct omap_overlay *overlays[MAX_OVLS]; 93 struct omap_overlay *overlays[MAX_OVLS];
94 enum vout_rotaion_type rotation_type;
81}; 95};
82 96
83struct omap2video_device { 97struct omap2video_device {
@@ -206,4 +220,6 @@ static inline int calc_rotation(const struct omap_vout_device *vout)
206 return dss_rotation_180_degree; 220 return dss_rotation_180_degree;
207 } 221 }
208} 222}
223
224void omap_vout_free_buffers(struct omap_vout_device *vout);
209#endif /* ifndef OMAP_VOUTDEF_H */ 225#endif /* ifndef OMAP_VOUTDEF_H */