From: yuyeon.oh Date: Fri, 24 Jun 2011 04:05:12 +0000 (+0900) Subject: svo: send overlay size and position infomation X-Git-Tag: 2.2.1_release^2~182^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73b2b91a645696ee2b1cc5d5d672975f17592957;p=sdk%2Femulator%2Femulator-kernel.git svo: send overlay size and position infomation Change-Id: If6096d4dbef7e71866e792340e8e095b971ea53f --- diff --git a/drivers/media/video/svo.c b/drivers/media/video/svo.c index 745dc4821120..cce6967a4578 100755 --- a/drivers/media/video/svo.c +++ b/drivers/media/video/svo.c @@ -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; } diff --git a/ramfs/init b/ramfs/init index 0d9714b24a80..299d04f0222e 100644 --- a/ramfs/init +++ b/ramfs/init @@ -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