struct v4l2_pix_format *pix,
                                    unsigned int bpp)
 {
-       unsigned int align;
-       unsigned int min_width;
-       unsigned int max_width;
-       unsigned int width;
        unsigned int min_bpl;
        unsigned int max_bpl;
        unsigned int bpl;
 
        /*
-        * The transfer alignment requirements are expressed in bytes. Compute
-        * minimum and maximum values, clamp the requested width and convert
-        * it back to pixels. Use bytesperline to adjust the width.
+        * The transfer alignment requirements are expressed in bytes.
+        * Clamp the requested width and height to the limits.
         */
-       align = lcm(SURFACE_ALIGN_BYTES, bpp);
-       min_width = roundup(TEGRA_MIN_WIDTH, align);
-       max_width = rounddown(TEGRA_MAX_WIDTH, align);
-       width = roundup(pix->width * bpp, align);
-
-       pix->width = clamp(width, min_width, max_width) / bpp;
+       pix->width = clamp(pix->width, TEGRA_MIN_WIDTH, TEGRA_MAX_WIDTH);
        pix->height = clamp(pix->height, TEGRA_MIN_HEIGHT, TEGRA_MAX_HEIGHT);
 
        /* Clamp the requested bytes per line value. If the maximum bytes per