[Openchrome-users] only NTSC modes in VT1626 TV-out modes? -> need PAL

Olivier Sessink lists
Fri Jul 28 13:30:36 PDT 2006


Hi all,

with some hints from Ken Huisman I started to try to port the timings
from the via framebuffer code into the openchrome driver for the VT1625
TV encoder (so I can use my TV out on a PAL television).

I started with tbl1625.h on PAL 640x480

I took static u16 VT1625_P640x480_VN[] and copied the offsets 0x00 to
0x64 to the VT1625Table variable in via_vt162x.h

I noticed that offset 0x1A is actually missing in the via framebuffer
code?? So I copied the value from the NTSC 640x480 values.

Then I noticed that another variable in the via framebuffer code has
some register settings, so I updates several values from static u16
VT1625_P640x480_SDTV_RGB_VN[] into my timings.

Then I could not find where the last items in the struct where coming
from, notably:
   CARD8   RGB[6];
   CARD8   YCbCr[3];
   CARD32  SubCarrier;
   CARD32  DotCrawlSubCarrier;
so I copied those from the NTSC 640x480 table as well

My result is copied below, but it only gives a black screen on my
television.... What should I change in the process to get the right
register values?

regards,
	Olivier

    { "640x480", 640, 480, TVTYPE_PAL, 0, 0,
      { 0x03,    0, 0x10, 0x40, 0x13, /* 0x03 and 0x04 adapted from
VT1625_P640x480_SDTV_RGB_VN */
        0,       0, 0xF0, 0x4E, 0x14, /* 0x07 - 0x09 adapted from
VT1625_P640x480_SDTV_RGB_VN */
        0x88,    0, 0x55, 0x5E, 0   ,
        0xB0,    0, 0x80, 0x0A, 0x09,
        0x19, 0x28, 0xCB, 0x8A, 0x09,
        0x2A,  /* offset 0x19 */
        0x02, /* offset 0x1A, this one is copied from the NTSC table and
not from the via framebuffer driver */
        0x50, 0x41, 0x80, /*1B-1D*/
        0,    0x10, 0x17, 0x1C, 0x35, /*1E-22, 0x20 adapted from
VT1625_P640x480_SDTV_RGB_VN  */
        0x7D, 0x02,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
      { 0xC5,    0x0F,    0, 0x01, 0x10,
        0x51, /* offset 0x4F */

        0xE7, 0x83, 0x23, 0x57, 0x22, /*50-54, 0x51 adapted from
VT1625_P640x480_SDTV_RGB_VN*/
        0x5F, 0x71, 0x7F, 0x23, 0x94, /*55-59, 0x56 adapted from
VT1625_P640x480_SDTV_RGB_VN*/
        0xD0, 0x1C, 0x8F, 0x16, /* offset 0x5D */
        0xE1, 0x38, 0x7A, 0x28, 0x00,/*5E-62, 0x62 adapted from
VT1625_P640x480_SDTV_RGB_VN*/
        0xBF, 0x03 /* offset 0x64 */},
      /* RBG 65,66,67,27,2b,2c */
      { 0x55, 0x37, 0x5C,    0,    0,    0 },
      /* Y-Cb-Cr 65,66,67 */
      { 0x55, 0x56, 0x55 },
      /* Subcarrier 19,18,17,16, DotCrawl Subcarrier (set bit 3 of reg
11 then subcarrier) */
      0x21F07BD6, 0x21F087BE,
    },





More information about the Openchrome-users mailing list