Commit f6992f55 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

More prints

parent e02846ca
......@@ -545,14 +545,14 @@ 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, 3);
width = round_up(mbus->width, 8);
/* Round up stride for IDMAC line start address alignment */
if (cc->planar)
stride = round_up(width, 4);
stride = round_up(width, 16);
else
stride = round_up((width * cc->bpp) >> 3, 3);
stride = round_up((width * cc->bpp) >> 3, 8);
printk("width stride %d %d", width, stride);
pix->width = width;
pix->height = mbus->height;
pix->pixelformat = cc->fourcc;
......@@ -564,7 +564,7 @@ int imx_media_mbus_fmt_to_pix_fmt(struct v4l2_pix_format *pix,
pix->bytesperline = stride;
pix->sizeimage = cc->planar ? ((stride * pix->height * cc->bpp) >> 3) :
stride * pix->height;
printk("size %d", pix->sizeimage);
return 0;
}
EXPORT_SYMBOL_GPL(imx_media_mbus_fmt_to_pix_fmt);
......
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