diff options
author | Robert Morell <rmorell@nvidia.com> | 2011-03-03 15:04:19 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:12 -0800 |
commit | 07eb94c5e3f1aa57e3087c6fd9e60536d539286b (patch) | |
tree | d6e726c167350dd68d37ecb235ecdb0e6c735a5b /drivers/video/tegra/dc/hdmi.c | |
parent | 707fbea6f8769e3d50e3cb32ea4d29329f25bc0d (diff) |
video: tegra: Wire up output connectedness
This makes the core dc driver keep track of whether a particular input
in enabled. It is up to the output ops to maintain the connected status
if a detect op is plugged in, otherwise it is assumed that the output is
always connected.
bug 818525
Original-Change-Id: I794d7e2db347f63bbb1a7d80bca1a53d9d10c210
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-on: http://git-master/r/40522
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: Rfeeae486b6a39b95d9f1d95b697132b476735f50
Diffstat (limited to 'drivers/video/tegra/dc/hdmi.c')
-rw-r--r-- | drivers/video/tegra/dc/hdmi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c index bb912d9ff4f0..20d9ec8246ae 100644 --- a/drivers/video/tegra/dc/hdmi.c +++ b/drivers/video/tegra/dc/hdmi.c @@ -745,6 +745,7 @@ static bool tegra_dc_hdmi_detect(struct tegra_dc *dc) tegra_fb_update_monspecs(dc->fb, &specs, tegra_dc_hdmi_mode_filter); dev_info(&dc->ndev->dev, "display detected\n"); + dc->connected = true; tegra_dc_ext_process_hotplug(dc->ndev->id); return true; @@ -768,6 +769,7 @@ static void tegra_dc_hdmi_detect_worker(struct work_struct *work) tegra_dc_disable(dc); tegra_fb_update_monspecs(dc->fb, NULL, NULL); + dc->connected = false; tegra_dc_ext_process_hotplug(dc->ndev->id); } } |