mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-23 21:39:02 +00:00
* Attach Meson64 to mainline with a bunch of patches. Tested, but need further work. * Enable DVFS on N2 which sometimes works, sometime doesn't, cleanup * Enable beta targets for Meson64 kernel family * Bump with version
35 lines
1.5 KiB
Diff
35 lines
1.5 KiB
Diff
From 9982c619f7cf7ca5e11173e9b809a09b6899be77 Mon Sep 17 00:00:00 2001
|
|
From: Jonas Karlman <jonas@kwiboo.se>
|
|
Date: Tue, 5 Nov 2019 23:05:35 +0000
|
|
Subject: [PATCH] WIP: media: hantro: rk3399 mpeg2 src_fmt
|
|
|
|
Fixes: 879dee56a40c
|
|
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
|
|
---
|
|
drivers/staging/media/hantro/rk3399_vpu_hw_mpeg2_dec.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/drivers/staging/media/hantro/rk3399_vpu_hw_mpeg2_dec.c b/drivers/staging/media/hantro/rk3399_vpu_hw_mpeg2_dec.c
|
|
index b40d2cdf832f..62a4e6ad7aa8 100644
|
|
--- a/drivers/staging/media/hantro/rk3399_vpu_hw_mpeg2_dec.c
|
|
+++ b/drivers/staging/media/hantro/rk3399_vpu_hw_mpeg2_dec.c
|
|
@@ -127,7 +127,7 @@ rk3399_vpu_mpeg2_dec_set_buffers(struct hantro_dev *vpu,
|
|
current_addr = addr;
|
|
|
|
if (picture->picture_structure == PICT_BOTTOM_FIELD)
|
|
- addr += ALIGN(ctx->dst_fmt.width, 16);
|
|
+ addr += ALIGN(ctx->src_fmt.width, MB_DIM);
|
|
vdpu_write_relaxed(vpu, addr, VDPU_REG_DEC_OUT_BASE);
|
|
|
|
if (!forward_addr)
|
|
@@ -220,8 +220,8 @@ void rk3399_vpu_mpeg2_dec_run(struct hantro_ctx *ctx)
|
|
VDPU_REG_DEC_CLK_GATE_E(1);
|
|
vdpu_write_relaxed(vpu, reg, VDPU_SWREG(57));
|
|
|
|
- reg = VDPU_REG_PIC_MB_WIDTH(MB_WIDTH(ctx->dst_fmt.width)) |
|
|
- VDPU_REG_PIC_MB_HEIGHT_P(MB_HEIGHT(ctx->dst_fmt.height)) |
|
|
+ reg = VDPU_REG_PIC_MB_WIDTH(MB_WIDTH(ctx->src_fmt.width)) |
|
|
+ VDPU_REG_PIC_MB_HEIGHT_P(MB_HEIGHT(ctx->src_fmt.height)) |
|
|
VDPU_REG_ALT_SCAN_E(picture->alternate_scan) |
|
|
VDPU_REG_TOPFIELDFIRST_E(picture->top_field_first);
|
|
vdpu_write_relaxed(vpu, reg, VDPU_SWREG(120));
|