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.

Does DM365 support S-Video output?

Other Parts Discussed in Thread: THS7303

From datasheet it seems I can configure DACSEL register to output S-Video. But I never get S-Video from compr/compy/compb. But after I tried, what work so far are composite (TVOUT) and component only.

Can anyone here confirm whether DM365 can do S-Video output and how?

Thanks

  • Hi Hao,

    How are you testing this functionality? I don't think we have s-video output on the EVM, but I am quite confident that this feature is supported.

  • on the EVM board, dm365 compy, compb, compr pins are connected to ths7303 input and ths7303 output are connected to component sockets. i believe by configuring DACSEL register, i can get S-Video Y and S-Video C on compy and compb and compr. right?

    currently i get sd video loopback working using composite output. the video signal is ntsc 480i/60hz. for video ouput configuration, from the spectrum digital test code (sd colorbar), the only difference between S-Video and composite output is DACSEL register configurations. rests are all same. so i set the DACSEL register to 0x210 instead of 0x0 for composite. but i measured the signal on compy, compb and compr, there is nothing, although TVOUT pin does have grayscale video.

  • Hao Liu said:

    by configuring DACSEL register, i can get S-Video Y and S-Video C on compy and compb and compr. right?

    Correct

    Hao Liu said:
    so i set the DACSEL register to 0x210 instead of 0x0 for composite. but i measured the signal on compy, compb and compr, there is nothing, although TVOUT pin does have grayscale video.

    Have you changed VDAC_CONFIG setting? I am assuming your D1 Loopback output is from TVOUT, please confirm.

    To use the three DACs, you need to enable them in VDAC_CONFIG (use value 0x081141E7)

    value set as follows: SD DAC ->0x081141CC, HD DAC->0x081141E7 

  • Hi,

    Just to add, DVSDK already has support for S-Video output and i believe it has been tested to work on DM365 EVM. You might want to refer to that source code also for the configuration of the DACs.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your questions. Thanks.

  • thanks for the info. now S-Video output works after i set VDAC_CONFIG to 0x081141E7...

    just to clarify:

    from what you have described and what i have just tried, the XDMODE field is the most important. the S-Video output requires "HD DAC mode", although in my case the signal is actually SD only.

    another finding is, currently i although i have S-Video output working, but TVOUT (composite) does not work anymore. TVOUT only works under "SD Video Buffer mode" of XDMODE. so it's not possible to have S-Video and Composite at same time right?

  • You are correct. For more information, see the VPBE/DAC section in the datasheet. To get s-video and composite, you can get one DAC to S-y, one DAC to S-uv, and one to composite in DACSEL.

  • if i configure VDAC_CONFIG as 0x081141E7 (or 0x081141EF), and i set DACSEL as 0x210, means DAC2S as S-Video C, DAC1S as S-Video Y and DAC0S as CVBS. i do get S-Video C and S-Video Y. but the CVBS output from compr pin showing wrong video as composite: black and white rolling strips. do you know why? thanks a lot for the info.

  • oops i connected to the wrong output socket.

    now problem solved. yes composite wont output from TVOUT pin but can be configured from one of compy/compb/compr using DACSEL. previous black/white rolling strips video is actually S-Video C (without sync).

    thanks a lot and problem solved.

  • Hi :

        Can you tell me which file  DACSEL register configurations. can do  in the kernel?

        Thanks for your help!

  • function vpbe_encoder_set_dac()

    \linux-2.6.18_pro500\drivers\media\video\davinci\Vpbe_encoder.c

     

  • for the record purpose, also check file \linux-2.6.18_pro500\drivers\media\video\davinci\Davinci_platform.c

    pay attention to any functions (standard of your choice) that call davinci_writel(0xwhatever, DM3XX_VDAC_CONFIG);

    make sure VDAC_CONFIG register enabled HD DAC mode

     

     

     

  • Hi :

    Our project need output the CVBS and S-Video at the same time.

     I test the function on the SEED's EVM platform using the color bar.But I only get the color CVBS from the J33's pb_out pin when the register DACSEL(0x01c71ef4) setting to 0x201 or 0x102 .

    But I only get the Y of the s-video from the J33's pb_out pin when the register DACSEL(0x01c71ef4) setting to 0x210 or 0x012 .

    From the result ,I think only the DAS1S is ok.

    The RGB is ok if play the HD720 file.

     

    Please help me check the issue .Thanks for your support!

    The below is the register setting.


    root@SEED_DVS365:/opt/dm365# ./readl  0x1c4002c 0 1
    00000  081141EF

    root@SEED_DVS365:/opt/dm365# ./readl 0x01c71e08 0 1
    00000  00000100

    root@SEED_DVS365:/opt/dm365# ./readl 0x1c71e00 0 80
    00000  00000003 00000000 00000100 00000000
    00010  00000000 00000000 00000000 00000000
    00020  00000000 00000000 00000000 00000000
    00030  00000000 00000000 00000000 00000000
    00040  0000FF00 00000000 00000000 00000000
    00050  00000000 00000000 00000000 00000000
    00060  00000000 00000000 00000000 00000000
    00070  00000000 00000000 00000000 00000000
    00080  00000000 00000000 00000000 00000000
    00090  00000000 00000000 00000000 00000000
    000A0  00000000 00000000 00000000 00000000
    000B0  00000000 00000000 00000000 00000000
    000C0  00000000 00000000 00000000 0000017A
    000D0  00000000 00000000 00000000 00000000
    000E0  00000100 00000000 00000000 00000000
    000F0  00000000 00000201 00000000 00000000
    00100  00000400 0000057C 00000159 000002CB
    00110  000006EE 00000400 0000057C 00000159
    00120  000002CB 000006EE 00000000 00000001
    00130  00000002 00000000 00000000 00000000
    00140  00000001 00000000 00000000 00000000
    00150  00000000 00000000 00000000 00000000
    00160  00000000 00000000 00000000 00000000
    00170  0000D642 00000000 00000000 00000000
    00180  00000000 00000000 00000000 00000000
    00190  00000000 00000000 00000000 00000000
    001A0  00000000 00000000 00000000 00000000
    001B0  00000000 00000000 00000000 00000000
    001C0  00000000 00000000 00000000 00000000
    001D0  00000000 00000000 00000000 00000000
    001E0  00000000 00000000 00000087 0000FFE7
    001F0  00000008 00000000 00000000 00000000

  • set DACSEL to 0x21

                // Ch-A, DAC0S, compy, output S-Video Y
                // Ch-B, DAC1S, compb, output S-Video C
                // Ch-C, DAC2S, compr, output CVBS

    works for me