vdin: Revert "vdin: t6x/t6d/t6w nv21 set uv swap" [1/1]

PD#SWPL-229103

Problem:
1) the writemif tool parses NV12 into NV21, error.
2) red is v:ef u:66 y:3e rather than u:ef v:66 y:3e
3) big endian & swap_cbcr=0, T3X is vuvu (NV21), T6D is uvuv(NV12)

Solution:
This reverts commit cba4965e0987ae295e80fb19245bbf6a528ebd4a.

Verify:
T6D

Change-Id: Ie5d49c5a42a7412748fa0d944a97b4732c2f7c32
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
This commit is contained in:
zijie.hong
2025-09-04 21:42:23 +08:00
committed by gerrit autosubmit
parent 73e83aadd8
commit 68115a73bf
+2 -2
View File
@@ -2313,14 +2313,14 @@ void vdin_set_wr_ctrl(struct vdin_dev_s *devp,
if (write_fmt == MIF_FMT_NV12_21) {
if (devp->dtdata->hw_ver == VDIN_HW_T6W) {
/* swap_cbcr */
wr_bits(offset, VDIN0_WRMIF_CTRL1, swap_cbcr,
wr_bits(offset, VDIN0_WRMIF_CTRL1, !swap_cbcr,
24, 1);
/* output even lines's cbcr */
wr_bits(offset, VDIN0_WRMIF_CTRL1, 0,
22, VCONV_MODE_WID);
} else if (devp->dtdata->hw_ver == VDIN_HW_T6D) {
/* swap_cbcr */
wr_bits(offset, VDIN_WRMIF_CTRL1, swap_cbcr,
wr_bits(offset, VDIN_WRMIF_CTRL1, !swap_cbcr,
24, 1);
/* output even lines's cbcr */
wr_bits(offset, VDIN_WRMIF_CTRL1, 0,