mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
media: rockchip: ispp: fix to use new nr algorithm
Signed-off-by: Hu Kejun <william.hu@rock-chips.com> Change-Id: Ib43c76b24cd4b963aabfcdac1cea19d518a5f621
This commit is contained in:
@@ -323,6 +323,8 @@
|
||||
#define FMT_YUV422 BIT(1)
|
||||
#define FMT_FBC BIT(0)
|
||||
|
||||
#define NR_NEW_ALGO BIT(16)
|
||||
|
||||
/* ISPP_STRT */
|
||||
#define FEC_ST BIT(2)
|
||||
#define NR_SHP_ST BIT(1)
|
||||
|
||||
@@ -640,6 +640,8 @@ static int config_nr_shp(struct rkispp_device *dev)
|
||||
goto err;
|
||||
writel(buf->dma_addr, base + RKISPP_SHARP_TMP_YUV_BASE);
|
||||
|
||||
/* fix to use new nr algorithm */
|
||||
rkispp_set_bits(base + RKISPP_NR_CTRL, NR_NEW_ALGO, NR_NEW_ALGO);
|
||||
rkispp_set_bits(base + RKISPP_NR_CTRL, FMT_RD_MASK, fmt);
|
||||
if (fmt & FMT_FBC) {
|
||||
writel(0, base + RKISPP_NR_VIR_STRIDE);
|
||||
|
||||
Reference in New Issue
Block a user