@@ -275,7 +275,11 @@ static struct omap_dss_device omap3_evm_tv_device = {
.name = "tv",
.driver_name = "venc",
.type = OMAP_DISPLAY_TYPE_VENC,
+#if defined(CONFIG_OMAP2_VENC_OUT_TYPE_SVIDEO)
.phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
+#elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE)
+ .u.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE,
+#endif
.platform_enable = omap3_evm_enable_tv,
.platform_disable = omap3_evm_disable_tv,
};
@@ -36,6 +36,21 @@ config OMAP2_DSS_VENC
default y
help
OMAP Video Encoder support.
+choice
+ prompt OMAP2_VENC_OUT_TYPE
+ depends on OMAP2_DSS_VENC
+ default OMAP2_VENC_OUT_TYPE_SVIDEO
+
+config OMAP2_VENC_OUT_TYPE_SVIDEO
+ bool "Use S-Video output interface"
+ help
+ Select this option if you want to choose TV out over S-Video
+
+config OMAP2_VENC_OUT_TYPE_COMPOSITE
+ bool "Use Composite output interface"
+ help
+ Select this option if you want to choose TV out over Composite
+endchoice
config OMAP2_DSS_SDI
bool "SDI support"