I have VIA CX700 (PCI_ID = 0x3157), and this is how it works for me (with 
limitations):
(this should be on users not on developers)

1. I use framebuffer driver from VIA (http://www.viaarena.com); the version is 
2.6.00.03a.
   There is binary drivers for some Linux distributions, I use the sources.
2. In DirectFB sources (version 1.0.0), in file 
/DirectFB-1.0.0/systems/fbdev/fb.h insert (at line 108)
   #define FB_ACCEL_VIA_UNICHROME 50 . As you notice, VIA driver use another id 
from that expected by DirectFB Unichrom gfxdriver.
3. In DirectFB sources in file /DirectFB-1.0.0/gfxdrivers/unichrome/uc_probe.h 
insert in structure 'uc_via_devices[]' (line 38)
   {0x3157, "CX700/Unichrome Pro II"}, .This is for CX700, your chip (0x3344) 
is already there.
4. Compile & reinstall DirectFB.
5. Load framebuffer driver: modeprobe viafb mode=1024x768 refresh=75 bpp=16 
accel=1 .
   The mode, refresh, bpp is for example and is optional, but 'accel=1' is 
mandatory,
   otherwise directfb driver does not recognize the Unichrome framebuffer.
   
Limitations:
  -The VIA framebuffer driver does not have FBIO_WAITFORVSYNC ioctl.
  -The Overlay (Layer1) does not work properly (YUV formats, colorkey).

If you already do this and still don't work:
 -be sure to remove other framebuffer driver; the framebuffer from DirectFB is 
in
  /lib/modules/'linux_version'/extra/, not in 
/lib/modules/'linux_version'/kernel/drivers/video/.
 -be sure to remove other version of directfb that may by installed by your 
Linux distribution.
 
Notes:
 -My Linux is SuSE 9.3 (kernel 2.6.11).
 -For better results don't compile directfb with --enable-debug.

Good luck,
Horia


_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to