summaryrefslogtreecommitdiff
path: root/src/z4l.c
AgeCommit message (Collapse)Author
2012-07-26Initial stab at converting geode to new X1.13 APIMaarten Lankhorst
Preparing to compile geode on X 1.13 All compiler errors are gone as far as I can tell, but I lack the hardware to verify it works as well.
2012-07-11Whitespace cleanup using ../modular/x-indent.shMartin-Éric Racine
2012-01-02z4l.c: drop unnecessary #include linux/types.hMartin-Éric Racine
On hybrid platforms, such as Debian GNU/KFreeBSD, that support V4L2 and yet without providing the full complement of Linux headers, ZTV fails to compile because of this missing header. Given how removing this header does not adversely affect compiling, plus it might improve portability, we went ahead and removed it. Nonetheless, as observed by Gaetan Nadon, z4l.c includes code that explicitly disables the module on any OS other than Linux: LoaderGetOS(&osname, NULL, NULL, NULL); if (osname == NULL || strcmp(osname, "linux") != 0) { if (errmaj) *errmaj = LDR_BADOS; if (errmin) *errmin = 0; return NULL; } Still, in the interest of OS neutrality, we decided to leave recent autoconf magic in place and to let OS vendors figure out how to get the module loaded on non-Linux OS themselves. Patches are welcome. Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
2011-11-21Move back ztv with geode driverGaetan Nadon
Now we have a clean separation between CPP flags and C Flags Only the C Flags apply to both geode and ztv driver, however it is not worth doing a per target compilation. Should some flags become mutually exclusive and if we want to have both target in the same makefile, add the incompatible flag on the appropriate target, example: geode_drv_la_CFLAGS = $(AM_CFLAGS) -newCFlag and/or geode_drv_la_CPPFLAGS = $(AM_CPPFLAGS) -newCPPFlag Note that both AM_CFLAGS and AM_CPPFLAGS are picked-up by both geode and ztv driver target. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-11-21Move ztv driver to it's own directoryGaetan Nadon
The convention is to have the video driver (geode) in the src subdir and any other targets (utils, apps, other drivers) in their own directory. It makes it much simpler to right a correct makefile and to set conditional compile. This highlighted a few things to fix. For now, the directory includes have not been copied as they are required. The AM_CCASFLAGS is not required either as there is no assembler. Other than that, the gcc command issued has no differences. Other unrequired defines could be removed later. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-02-07Stop including "linux/videodev.h" in z4l.cMartin-Éric Racine
V4L1 support was dropped as of Linux kernel 2.6.38
2010-09-01Replace xalloc/xrealloc/xfree/xcalloc with malloc/realloc/free/callocFrank Huang
* Replace the deprecated functions with new ones Refer to "/xserver/include/os.h" Signed-off-by: Frank Huang <frankr.huang@amd.com>
2010-08-09Correct two outstanding compiler warningsFrank Huang
*Correct the type from "Q_WORD" to "QQ_WORD" in panel.c *Correct the tyep from "char" to "const char" in z4l.c Signed-off-by: Frank Huang <frankr.huang@amd.com>
2009-07-28geode: update for resources/RAC API removalDave Airlie
2008-08-15s/XF86_VERSION_CURRENT/XORG_VERSION_CURRENT/Adam Jackson
2008-03-14Massive coding style fixup - move to X coding style,Jordan Crouse
remove trailing whitespace, zap unused files and remove blocks of ifdefed out code.
2008-01-14Basic OLPC support from Bernardo Innocenti and Jordan Crouse.xf86-video-amd-2.7.7.5Martin-Éric Racine
2008-01-08Trivial patch to fix the ZTV moduleMartin-Éric Racine
2007-05-31Un-libcwrap.Adam Jackson
2006-09-28Update for 7.2 - fix config.h and other include problems.Jordan Crouse
This closes bug 8290 by applying the patch from Andres Salomon.
2006-07-06Initial commit of the xf86-video-amd treeJordan Crouse