summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-01-16Fix -Wdiscarded-qualifiers warning in AddV4LEnc()HEADmasterAlan Coopersmith1-4/+11
v4l.c: In function 'AddV4LEnc': v4l.c:920:16: warning: passing argument 1 of 'sprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 920 | sprintf(enc->name,"%s-%s",norm,fixname(input)); | ~~~^~~~~~ In file included from v4l.c:20: /usr/include/stdio.h:363:38: note: expected 'char * restrict' but argument is of type 'const char *' 363 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16Quiet -Wredundant-decls warnings for strlcat and strlcpyAlan Coopersmith1-1/+4
In file included from /usr/include/xorg/misc.h:119, from /usr/include/xorg/xf86str.h:37, from /usr/include/xorg/xf86.h:44, from v4l.c:25: /usr/include/xorg/os.h:595:1: warning: redundant redeclaration of 'strlcpy' [-Wredundant-decls] 595 | strlcpy(char *dst, const char *src, size_t siz); | ^~~~~~~ In file included from v4l.c:19: /usr/include/string.h:506:15: note: previous declaration of 'strlcpy' with type 'size_t(char * restrict, const char * restrict, size_t)' {aka 'long unsigned int(char * restrict, const char * restrict, long unsigned int)'} 506 | extern size_t strlcpy (char *__restrict __dest, | ^~~~~~~ /usr/include/xorg/os.h:597:1: warning: redundant redeclaration of 'strlcat' [-Wredundant-decls] 597 | strlcat(char *dst, const char *src, size_t siz); | ^~~~~~~ /usr/include/string.h:512:15: note: previous declaration of 'strlcat' with type 'size_t(char * restrict, const char * restrict, size_t)' {aka 'long unsigned int(char * restrict, const char * restrict, long unsigned int)'} 512 | extern size_t strlcat (char *__restrict __dest, | ^~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16Add X.Org's standard C warning flags to AM_CFLAGSAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith1-2/+1
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008, so it's time to rely on it. Clears autoconf warnings: configure.ac:45: warning: The macro 'AC_PROG_LIBTOOL' is obsolete. configure.ac:45: You should run autoupdate. aclocal.m4:3551: AC_PROG_LIBTOOL is expanded from... configure.ac:45: the top level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-07gitlab CI: ensure libtool is installed in build containerAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29Fix spelling/wording issuesAlan Coopersmith2-4/+4
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-10-08Fix ioctl return value handlingPeter Hutterer1-6/+9
Found by coverity Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Dave Airlie <airlied@redhat.com>
2018-10-08Fix handling of realloc failurePeter Hutterer1-1/+6
Coverity complaint and whatnot Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Dave Airlie <airlied@redhat.com>
2018-10-08Ensure the device name is null-terminatedPeter Hutterer1-2/+3
And expand the size to 18, because the stack array we copied this into is 18 bytes long. This covers us for up to 999 (kernel) v4l devices and that is definitely not a reason to use the "640k ought to be enough" meme. Found by - you guessed it - coverity! Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Dave Airlie <airlied@redhat.com>
2018-10-08Remove unused variable osnamePeter Hutterer1-1/+0
Coverity is unhappy and there's enough unhappiness in this world already, so let's go for the low-hanging fruit. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Dave Airlie <airlied@redhat.com>
2018-08-14v4l 0.3.0xf86-video-v4l-0.3.0Adam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-08-14Fix distcheckAdam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-08-14Fix build post xserver 1.17Hans de Goede1-0/+4
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-08-14Revert "v4l 0.3.0"Adam Jackson1-1/+1
Doesn't distcheck yet, sigh. This reverts commit 1eef30fdee22f28c85d2bb2d6b3082e3e1dfa39f.
2018-08-14v4l 0.3.0Adam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-08-14Remove a bogus memsetAdam Jackson1-1/+0
We get this warning: v4l.c:1154:39: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] It's correct enough, but ->cap is already zeroed by the previous memset. Just remove the bogus one. Fixes: xorg/driver/xf86-video-v4l#1 Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-24Remove call to LoaderGetOSAdam Jackson1-16/+2
If you're not using Linux, this isn't likely to build let alone run. And if it _does_ build on non-Linux, it's probably because someone went out of their way to try to make it work. Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-06-30Bump version for development.Cyril Brulebois1-1/+1
Signed-off-by: Cyril Brulebois <kibi@debian.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-02-11Fix standard video size detectionMauro Carvalho Chehab1-1/+17
video width/height size can vary not only as a function of the video standard but also in function of device capabilities. Due to that, the code were trying to get those info from the hardware. However, due to a driver bug, the info is not properly filled when the video standard is changed. While I intend to fix this inside the drivers, the current logic doesn't work with the current stable kernels. So, use an alternative way of getting this info, just using video standards information. Let's keep the not working code there, in order to make easy to return, after fixing the drivers. We'll probably need to check for driver versions after reenabling the correct (not working) code, or to use the new VIDIOC ioctl's to enumberate the supported formats. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-02-11Fix arguments for v4l_check_yuvMauro Carvalho Chehab1-6/+13
The device name and the file descriptors are wrong at the cal for v4l_check_yuv(). Due to that, the driver were falling back to work with RGB formats. While here, add a code to prevent V4L driver to work if no video adapter provide Xv overlay method. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-02-11Provide a more consistent message if FBUF failsMauro Carvalho Chehab1-1/+5
Instead of providing an useless info that FBUF fails, print an error indicating what's the Fourcc format that fails. Also, on debug mode, prints a message indicating the selection of a given fourcc. This helps to verify if both the video adapter and the video capture board were set to the same video format. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-02-11Return BadMatch if a Port Attribute is not foundMauro Carvalho Chehab1-0/+4
Fix a small non-compliance issue: if a port attribute is not known, according with Xv specs, it should return BadMatch, and not BadValue. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-02-11Fix Get/Set Port Attribute logicMauro Carvalho Chehab1-80/+29
There are several issues at GPA/SPA logic: - driver tries to limit minimum/maximum values to -1000/1000; - If yuv_format is available, all GPA/SPA are sent to the overlay encoder at the video adapter; - The most used return condition is an error. Rework the entire logic to fix the above bugs and clean the code. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-02-11Use the fourcc header instead of redefining it inside the codeMauro Carvalho Chehab1-13/+1
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-02-11Coding style CleanupMauro Carvalho Chehab1-658/+658
It is hard to work on a file that has multiple coding styles. As we're rewriting the entire file, the better is to remove trailing spaces and fix all the alignment issues, using 4 spaces for alignment and not using tab. No functional changes are made on this patch. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-02-11Port xf86-video-v4l driver to V4L2Mauro Carvalho Chehab3-600/+2562
V4L1 API was dropped on kernel 2.6.38. Even the emulation layer inside kernel was dropped. While it might still be possible to use X with libv4l and a LD_PRELOADER setup, the proper way is to port the driver to use the V4L2 API. This change brings some improvements to the code, as now all integer/boolean/menu controls are visible, and all video standards. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-07-22config: add comments for main statementsGaetan Nadon1-6/+6
2010-07-21config: replace deprecated use of AC_OUTPUT with AC_CONFIG_FILESGaetan Nadon1-4/+5
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21config: replace deprecated AC_HELP_STRING with AS_HELP_STRINGGaetan Nadon1-1/+1
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon1-1/+1
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21config: complete AC_INIT m4 quotingGaetan Nadon1-2/+2
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-20config: remove unrequired AC_SUBST([XORG_CFLAGS])Gaetan Nadon1-1/+0
This macro is called by PKG_CHECK_MODULES Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-20config: remove unrequired AC_HEADER_STDCGaetan Nadon1-2/+0
Autoconf says: "This macro is obsolescent, as current systems have conforming header files. New programs need not use this macro". Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-20config: remove AC_PROG_CC as it overrides AC_PROG_C_C99Gaetan Nadon1-1/+0
XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls AC_PROG_C_C99. This sets gcc with -std=gnu99. If AC_PROG_CC macro is called afterwards, it resets CC to gcc. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-20config: update AC_PREREQ statement to 2.60Gaetan Nadon1-1/+1
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-20config: upgrade to util-macros 1.8 for additional man page supportGaetan Nadon2-21/+7
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages.
2010-05-26config: header files are part of the source not in EXTRA_DISTGaetan Nadon1-4/+3
Only files that are not part of the source used to build the driver are listed in EXTRA_DIST Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-01-15Update Sun license notices to current X.Org standard formAlan Coopersmith1-22/+19
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-12-30configure.ac: remove unused sdkdir=$(pkg-config...) statementGaetan Nadon1-1/+0
The sdkdir variable isn't use, so remove the statement. Acked-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-11-23Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon1-0/+1
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-10-28INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon1-1/+0
Automake 'foreign' option is specified in configure.ac. Remove from Makefile.am
2009-10-28INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon2-3/+6
Add missing INSTALL file. Use standard GNU file on building tarball README may have been updated Remove AUTHORS file as it is empty and no content available yet. Remove NEWS file as it is empty and no content available yet.
2009-10-26Several driver modules do not have a ChangeLog target in Makefile.am #23814Gaetan Nadon3-61/+13
The git generated ChangeLog replaces the hand written one. Update configure.ac to xorg-macros level 1.3. Use XORG_DEFAULT_OPTIONS which replaces four XORG_* macros Update Makefile.am to add ChangeLog target if missing Remove ChangeLog from EXTRA_DIST or *CLEAN variables This is a pre-req for the INSTALL_CMD
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon2-8/+0
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon1-6/+64
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.