diff options
author | Archit Taneja <archit@ti.com> | 2010-11-25 07:28:10 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2011-01-10 04:09:54 -0500 |
commit | 8dad2ab6727f4dd9fdef06b890d736d7c6d1a725 (patch) | |
tree | 59ddbe8f875cc91824447b36afade883fe9516a3 /drivers/video/omap2/dss/dss_features.c | |
parent | ac1427e13b114f0c394fbc9bb7616f47d03bdba2 (diff) |
OMAP: DSS2: Clean up DISPC color mode validation checks
The supported set of color modes varies for different DISPC pipelines(plane)
and omap version. This makes the checks for validation of a color mode more
complicated as new omap versions are added.
A dss_feature function is created which tells if a color_mode is supported
for a plane on the current omap revision.
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/dss/dss_features.c')
-rw-r--r-- | drivers/video/omap2/dss/dss_features.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/dss_features.c b/drivers/video/omap2/dss/dss_features.c index 854deba4e0d8..620221f678f9 100644 --- a/drivers/video/omap2/dss/dss_features.c +++ b/drivers/video/omap2/dss/dss_features.c | |||
@@ -179,6 +179,13 @@ enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane) | |||
179 | return omap_current_dss_features->supported_color_modes[plane]; | 179 | return omap_current_dss_features->supported_color_modes[plane]; |
180 | } | 180 | } |
181 | 181 | ||
182 | bool dss_feat_color_mode_supported(enum omap_plane plane, | ||
183 | enum omap_color_mode color_mode) | ||
184 | { | ||
185 | return omap_current_dss_features->supported_color_modes[plane] & | ||
186 | color_mode; | ||
187 | } | ||
188 | |||
182 | /* DSS has_feature check */ | 189 | /* DSS has_feature check */ |
183 | bool dss_has_feature(enum dss_feat_id id) | 190 | bool dss_has_feature(enum dss_feat_id id) |
184 | { | 191 | { |