I have a custom DM6467 board derived from the EVM, including a THS8200 for output.
In the past, I've successfully modified the decode demo in order to output NTSC through an ADV7171 video encoder. It's a greatly simplified program, called splash, that simply displays a full screen in single color.
With this new board, the ADV7171 has been replaced by the THS8200, per DM6467 EVM example.
I find myself again modifying the decode demo source file main.c (starting from my working splash example).
SHORT QUESTION:
How do I configure things in my high level program to make the THS8200 start generating VGA (640x480 60Hz)? Will I need to (yet again) modify the DMAI or other source code, or is it already setup for this capability:
LONG QUESTION:
In gory detail...
I've set my video standard to "VideoStd_VGA" and have tried color space of either it's prior unchanged value of "ColorSpace_YUV422PSEMI" or its new intended value of "ColorSpace_RGB565".
With "VideoStd_VGA" and "ColorSpace_RGB565", my console output includes the following. I'm not sure how much of it is germane. I believe the red part is important.
Call Enable_Display()
@0x000946c2:[T:0x40bd6490] ti.sdo.dmai - [BufTab] Allocating BufTab for 3 buffers
@0x000947b3:[T:0x40bd6490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 614400 at 0x40e99000 (0x87e6d000 phys)
@0x00094993:[T:0x40bd6490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 614400 at 0x40ffc000 (0x87d0a000 phys)
@0x00094ab3:[T:0x40bd6490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 614400 at 0x4115f000 (0x87ba7000 phys)
@0x0009663c:[T:0x40bd6490] ti.sdo.dmai - [Dmai] VIODIC_QBUF failed (Invalid argument)
Failed to intialize display driver buffers on /dev/video2
Seeing the "invalid argument", I thought it might have been the color space. But when I changed to "ColorSpace_RGB565", my console output includes the following. This failure is even earlier than the above, so if the color space was the cause of the above, the error below shows I have multiple places to fix. Note I believe this error below ends up coming out of the decode demo's file display.c call to function BufferGfx_calcDimensions().
Display thread running
@0x0006e044:[T:0x40bd6490] ti.sdo.dmai - [ColorSpace] Unknown color space format (4)
Error: Failed to calculate dimensions of video standard
Display thread: cleanup
Is it possible that DMAI simply hasn't been coded yet to support 'ColorSpace_RGB565", even though the enumerated value was defined? Is it possible that DMAI simply hasn't been coded yet to support "VideoStd_VGA", even though the enumerated value was defined? My file system search does turn up dvsdk_3_10_00_11/dmai_2_10_00_05/packages/ti/sdo/dmai/apps/video_display/linux/main.c that refers to "VideoStd_VGA" as a parameter and would imply that, if that program was ever fully tested, then the lower level support should be there. But hunting around in that source code directory reveals nothing more.
I'm going to keep searching, but go ahead and post what I have so far here. Perhaps someone can answer this outright, or at least guide me in a different or more detailed direction, before I stumble into the answer myself!
Thanks very much,
Helmut