projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b428391
)
drm/mediatek: add the comment about color format setting for OVL
author
Stu Hsieh
<stu.hsieh@mediatek.com>
Thu, 9 Aug 2018 02:15:42 +0000
(10:15 +0800)
committer
CK Hu
<ck.hu@mediatek.com>
Mon, 27 Aug 2018 03:24:36 +0000
(11:24 +0800)
This patch add the comment about color format setting for OVL
Signed-off-by: Stu Hsieh <stu.hsieh@mediatek.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
index 978782a776292e6d954755cc71786bd98b5d81ac..0facd823c5525b258a1104dfcdd55b4b0e8b52e5 100644
(file)
--- a/
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
+++ b/
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
@@
-157,6
+157,11
@@
static void mtk_ovl_layer_off(struct mtk_ddp_comp *comp, unsigned int idx)
static unsigned int ovl_fmt_convert(struct mtk_disp_ovl *ovl, unsigned int fmt)
{
+ /* The return value in switch "MEM_MODE_INPUT_FORMAT_XXX"
+ * is defined in mediatek HW data sheet.
+ * The alphabet order in XXX is no relation to data
+ * arrangement in memory.
+ */
switch (fmt) {
default:
case DRM_FORMAT_RGB565: