This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Trying to add more graphic modes to the demo.

Other Parts Discussed in Thread: THS8200

Hi,

I am running a 6446 EVM  with a THS8200 evaluation module connected to it.

As a first test I thought I'd get the standard demo programs running in a graphic mode utilizing the THS8200 expansion board. I changed /sys/class/davinci_display/ch0/output to point to "COMPONENT1". I verified that the THS8200 gets set up by looking at the i2c driver which produces the following output:

i2c_adapter i2c-0: THS8200 encoder initialized
i2c_adapter i2c-0: Resetting THS8200 card
i2c_adapter i2c-0: Selected Mode: 720P-60
i2c_adapter i2c-0: Mode list entry: 720P-60
i2c_adapter i2c-0: Setting mode to  = 720P-60
i2c_adapter i2c-0: Resetting THS8200 card
i2c_adapter i2c-0: Resetting THS8200 card
i2c_adapter i2c-0: Selected Mode: 720P-60
i2c_adapter i2c-0: Mode list entry: 720P-60
i2c_adapter i2c-0: Setting mode to  = 720P-60
i2c_adapter i2c-0: Resetting THS8200 card
i2c_adapter i2c-0: Resetting THS8200 card
MUX: initialized GPIO3
i2c_adapter i2c-0: Resetting THS8200 card

Which look reasonable to me. I then start my modified ./dvevmdemo and get the following output fom the kernel:

ioremap_nocache(0x87600000, 10485760)=0xc7000000
allocated heap buffer 0xc7000000 of size 0xc3000
cmem initialized 5 pools between 0x87600000 and 0x88000000
dsplinkk: no version for "struct_module" found: kernel tainted.
DSPLINK Module (1.60) created on Date: Oct 24 2008 Time: 12:59:07
Alignment trap: interface (883) PC=0x401501ec Instr=0xe5903000 Address=0x0030362d FSR 0x001

which doesn't look to healthy to me. Have I missed something entirely or is there a problem with the package i am not aware about.

My modified version of dvevmdemo simply check for the new mode (720P_60)  and sets VideoStd_720P_60 accordingly when it is found.

/Pontus

 

  • if you are planning on using 720p mode, you need to make sure you tell the drivers this (via bootargs) so they can allocate the proper size video buffers during bootup.  Additionally, you also need to make sures the buffer sizes defined  in cmem can support 720p; I do not believe the default ones do.  Setting output to COMPONENT1 is also required, but it sees you are already doing that.