Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358349
b: refs/heads/master
c: 0ea6822
h: refs/heads/master
i:
  358347: aa11d56
v: v3
  • Loading branch information
Rahul Sharma authored and Inki Dae committed Feb 21, 2013
1 parent be3611a commit 73a2ac6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 438c0f85cbbe6e7025e2375f97f5223b6eac5cd7
refs/heads/master: 0ea6822f5215b1771949e8b278f66ed787ba83f1
26 changes: 26 additions & 0 deletions trunk/drivers/gpu/drm/exynos/exynos_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,29 @@ static void mixer_win_disable(void *ctx, int win)
mixer_ctx->win_data[win].enabled = false;
}

int mixer_check_timing(void *ctx, struct fb_videomode *timing)
{
struct mixer_context *mixer_ctx = ctx;
u32 w, h;

w = timing->xres;
h = timing->yres;

DRM_DEBUG_KMS("%s : xres=%d, yres=%d, refresh=%d, intl=%d\n",
__func__, timing->xres, timing->yres,
timing->refresh, (timing->vmode &
FB_VMODE_INTERLACED) ? true : false);

if (mixer_ctx->mxr_ver == MXR_VER_0_0_0_16)
return 0;

if ((w >= 464 && w <= 720 && h >= 261 && h <= 576) ||
(w >= 1024 && w <= 1280 && h >= 576 && h <= 720) ||
(w >= 1664 && w <= 1920 && h >= 936 && h <= 1080))
return 0;

return -EINVAL;
}
static void mixer_wait_for_vblank(void *ctx)
{
struct mixer_context *mixer_ctx = ctx;
Expand Down Expand Up @@ -955,6 +978,9 @@ static struct exynos_mixer_ops mixer_ops = {
.win_mode_set = mixer_win_mode_set,
.win_commit = mixer_win_commit,
.win_disable = mixer_win_disable,

/* display */
.check_timing = mixer_check_timing,
};

static irqreturn_t mixer_irq_handler(int irq, void *arg)
Expand Down

0 comments on commit 73a2ac6

Please sign in to comment.