video: rockchip: mpp: rkvenc2: Fix vepu580 bs_wr addr

The buffer write address ADR_BSBS of VEPU580 differs from
other IPs and requires separate definition.

Change-Id: I8a97f26ffd64ac74cedeed84de408e3ec952fd52
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
This commit is contained in:
Yanjun Liao
2025-03-11 17:34:45 +08:00
committed by Tao Huang
parent 653a2c76e2
commit 528c771562

View File

@@ -1572,7 +1572,7 @@ static void rkvenc2_bs_overflow_handle(struct mpp_dev *mpp)
if (bs_wr >= bs_top)
bs_wr = bs_bot;
/* update write addr for enc continue */
mpp_write(mpp, RKVENC2_REG_ADR_BSBS, bs_wr);
mpp_write(mpp, RKVENC580_REG_ADR_BSBS, bs_wr);
} else {
bs_rd = mpp_read(mpp, RKVENC2_REG_ADR_BSBR);
bs_wr = mpp_read(mpp, RKVENC2_REG_ST_BSB);