On 30 Sep 2008, at 01:23, Tommi Lundell wrote: > Is following even possible with DirectFB?
The challenge is probably to get the video output clock on the MGA programmed somehow, since it's currently done automatically, and not with modelines as this approach uses. It looks like the MGA can take an external clock signal as well, effectively working as a genlock. Maybe have a look at the fb sources in the kernel fb driver, eg. linux/ drivers/video/matrox/matroxfb_misc.c. Also, directfb sources, DirectFB/gfxdrivers/matrox/regs.h, defines the following register & values for crtc2 output (tv output); #define C2CTL 0x3C10 # define C2EN 0x00000001 # define C2PIXCLKSEL_PCICLK 0x00000000 # define C2PIXCLKSEL_VDOCLK 0x00000002 # define C2PIXCLKSEL_PIXPLL 0x00000004 # define C2PIXCLKSEL_VIDPLL 0x00000006 /* SYSPLL on G400 */ # define C2PIXCLKSEL_VDCLK 0x00004000 /* G450/G550 only */ # define C2PIXCLKSEL_CRISTAL 0x00004002 /* G450/G550 only */ # define C2PIXCLKSEL_SYSPLL 0x00004004 /* G450/G550 only */ You'll see in DirectFB/gfxdrivers/matrox/matrox_crtc2.c that the default value for this register is if (mdev->g450_matrox) mcrtc2->regs.c2CTL |= C2PIXCLKSEL_CRISTAL; else mcrtc2->regs.c2CTL |= C2PIXCLKSEL_VDOCLK; It would be interesting to experiment a bit with PIXCLK, PIXPLL to see if something can be used there. Maybe this is more for the devel list than the users list.. -- Torgeir Veimo [EMAIL PROTECTED] _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users