summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/ext
diff options
context:
space:
mode:
authorRobert Morell <rmorell@nvidia.com>2011-03-21 14:42:35 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:48:13 -0800
commit1a5c2fb4c725261aeac4f29ec14537bedef4b11d (patch)
tree388577059457ce22820f27bd1acbbd18fadd8409 /drivers/video/tegra/dc/ext
parent491cb2c5948ccf7ce53c81dbca8d19475667a400 (diff)
video: tegra: Expose possible bound head mask
This change adds support for userspace to query which heads an output may be bound to. Since our implementation currently hardcodes the head to output mapping, we currently always fill in a single bit. However, for future implementations we will be able to dynamically bind outputs to heads. bug 818525 Original-Change-Id: Ib0dead7748620a538c8f8d6ef548ca8b13a9c2b2 Signed-off-by: Robert Morell <rmorell@nvidia.com> Reviewed-on: http://git-master/r/40528 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R524f90dca82a3a67fa3289a3ebc4c7e32716749b
Diffstat (limited to 'drivers/video/tegra/dc/ext')
-rw-r--r--drivers/video/tegra/dc/ext/control.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/ext/control.c b/drivers/video/tegra/dc/ext/control.c
index aab7db45f039..1bf0b2de0711 100644
--- a/drivers/video/tegra/dc/ext/control.c
+++ b/drivers/video/tegra/dc/ext/control.c
@@ -54,6 +54,7 @@ get_output_properties(struct tegra_dc_ext_control_output_properties *properties)
}
properties->associated_head = properties->handle;
+ properties->head_mask = (1 << properties->associated_head);
dc = tegra_dc_get_dc(properties->associated_head);
properties->connected = tegra_dc_get_connected(dc);