summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/fb.c
diff options
context:
space:
mode:
authorDonghan Ryu <dryu@nvidia.com>2011-05-22 18:30:31 +0900
committerNiket Sirsi <nsirsi@nvidia.com>2011-06-24 21:21:58 -0700
commit4a057f18eeffb07113b072aaa8f345a728f693d7 (patch)
tree4e383451ba81329c0ea96e5429f2a0f8983fbf18 /drivers/video/tegra/fb.c
parent326928845e261b4becb3eba96d92dacfb144324a (diff)
tegra: dc: adding max pixclock check for hdmi
tegra_dc_hdmi_equal doesn't check pixclock and some devices doesn't support 148.5Mhz pixclock which is needed for 1080p@60. However, adding 1080p@30 to the supported hdmi mode array makes tegra_dc_hdmi_equal to retun 1080p@60. Therefore, this commit adds max pixclock check to distinguish modes with different pixclock Bug: 815409 Change-Id: Ifbf07929e3c7a92172856518a55e9d4a04f0b943 Reviewed-on: http://git-master/r/32511 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/fb.c')
-rw-r--r--drivers/video/tegra/fb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c
index 05eeb6a365cd..913feeb49796 100644
--- a/drivers/video/tegra/fb.c
+++ b/drivers/video/tegra/fb.c
@@ -657,7 +657,8 @@ static struct fb_ops tegra_fb_ops = {
void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info,
struct fb_monspecs *specs,
- bool (*mode_filter)(struct fb_videomode *mode))
+ bool (*mode_filter)(const struct tegra_dc *dc,
+ struct fb_videomode *mode))
{
struct fb_event event;
struct fb_modelist *m;
@@ -683,7 +684,7 @@ void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info,
for (i = 0; i < specs->modedb_len; i++) {
if (mode_filter) {
- if (mode_filter(&specs->modedb[i]))
+ if (mode_filter(fb_info->win->dc, &specs->modedb[i]))
fb_add_videomode(&specs->modedb[i],
&fb_info->info->modelist);
} else {