#endif
sprintf(name, "lcdc%d",lcdc_id);
+
+#if defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF)
+ dev_drv = inf->lcdc_dev_drv[0];
+#else
for(i = 0; i < inf->num_lcdc; i++) //find the driver for the extend display device
{
if(inf->lcdc_dev_drv[i]->screen_ctr_info->prop == EXTEND)
{
dev_drv = inf->lcdc_dev_drv[i];
- printk("hdmi connect to lcdc%d\n",dev_drv->id);
break;
}
}
-
+
if(i == inf->num_lcdc)
{
printk(KERN_ERR "%s driver not found!",name);
return -ENODEV;
}
-
+#endif
+ printk("hdmi connect to lcdc%d\n",dev_drv->id);
if(inf->num_lcdc == 1)
{
char name[6];
int i;
sprintf(name, "lcdc%d",lcdc_id);
+
+#if defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF)
+ dev_drv = inf->lcdc_dev_drv[0];
+#else
for(i = 0; i < inf->num_lcdc; i++)
{
if(inf->lcdc_dev_drv[i]->screen_ctr_info->prop == EXTEND)
return -ENODEV;
}
-
+#endif
if(inf->num_lcdc == 1)
{
info = inf->fb[0];