Index | Thread | Search

From:
Kirill A. Korinsky <kirill@korins.ky>
Subject:
Increase the default count of /dev/videoX
To:
OpenBSD tech <tech@openbsd.org>
Date:
Tue, 07 Jan 2025 21:57:06 +0100

Download raw body.

Thread
tech@

I suggest increasing the default count of /dev/videoX devices.

It's quite common for a laptop to have a visible light camera, an
infrared camera, or both, in addition to a camera connected via USB.

Here's a patch that increases the count of /dev/videoX devices from 2 to 4.

We might also consider setting a higher default value, such as 8.

Thoughts? Ok?

Index: etc/MAKEDEV.common
===================================================================
RCS file: /home/cvs/src/etc/MAKEDEV.common,v
diff -u -p -u -p -r1.121 MAKEDEV.common
--- etc/MAKEDEV.common	3 Sep 2024 09:35:46 -0000	1.121
+++ etc/MAKEDEV.common	7 Jan 2025 20:00:54 -0000
@@ -144,7 +144,7 @@ twrget(all, lpt, lpa, 0, 1, 2)dnl
 target(all, joy, 0, 1)dnl
 twrget(all, rnd, random)dnl
 target(all, uk, 0)dnl
-twrget(all, vi, video, 0, 1)dnl
+twrget(all, vi, video, 0, 1, 2, 3)dnl
 twrget(all, speak, speaker)dnl
 target(all, asc, 0)dnl
 target(all, radio, 0)dnl

--
wbr, Kirill