writel(caddr_2bit, sc->regs + SCALER_SRC_2BIT_C_BASE);
cfg &= ~(SCALER_SRC_2BIT_CSPAN_MASK | SCALER_SRC_2BIT_YSPAN_MASK);
- cfg |= frame->width;
- cfg |= (frame->width << frame->sc_fmt->cspan) << 16;
+ cfg |= ALIGN(frame->width, 16);
+ cfg |= (ALIGN(frame->width, 16) << frame->sc_fmt->cspan) << 16;
writel(cfg, sc->regs + SCALER_SRC_2BIT_SPAN);
}
writel(caddr_2bit, sc->regs + SCALER_DST_2BIT_C_BASE);
cfg &= ~(SCALER_DST_2BIT_CSPAN_MASK | SCALER_DST_2BIT_YSPAN_MASK);
- cfg |= frame->width;
- cfg |= (frame->width << frame->sc_fmt->cspan) << 16;
+ cfg |= ALIGN(frame->width, 16);
+ cfg |= (ALIGN(frame->width, 16) << frame->sc_fmt->cspan) << 16;
writel(cfg, sc->regs + SCALER_DST_2BIT_SPAN);
}