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.

Composite video on dm385evm

Other Parts Discussed in Thread: DM385

Hi ti ,

I am using dm385evm , and my requirement is to work with TV (composite out).

Thus , i configured teh following :

I changed the graphics node to sd from hdmi.

echo 1:sd > /sys/devices/platform/vpss/graphics0/nodes

cat /sys/devices/platform/vpss/graphics0/nodes


1:sd

echo 1 > /sys/devices/platform/vpss/graphics0/enabled



  echo 1 > /sys/devices/platform/vpss/display2/enabled

echo ntsc > /sys/devices/platform/vpss/display2/mode

echo composite  > /sys/devices/platform/vpss/display2/output

cat  /sys/devices/platform/vpss/display2/timings

54000,720/12/68/64,480/5/41/5,0

 cat /sys/devices/platform/vpss/display2/order

0,0


But am trying to display the images of resolution 640x480 (raw,RGB) from
my application space by opening /dev/fb0.
Though i get distorted picture , which may be timing issue as such.

How to overcome this ? is their any constraints on this block ?

Also when i try to change the timings according to my requirement by
echo (640x480 ntsc) >/sys/devices/platform/vpss/display2/timings
this wont get changed.


please help me.

Regards
Smaan





 
  • Hello,

    I am not sure about dm385, but could you try to change timing:

    for 640x480:

    echo 25175,640/16/48/96,480/11/31/2,1 > /sys/devices/platform/vpss/display0/timings

    for 720x480:

    echo 27027,720/16/60/62,480/9/30/6,1 > /sys/devices/platform/vpss/display0/timings

    Let me know the result.

    Best Regards,

    Margarita


  • hi Margarita,

    For sd , we need to use display2 not display0 as its for HDMI, am working on composite out.

    kindly check

    VPSS Library: display2

    Configure the SD VENC(Composite output)

    http://processors.wiki.ti.com/index.php/TI81XX_VPSS_Video_Driver_User_Guide

    Am worried about , /sys/devices/platform/vpss/display2/timings .

    As you said :  echo 25175,640/16/48/96,480/11/31/2,1 > /sys/devices/platform/vpss/display0/timings am able to change the timing from 1080p to 640x480 but its for hdmi.

    But when i try to change for display2 (for composite) echo 25175,640/16/48/96,480/11/31/2,1 > /sys/devices/platform/vpss/display2/timings, it is unchanged.

    Regards

    Smaan

  • Hi,

    Why you want to change timings of SD? SD supports only NTSC/PAL modes and for both of these modes, timings are set in the driver, which can not be changed.

    Rgds,

    Brijesh

  • Hi Brijesh ,

    As per the userguide , I am using fb0 for sd(display2) by refering Graphics notes inut/output table.

    Also, i enabled the VENC, the switched to ntsc  ,reshuffle display order  is set to  0 , and set the output for SDVENC as composite.Display timing is set as default for 54000,720/12/68/64,480/5/41/5,0

    but the pixclock should be somewhere around 27027 as per the standard. (correct me if am wrong in  this ).

    when i mmap fb0 in my application program , to put some 720x480 RAW image am not getting proper image on the tV out.

    Thanks

    Smaan


  • Hello Shakti Maan,

    We have not seen any issue on the SD output, could you please tell us what you see on TV? is it some artifacts or image getting cropped or shifted? Can you share snap shot of the image?

    Regards,

    Brijesh Jadav