mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
OMAPDSS: APPLY: Add manager set/unset output ops for omap_overlay_manager
Add set_output/unset_output ops for overlay managers, these form links between managers and outputs. Create a function in dss features which tell all the output instances that connect to a manager, use it when a manager tries to set an output. Add a constraint of not unsetting an output when the manager is enabled. Keep the omap_dss_device pointer and set/unset_device ops in overlay_manager for now to not break things. Keep the dss feature function get_supported_displays as it's used in some places. These will be removed later. Signed-off-by: Archit Taneja <archit@ti.com>
This commit is contained in:
parent
6d71b923e5
commit
97f01b3a2e
6 changed files with 154 additions and 0 deletions
|
|
@ -459,9 +459,11 @@ struct omap_overlay_manager {
|
|||
enum omap_overlay_manager_caps caps;
|
||||
struct list_head overlays;
|
||||
enum omap_display_type supported_displays;
|
||||
enum omap_dss_output_id supported_outputs;
|
||||
|
||||
/* dynamic fields */
|
||||
struct omap_dss_device *device;
|
||||
struct omap_dss_output *output;
|
||||
|
||||
/*
|
||||
* The following functions do not block:
|
||||
|
|
@ -477,6 +479,9 @@ struct omap_overlay_manager {
|
|||
int (*set_device)(struct omap_overlay_manager *mgr,
|
||||
struct omap_dss_device *dssdev);
|
||||
int (*unset_device)(struct omap_overlay_manager *mgr);
|
||||
int (*set_output)(struct omap_overlay_manager *mgr,
|
||||
struct omap_dss_output *output);
|
||||
int (*unset_output)(struct omap_overlay_manager *mgr);
|
||||
|
||||
int (*set_manager_info)(struct omap_overlay_manager *mgr,
|
||||
struct omap_overlay_manager_info *info);
|
||||
|
|
|
|||
Loading…
Reference in a new issue