Commit 0baef5bf authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

fix

parent f6992f55
......@@ -545,13 +545,13 @@ int imx_media_mbus_fmt_to_pix_fmt(struct v4l2_pix_format *pix,
}
/* Round up width for minimum burst size */
width = round_up(mbus->width, 8);
width = round_up(mbus->width, 4);
/* Round up stride for IDMAC line start address alignment */
if (cc->planar)
stride = round_up(width, 16);
else
stride = round_up((width * cc->bpp) >> 3, 8);
stride = round_up((width * cc->bpp) >> 3, 4);
printk("width stride %d %d", width, stride);
pix->width = width;
pix->height = mbus->height;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment