To run the G-Streamer examples routed to the S-Video instead of the LCD, several steps need to be followed.
1. Patch the omap_vout.c file (~/logic/Logic_BSPs/Linux_svn/bsp/rpm/BUILD/linux-3.0/drivers/media/video/omap)
--- omap_vout.c.orig 2015-01-20 12:46:06.927618596 -0600
+++ omap_vout.c 2015-01-20 12:48:17.107613585 -0600
@@ -956,10 +956,13 @@
int startindex = 0, i, j;
u32 phy_addr = 0, virt_addr = 0;
struct omap_vout_device *vout = q->priv_data;
+ int vid_max_buf_size;
if (!vout)
return -EINVAL;
+ vid_max_buf_size = vout->vid == OMAP_VIDEO1 ? video1_bufsize : video2_bufsize;
+
if (V4L2_BUF_TYPE_VIDEO_OUTPUT != q->type)
return -EINVAL;
@@ -985,7 +988,7 @@
video1_numbuffers : video2_numbuffers;
/* Check the size of the buffer */
- if (*size > vout->buffer_size) {
+ if (*size > vid_max_buf_size) {
v4l2_err(&vout->vid_dev->v4l2_dev,
"buffer allocation mismatch [%u] [%u]\n",
*size, vout->buffer_size);
2. Compile the project using the instructions found in Section 7.1 of DM3730 Linux User Guide.
3. Continue to follow the set of Section 7.2, but add two additional 'otherbootargs' settings.
omapdss.def_disp=tv
omapfb.mode=tv:ntsc
4. Once Linux is booted, but before continuing to section 7.3, enter the following at the DM-37x# prompt:
peekpoke -l -w 0x48050cc4 0xd
$ peekpoke -l -w 0x48050040 0x78
5. Continue to follow the instructions listed in the User Guide under section 7.3