diff options
author | Jon Mayo <jmayo@nvidia.com> | 2013-09-04 18:17:40 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-16 17:40:52 -0700 |
commit | 8b9e108371bdb7ddb795422d83ea8bcb58186c7d (patch) | |
tree | 52ac798160579f8e04bc86e0b7d87b5709d3cf21 /drivers/video/tegra/dc/edid.h | |
parent | a247d811097306b7c15333507c011d55ddbe17ff (diff) |
video: tegra: Improve hdmi worker
original change by Mike J. Chen <mjchen@google.com>, but some changes
were made to bring it onto the newer kernel.
- fixed checkpatch warnings.
- used rt_mutex instead of spinlocks, as irq handler is threaded.
original commit message below:
It's now a full blown state machine. Ported from similar work
we did for OMAP. Handles TV's that occassionally drop HPD
briefly.
This also fixes a deadlock that could happen because the
old worker function grabbed the dc->lock, but then later
calls a function that grabs the fb lock. FB_BLANK ioctl
grabs the same locks but in the oppossite order. The
new worker thread does not grab the dc->lock.
Change-Id: Id5f54d934041e02859c92b9484ff08f4117c33b8
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/270245
Diffstat (limited to 'drivers/video/tegra/dc/edid.h')
-rw-r--r-- | drivers/video/tegra/dc/edid.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/edid.h b/drivers/video/tegra/dc/edid.h index 77db36f4adbf..33fa08a4355d 100644 --- a/drivers/video/tegra/dc/edid.h +++ b/drivers/video/tegra/dc/edid.h @@ -4,6 +4,8 @@ * Copyright (C) 2010 Google, Inc. * Author: Erik Gilling <konkers@android.com> * + * Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved. + * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. @@ -59,4 +61,5 @@ struct tegra_dc_edid *tegra_edid_get_data(struct tegra_edid *edid); void tegra_edid_put_data(struct tegra_dc_edid *data); int tegra_edid_underscan_supported(struct tegra_edid *edid); +int tegra_edid_read_block(struct tegra_edid *edid, int block, u8 *data); #endif |