rk fb:all fb address can be set by user ioctl
authoryxj <yxj@rock-chips.com>
Thu, 24 Jan 2013 02:40:42 +0000 (10:40 +0800)
committeryxj <yxj@rock-chips.com>
Thu, 24 Jan 2013 07:47:52 +0000 (15:47 +0800)
drivers/video/rockchip/rk_fb.c

index 77f7872007bc3de9509f11c0238fbd6db24e49bf..2b8297d948f4f5913f79af6e18365a3f9958bd64 100644 (file)
@@ -284,7 +284,7 @@ static int rk_fb_ioctl(struct fb_info *info, unsigned int cmd,unsigned long arg)
                case FBIOPUT_FBPHYADD:
                        return info->fix.smem_start;
                case FBIOSET_YUV_ADDR:   //when in video mode, buff alloc by android
-                       if((!strcmp(fix->id,"fb1"))||(!strcmp(fix->id,"fb3")))
+                       //if((!strcmp(fix->id,"fb1"))||(!strcmp(fix->id,"fb3")))
                        {
                                if (copy_from_user(yuv_phy, argp, 8))
                                        return -EFAULT;