[Title] Image size bug fix
authorJo Jinhyung <jinhyung.jo@samsung.com>
Mon, 5 Dec 2011 11:14:55 +0000 (20:14 +0900)
committerJo Jinhyung <jinhyung.jo@samsung.com>
Mon, 5 Dec 2011 11:14:55 +0000 (20:14 +0900)
[Type] Bug Fix
[Module] Emulator/Multimedia/Camera
[Priority]
[CQ#]
[Redmine#]
[Problem] Image size mismatch
[Cause]
[Solution]
[TestCase]

drivers/media/video/svcd.c

index 6f529637a33c4f343016a3c6447bb1a0d1ae3208..8854a4a6e4f8642bd0b90e67292781b044d67aba 100755 (executable)
@@ -223,6 +223,12 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
        f->fmt.pix.sizeimage    = ioread32(dev->mmregs + SVCAM_CMD_G_DATA);
        f->fmt.pix.colorspace = ioread32(dev->mmregs + SVCAM_CMD_G_DATA);
        f->fmt.pix.priv = ioread32(dev->mmregs + SVCAM_CMD_G_DATA);
+       
+       dev->pixelformat = f->fmt.pix.pixelformat;
+       dev->width = f->fmt.pix.width;
+       dev->height = f->fmt.pix.height;
+       dev->vb_vidq.field = f->fmt.pix.field;
+       dev->type = f->type;
 
        return 0;
 }