mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user