media: rockchip: vpss: fix RKVPSS2X_MI_WR_FBCE_SIZE calculation error

Signed-off-by: Wei Dun <willam.wei@rock-chips.com>
Change-Id: Ibdc4b3f6dc4e54bbd4381d51d28bdf6aa054c195
This commit is contained in:
Wei Dun
2025-05-08 11:06:34 +08:00
committed by Tao Huang
parent 84268cfeff
commit a5f9e1799f

View File

@@ -1556,6 +1556,14 @@ static int write_config(struct rkvpss_offline_dev *ofl,
mask = RKVPSS2X_SW_MI_WR_FBCE_SEL(3);
val = RKVPSS2X_SW_MI_WR_FBCE_SEL(i + 1);
rkvpss_hw_set_bits(hw, RKVPSS2X_MI_WR_FBCE_CTRL, mask, val);
if (cfg->output[i].aspt.enable) {
w = cfg->output[i].aspt.width;
h = cfg->output[i].aspt.height;
} else {
w = cfg->output[i].scl_width;
h = cfg->output[i].scl_height;
}
rkvpss_hw_write(hw, RKVPSS2X_MI_WR_FBCE_SIZE,
RKVPSS2X_SW_WR_FBCE_SIZE(w, h));
rkvpss_hw_write(hw, RKVPSS2X_MI_WR_FBCE_OFFSET,