Commit Graph

78 Commits

Author SHA1 Message Date
Adam Jackson
33c2170e89 Fix distcheck
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-08-14 14:58:18 -04:00
Hans de Goede
bbf9462a4e Fix build post xserver 1.17
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-08-14 14:58:03 -04:00
Adam Jackson
26f1e15569 Revert "v4l 0.3.0"
Doesn't distcheck yet, sigh.

This reverts commit 1eef30fdee.
2018-08-14 14:55:19 -04:00
Adam Jackson
1eef30fdee v4l 0.3.0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-08-14 14:43:26 -04:00
Adam Jackson
b45bef53fc Remove a bogus memset
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>
2018-08-14 14:43:26 -04:00
Mihail Konev
0cbeee8e03 autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26 14:00:21 +10:00
Adam Jackson
74d39213b4 Remove call to LoaderGetOS
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>
2017-01-24 09:43:43 -05:00
Cyril Brulebois
95fcc10d96 Bump version for development.
Signed-off-by: Cyril Brulebois <kibi@debian.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-06-30 12:14:53 -03:00
Mauro Carvalho Chehab
ca09693ba2 Fix standard video size detection
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-11 09:24:53 -02:00
Mauro Carvalho Chehab
f7e6dcee73 Fix arguments for v4l_check_yuv
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-11 09:24:53 -02:00
Mauro Carvalho Chehab
6167b289f1 Provide a more consistent message if FBUF fails
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-11 09:24:53 -02:00
Mauro Carvalho Chehab
362a97d43c Return BadMatch if a Port Attribute is not found
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-11 09:24:53 -02:00
Mauro Carvalho Chehab
2cca68d701 Fix Get/Set Port Attribute logic
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-11 09:24:53 -02:00
Mauro Carvalho Chehab
f344cb78ef Use the fourcc header instead of redefining it inside the code
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-02-11 09:24:53 -02:00
Mauro Carvalho Chehab
436829a9d6 Coding style Cleanup
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-11 09:24:48 -02:00
Mauro Carvalho Chehab
f4ccca1dec Port xf86-video-v4l driver to V4L2
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>
2011-02-11 07:55:25 -02:00
Gaetan Nadon
f4a94cfaef config: add comments for main statements 2010-07-22 20:24:42 -04:00
Gaetan Nadon
ecfd000f3e config: replace deprecated use of AC_OUTPUT with AC_CONFIG_FILES
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21 16:07:00 -04:00
Gaetan Nadon
e47ceda611 config: replace deprecated AC_HELP_STRING with AS_HELP_STRING
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21 14:37:42 -04:00
Gaetan Nadon
d1f217447c config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21 14:05:23 -04:00
Gaetan Nadon
1da8c1e13b config: complete AC_INIT m4 quoting
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21 09:27:42 -04:00
Gaetan Nadon
d1270c79a4 config: remove unrequired AC_SUBST([XORG_CFLAGS])
This macro is called by PKG_CHECK_MODULES

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-20 21:44:58 -04:00
Gaetan Nadon
c3d768e984 config: remove unrequired AC_HEADER_STDC
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-20 20:24:42 -04:00
Gaetan Nadon
a429958577 config: remove AC_PROG_CC as it overrides AC_PROG_C_C99
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-20 19:41:31 -04:00
Gaetan Nadon
58c08d3906 config: update AC_PREREQ statement to 2.60
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-20 18:45:19 -04:00
Gaetan Nadon
1d6d285a5e config: upgrade to util-macros 1.8 for additional man page support
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
The value of MAN_SUBST is the same for all X.Org packages.
2010-07-20 17:38:00 -04:00
Gaetan Nadon
45a5eb8cab config: header files are part of the source not in EXTRA_DIST
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-05-26 16:25:25 -04:00
Alan Coopersmith
70bdb4d93a Update Sun license notices to current X.Org standard form
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-01-15 15:06:39 -08:00
Gaetan Nadon
0eaed2f59c configure.ac: remove unused sdkdir=$(pkg-config...) statement
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-12-30 15:13:01 -05:00
Gaetan Nadon
e0f72fbed7 Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
2009-11-23 09:25:06 -05:00
Gaetan Nadon
8e4e3ba247 INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Automake 'foreign' option is specified in configure.ac.
Remove from Makefile.am
2009-10-28 14:41:41 -04:00
Gaetan Nadon
2d55ea6e19 INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
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-28 14:09:10 -04:00
Gaetan Nadon
d72d75a57f Several driver modules do not have a ChangeLog target in Makefile.am #23814
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-26 12:54:22 -04:00
Gaetan Nadon
19811b8245 .gitignore: use common defaults with custom section # 24239
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 13:05:12 -04:00
Gaetan Nadon
b00a028be1 .gitignore: use common defaults with custom section # 24239
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 12:34:18 -04:00
Alan Coopersmith
09f1117d03 Remove xorgconfig & xorgcfg from See Also list in man page 2009-01-09 16:37:45 -08:00
Julien Cristau
610a340050 Add missing includes.
Fixes missing declaration of close() and ioctl().
2008-06-09 20:38:12 +02:00
Adam Jackson
509d291479 v4l 0.2.0 xf86-video-v4l-0.2.0 2008-03-19 16:43:42 -04:00
Adam Jackson
b0dad860b9 Fix ioctl() outparameter on LP64 systems. 2008-03-19 16:42:18 -04:00
Adam Jackson
edfeb249a8 Death to RCS tags. 2008-03-19 16:14:52 -04:00
Matthieu Herrb
eb742cfb9e Makefile.am: nuke RCS Id 2008-03-09 00:03:41 +01:00
Fabrice Lorrain
a2cddcf034 Fix typo in the manpage.
(Debian bug #466098)
2008-02-16 18:07:48 +01:00
James Cloos
6260e7a816 Add *~ to .gitignore to skip patch/emacs droppings 2007-09-03 05:52:48 -04:00
James Cloos
68ef5a3537 Rename .cvsignore to .gitignore 2007-08-23 19:26:00 -04:00
Adam Jackson
0fb67e3f76 Bump to 0.1.1 for Xv changes. v4l-0_1_1 XORG-7_1 2006-04-08 01:52:08 +00:00
Aaron Plattner
3288506bb3 Add a DrawablePtr argument to the XV functions to pave the way for
redirected video.
2006-04-07 23:17:04 +00:00
Adam Jackson
0ae947b760 Unlibcwrap. Bump server version requirement. Bump to 0.1.0. v4l-0_1_0 2006-04-07 21:45:55 +00:00
Kevin E Martin
f00943051a Update package version for X11R7 release. XORG-7_0 2005-12-21 02:30:04 +00:00
Adam Jackson
58443583fb Stub COPYING files 2005-12-19 16:25:56 +00:00
Alan Coopersmith
0f0ae40ac9 Typo fixes, mailing list & url updates, and other changes to prepare for
X11R6.9 & 7.0 releases.
2005-12-19 09:07:50 +00:00