提交 c0b5bf68 编写于 作者: J Jernej Skrabec 提交者: Zheng Zengkai

drm/sun4i: mixer: Fix P010 and P210 format numbers

stable inclusion
from stable-v5.10.106
commit ed5bb00d860411e3f87e4956b682bddd4b92d128
bugzilla: https://gitee.com/openeuler/kernel/issues/I573US

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ed5bb00d860411e3f87e4956b682bddd4b92d128

--------------------------------

[ Upstream commit 9470c29f ]

It turns out that DE3 manual has inverted YUV and YVU format numbers for
P010 and P210. Invert them.

This was tested by playing video decoded to P010 and additionally
confirmed by looking at BSP driver source.

Fixes: 169ca4b3 ("drm/sun4i: Add separate DE3 VI layer formats")
Signed-off-by: NJernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: NMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220228181436.1424550-1-jernej.skrabec@gmail.comSigned-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 64532fe7
...@@ -113,10 +113,10 @@ ...@@ -113,10 +113,10 @@
/* format 13 is semi-planar YUV411 VUVU */ /* format 13 is semi-planar YUV411 VUVU */
#define SUN8I_MIXER_FBFMT_YUV411 14 #define SUN8I_MIXER_FBFMT_YUV411 14
/* format 15 doesn't exist */ /* format 15 doesn't exist */
/* format 16 is P010 YVU */ #define SUN8I_MIXER_FBFMT_P010_YUV 16
#define SUN8I_MIXER_FBFMT_P010_YUV 17 /* format 17 is P010 YVU */
/* format 18 is P210 YVU */ #define SUN8I_MIXER_FBFMT_P210_YUV 18
#define SUN8I_MIXER_FBFMT_P210_YUV 19 /* format 19 is P210 YVU */
/* format 20 is packed YVU444 10-bit */ /* format 20 is packed YVU444 10-bit */
/* format 21 is packed YUV444 10-bit */ /* format 21 is packed YUV444 10-bit */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册