svo: send overlay size and position infomation
authoryuyeon.oh <yuyeon.oh@samsung.com>
Fri, 24 Jun 2011 04:05:12 +0000 (13:05 +0900)
committeryuyeon.oh <yuyeon.oh@samsung.com>
Fri, 24 Jun 2011 04:05:12 +0000 (13:05 +0900)
Change-Id: If6096d4dbef7e71866e792340e8e095b971ea53f

drivers/media/video/svo.c
ramfs/init

index 745dc482112098fc1b60887a8297f764fb1e03fc..cce6967a4578dbc5661437607b6b972b9182859e 100755 (executable)
@@ -136,6 +136,9 @@ static int svo0_s_fmt_vid_overlay(struct file *file, void *priv,
        svo.w0.width = f->fmt.win.w.width;
        svo.w0.height = f->fmt.win.w.height;
 
+       writel(svo.w0.left | svo.w0.top << 16, svo.svo_mmreg + OVERLAY0_POSITION);
+       writel(svo.w0.width | svo.w0.height << 16, svo.svo_mmreg + OVERLAY0_SIZE);
+
        return 0;
 }
 
@@ -160,6 +163,9 @@ static int svo1_s_fmt_vid_overlay(struct file *file, void *priv,
        svo.w1.width = f->fmt.win.w.width;
        svo.w1.height = f->fmt.win.w.height;
 
+       writel(svo.w1.left | svo.w1.top << 16, svo.svo_mmreg + OVERLAY1_POSITION);
+       writel(svo.w1.width | svo.w1.height << 16, svo.svo_mmreg + OVERLAY1_SIZE);
+
        return 0;
 }
 
index 0d9714b24a80838b42a47cf4df7ac352b11a6908..299d04f0222ede0cd117a5a591f7e6107f7e9759 100644 (file)
@@ -133,6 +133,7 @@ echo "create device filesystem"
 
 /bin/mknod /new_root/dev/video0 c 81 0
 /bin/mknod /new_root/dev/video1 c 81 1
+/bin/mknod /new_root/dev/video2 c 81 2
 
 /bin/mknod /new_root/dev/mtd0 b 90 0
 /bin/mknod /new_root/dev/mtd1 b 90 2