120 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
daa6a5f254 release 25.0.1
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-v4l-25.0.1
2026-01-30 16:47:24 +01:00
Enrico Weigelt, metux IT consult
7c7ecbdf70 configure.ac: use new xserver driver build macros
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 16:35:41 +01:00
Enrico Weigelt, metux IT consult
3c998c0752 .github: increase xserver dependency
Upcoming changes need a little bit newer xserver SDK.
2026-01-30 15:25:28 +01:00
Enrico Weigelt, metux IT consult
6affbbc248 little formatting cleanup
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 13:25:52 +01:00
Enrico Weigelt, metux IT consult
bd0d8b0484 include statement cleanup
Only include what's necessary, and sorting them a little bit.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 13:04:16 +01:00
Enrico Weigelt, metux IT consult
ac395bbeca fix int -> pointer typecast warnings
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 12:53:23 +01:00
Enrico Weigelt, metux IT consult
9fbe8fbeab fix XF86AttributeRec assignment const issue
Unfortunately this struct is using non-const name field, but actually
may allow const in this case, because nobody's trying to free() these.

Until we've finally got a really clean solution, just do a typecast here.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 12:49:16 +01:00
Enrico Weigelt, metux IT consult
b224dc8ed6 drop unnecessary include of xf86PciInfo.h
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-30 12:34:37 +01:00
Enrico Weigelt, metux IT consult
ca2b972365 replace obsolete "pointer" typedef by plain void*
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-07 18:59:30 +01:00
Enrico Weigelt, metux IT consult
9b683bb145 configure.ac: drop obsolete AM_MAINTAINER_MODE
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-30 16:17:15 +01:00
Enrico Weigelt, metux IT consult
0f9e231194 .github: update actions version
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-30 16:16:27 +01:00
Enrico Weigelt, metux IT consult
bf621b6ec5 .github: use new common driver build actions
Using the new driver build actions in X11Libre/actions-build-driver repo,
instead of having lots of duplicated pipeline and script in all the
individual driver repos.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 10:05:31 +01:00
Enrico Weigelt, metux IT consult
6582ec2b12 configure.ac: increase minimum xserver version to 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-19 16:19:55 +01:00
Enrico Weigelt, metux IT consult
0db0e56806 release 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-v4l-25.0.0
2025-12-18 19:23:19 +01:00
Enrico Weigelt, metux IT consult
e1ae793d44 configure.ac: tiny formatting cleanup
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 17:43:43 +01:00
Enrico Weigelt, metux IT consult
3af49aa1ee drop obsolete #ifdef XFree86LOADER
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:50:44 +01:00
Enrico Weigelt, metux IT consult
37fd765aab configure.ac: replace DRIVER_NAME symbol by actual name
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:33:42 +01:00
Enrico Weigelt, metux IT consult
d0469938f1 configure.ac: drop obsolete checks for libc functions
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 12:23:15 +01:00
Enrico Weigelt, metux IT consult
bdce886364 drop obsolete .gitlab-ci.yml
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:55:58 +01:00
Enrico Weigelt, metux IT consult
a2e7ab6168 drop obsolete #ifdef HAVE_CONFIG_H
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:19:16 +01:00
Alan Coopersmith
0bc8abada1 Improve man page formatting
More closely follow common style as described on
https://man7.org/linux/man-pages/man7/man-pages.7.html
and fix warnings raised by `mandoc -T lint` and `groff -rCHECKSTYLE=10`

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-v4l/-/merge_requests/7>
2025-12-16 10:50:50 +01:00
Enrico Weigelt, metux IT consult
bf3ce6f067 configure.ac: fix package name and issue tracker URL
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-15 19:28:15 +01:00
Enrico Weigelt, metux IT consult
6797508c03 bump minimal xorg version to 1.18
1.18 was released a decade ago, so it seems reasonable stop supporting
older ones.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-08 18:35:03 +01:00
b-aaz
b472b97892 configure: Automatically detect the default xorg-module-dir.
The module directory has changed to a per ABI folder in the xlibre-xserver.
Now the default value of `xorg-module-dir` will be detected from the `moduledir` variable in xorg-server.pc.

Signed-off-by: b-aaz <b-aazbsd.proton.me>
xlibre-xf86-video-v4l-0.3.0.2
2025-07-29 18:40:57 +02:00
Enrico Weigelt, metux IT consult
ebc39b2367 .github: add CI pipeline
This pipeline builds the driver against the latest Xserver stable
release as well as current master.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 18:33:39 +02:00
callmetango
7dc032a721 .github: Add issue forms
Add the following forms for issue creation:

* Bug report
* Feature request
* Code change
* Documentation update
* Organizational task

* add issue type selection page on "New Issue" call
* mention Github Discussions and the mailing list where appropriate

Part-of: X11Libre/misc#156
Signed-off-by: callmetango <callmetango@users.noreply.github.com>
2025-07-07 16:48:33 +02:00
Enrico Weigelt, metux IT consult
eb1e55874c Use asprintf() instead of Xasprintf()
This driver is Linux-only, so it's safe to assume asprintf() here.

It's one of the last few drivers ever using that function, so
blocking its removal from Xorg ABI.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-v4l/-/merge_requests/5>
xlibre-xf86-video-v4l-0.3.0.1
2025-03-07 09:51:42 +01:00
Alan Coopersmith
36ffdb5239 Fix -Wdiscarded-qualifiers warning in AddV4LEnc()
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-16 13:38:49 -08:00
Alan Coopersmith
7899231c65 Quiet -Wredundant-decls warnings for strlcat and strlcpy
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-16 13:30:10 -08:00
Alan Coopersmith
10e0e12fcf Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 13:08:07 -08:00
Alan Coopersmith
07871d6be3 configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
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>
2024-01-16 13:07:35 -08:00
Alan Coopersmith
6367e7e46d gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-07 09:06:39 -07:00
Alan Coopersmith
1f9068a1c8 gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09 12:07:00 -08:00
Alan Coopersmith
c5235058aa gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29 15:49:27 -08:00
Alan Coopersmith
cb3970480f Fix spelling/wording issues
Found by using:
    codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29 15:48:26 -08:00
Alan Coopersmith
a375e88f89 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29 15:45:50 -08:00
Alan Coopersmith
3df0a355f9 Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07 19:18:13 -08:00
Peter Hutterer
b3244827d9 Fix ioctl return value handling
Found by coverity

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
2018-10-08 13:16:35 +10:00
Peter Hutterer
3370b6b6a4 Fix handling of realloc failure
Coverity complaint and whatnot

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
2018-10-08 13:16:28 +10:00
Peter Hutterer
a020fda02f Ensure the device name is null-terminated
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-08 13:10:14 +10:00
Peter Hutterer
3f9022bdfe Remove unused variable osname
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-10-08 13:07:25 +10:00
Adam Jackson
03ff22bd9e v4l 0.3.0
Signed-off-by: Adam Jackson <ajax@redhat.com>
xf86-video-v4l-0.3.0
2018-08-14 14:58:30 -04:00
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