projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26a7af3
)
drm/exynos: mixer: unify a check for video-processor window
author
Marek Szyprowski
<
[email protected]
>
Wed, 16 Dec 2015 12:21:48 +0000
(13:21 +0100)
committer
Inki Dae
<
[email protected]
>
Tue, 12 Jan 2016 15:16:36 +0000
(
00:16
+0900)
Always use macro instead of hard-coded '2' value in conditions related
to video processor window. Additional checks are not needed, because
video layer is registered only when video processor is available.
Signed-off-by: Marek Szyprowski <
[email protected]
>
Signed-off-by: Inki Dae <
[email protected]
>
drivers/gpu/drm/exynos/exynos_mixer.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_mixer.c
b/drivers/gpu/drm/exynos/exynos_mixer.c
index 31a9a228744e7d09140a5f77d713ebdd18749809..bf148dc3623cba2b4a0f6bffdfbe3a097320535e 100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/
drivers/gpu/drm/exynos/exynos_mixer.c
@@
-438,7
+438,7
@@
static void mixer_cfg_layer(struct mixer_context *ctx, unsigned int win,
MXR_LAYER_CFG_GRP1_VAL(priority),
MXR_LAYER_CFG_GRP1_MASK);
break;
- case
2
:
+ case
VP_DEFAULT_WIN
:
if (ctx->vp_enabled) {
vp_reg_writemask(res, VP_ENABLE, val, VP_ENABLE_ON);
mixer_reg_writemask(res, MXR_CFG, val,
@@
-990,7
+990,7
@@
static void mixer_update_plane(struct exynos_drm_crtc *crtc,
if (!test_bit(MXR_BIT_POWERED, &mixer_ctx->flags))
return;
- if (plane->index
> 1 && mixer_ctx->vp_enabled
)
+ if (plane->index
== VP_DEFAULT_WIN
)
vp_video_buffer(mixer_ctx, plane);
else
mixer_graph_buffer(mixer_ctx, plane);