]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blobdiff - drivers/media/platform/tegra/camera/channel.c
drivers: camera: Fix bytesperline derivation
[sojka/nv-tegra/linux-3.10.git] / drivers / media / platform / tegra / camera / channel.c
index e957363d43708d8fdb8825f4070b154703ae7c2e..468b2f2cfca7c2840c1f729b3564c5b8cfc53ec4 100644 (file)
@@ -1311,7 +1311,8 @@ __tegra_channel_get_format(struct tegra_channel *chan,
        vfmt = tegra_core_get_format_by_code(fmt.format.code);
        if (vfmt != NULL) {
                pix->pixelformat = vfmt->fourcc;
-               pix->bytesperline = chan->format.bytesperline;
+               tegra_channel_fmt_align(chan,
+                       &pix->width, &pix->height, &pix->bytesperline);
                pix->sizeimage = pix->height * pix->bytesperline;
        }