add shift setting operation during set size
This patch comes from product kernel.
Change-Id: I98692214aaec340db6efecbcb240288d86e14241
Signed-off-by: Jin-young Jeon <jy0.jeon@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
#define SC_COEF_V_4T 4
#define SC_COEF_DEPTH 3
#define SC_POS_ALIGN 2
+#define SC_FMT_SHIFT 1
#define SC_UP_MAX SC_RATIO(1, 16)
#define SC_DOWN_MIN SC_RATIO(4, 1)
#define SC_DOWN_SWMIN SC_RATIO(16, 1)
SCALER_SRC_YY(pos->y));
sc_write(cfg, SCALER_SRC_Y_POS);
+ cfg = (SCALER_SRC_YX(pos->x >> SC_FMT_SHIFT) |
+ SCALER_SRC_YY(pos->y >> SC_FMT_SHIFT));
+ sc_write(cfg, SCALER_SRC_C_POS);
+
/* cropped size */
cfg = (SCALER_SRC_W(pos->w) |
SCALER_SRC_H(pos->h));