]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: stkwebcam: deprecate driver, move to staging
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 18 May 2022 09:20:43 +0000 (10:20 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:31 +0000 (10:30 +0100)
This is a very old driver for very old hardware and it is one of
the very few remaining that does not use the vb2 framework (or
even the older videobuf framework), so deprecate this driver
and move it to staging with the intent to removing it altogether
by the end of 2022.

If someone wants to keep this driver, then it has to be converted
to use vb2.

Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/Kconfig
drivers/media/usb/Makefile
drivers/staging/media/Kconfig
drivers/staging/media/Makefile
drivers/staging/media/stkwebcam/Kconfig [moved from drivers/media/usb/stkwebcam/Kconfig with 68% similarity]
drivers/staging/media/stkwebcam/Makefile [moved from drivers/media/usb/stkwebcam/Makefile with 63% similarity]
drivers/staging/media/stkwebcam/TODO [new file with mode: 0644]
drivers/staging/media/stkwebcam/stk-sensor.c [moved from drivers/media/usb/stkwebcam/stk-sensor.c with 100% similarity]
drivers/staging/media/stkwebcam/stk-webcam.c [moved from drivers/media/usb/stkwebcam/stk-webcam.c with 100% similarity]
drivers/staging/media/stkwebcam/stk-webcam.h [moved from drivers/media/usb/stkwebcam/stk-webcam.h with 100% similarity]

index 8de08704f8e4e05e78beb15c4c9ae73c8075a003..af88e076638815791216a1aba9a901a25f9f090c 100644 (file)
@@ -17,7 +17,6 @@ source "drivers/media/usb/cpia2/Kconfig"
 source "drivers/media/usb/gspca/Kconfig"
 source "drivers/media/usb/pwc/Kconfig"
 source "drivers/media/usb/s2255/Kconfig"
-source "drivers/media/usb/stkwebcam/Kconfig"
 source "drivers/media/usb/usbtv/Kconfig"
 source "drivers/media/usb/uvc/Kconfig"
 source "drivers/media/usb/zr364xx/Kconfig"
index 044bd46c799c75172ee18b0239cd0a7a7f769d83..25fa2015b1794553d84bf8331a536dab3f7ef740 100644 (file)
@@ -10,7 +10,6 @@ obj-y += dvb-usb/
 obj-y += dvb-usb-v2/
 obj-y += s2255/
 obj-y += siano/
-obj-y += stkwebcam/
 obj-y += ttusb-budget/
 obj-y += ttusb-dec/
 obj-y += zr364xx/
index 1fd6a0c6e1d88c7030ab61b23fda0eb0b1d52177..421ce9dbf44c2faaa0e7da25a8dd94f46cd7e058 100644 (file)
@@ -22,10 +22,14 @@ if STAGING_MEDIA && MEDIA_SUPPORT
 # Please keep them in alphabetic order
 source "drivers/staging/media/atomisp/Kconfig"
 
+source "drivers/staging/media/av7110/Kconfig"
+
 source "drivers/staging/media/hantro/Kconfig"
 
 source "drivers/staging/media/imx/Kconfig"
 
+source "drivers/staging/media/ipu3/Kconfig"
+
 source "drivers/staging/media/max96712/Kconfig"
 
 source "drivers/staging/media/meson/vdec/Kconfig"
@@ -34,14 +38,12 @@ source "drivers/staging/media/omap4iss/Kconfig"
 
 source "drivers/staging/media/rkvdec/Kconfig"
 
-source "drivers/staging/media/sunxi/Kconfig"
+source "drivers/staging/media/stkwebcam/Kconfig"
 
-source "drivers/staging/media/zoran/Kconfig"
+source "drivers/staging/media/sunxi/Kconfig"
 
 source "drivers/staging/media/tegra-video/Kconfig"
 
-source "drivers/staging/media/ipu3/Kconfig"
-
-source "drivers/staging/media/av7110/Kconfig"
+source "drivers/staging/media/zoran/Kconfig"
 
 endif
index 66d6f6d51c863ca05072c1ff114f5f23fdc4263c..950e96f10aad7026e3acea446573a3733d4411b4 100644 (file)
@@ -5,6 +5,7 @@ obj-$(CONFIG_VIDEO_MAX96712)    += max96712/
 obj-$(CONFIG_VIDEO_MESON_VDEC) += meson/vdec/
 obj-$(CONFIG_VIDEO_OMAP4)      += omap4iss/
 obj-$(CONFIG_VIDEO_ROCKCHIP_VDEC)      += rkvdec/
+obj-$(CONFIG_VIDEO_STKWEBCAM)  += stkwebcam/
 obj-$(CONFIG_VIDEO_SUNXI)      += sunxi/
 obj-$(CONFIG_VIDEO_TEGRA)      += tegra-video/
 obj-$(CONFIG_VIDEO_HANTRO)     += hantro/
similarity index 68%
rename from drivers/media/usb/stkwebcam/Kconfig
rename to drivers/staging/media/stkwebcam/Kconfig
index d94d023f1aa0e61d94a21a1eea3e610f7a90a842..4450403dff41fb64ec2b305cb07138e52d5786dd 100644 (file)
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
-config USB_STKWEBCAM
-       tristate "USB Syntek DC1125 Camera support"
+config VIDEO_STKWEBCAM
+       tristate "USB Syntek DC1125 Camera support (DEPRECATED)"
        depends on VIDEO_DEV
+       depends on USB
        help
          Say Y here if you want to use this type of camera.
          Supported devices are typically found in some Asus laptops,
@@ -9,6 +10,9 @@ config USB_STKWEBCAM
          may be supported by the stk11xx driver, from which this is
          derived, see <http://sourceforge.net/projects/syntekdriver/>
 
+         This driver is deprecated and is scheduled for removal by
+         the end of 2022. See the TODO file for more information.
+
          To compile this driver as a module, choose M here: the
          module will be called stkwebcam.
 
similarity index 63%
rename from drivers/media/usb/stkwebcam/Makefile
rename to drivers/staging/media/stkwebcam/Makefile
index daa9ae6d48c230ac4f606de60d943759aba3eab3..17ad7b6f43d0a1ffa2a2eb041851d560e343594b 100644 (file)
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0-only
 stkwebcam-objs :=      stk-webcam.o stk-sensor.o
 
-obj-$(CONFIG_USB_STKWEBCAM)     += stkwebcam.o
+obj-$(CONFIG_VIDEO_STKWEBCAM)     += stkwebcam.o
 
diff --git a/drivers/staging/media/stkwebcam/TODO b/drivers/staging/media/stkwebcam/TODO
new file mode 100644 (file)
index 0000000..735304a
--- /dev/null
@@ -0,0 +1,12 @@
+This is a very old driver for very old hardware (specifically
+laptops that use this sensor). In addition according to reports
+the picture quality is quite bad.
+
+This is also one of the few drivers still not using the vb2
+framework (or even the old videobuf framework!), so this driver
+is now deprecated with the intent of removing it altogether by
+the end of 2022.
+
+In order to keep this driver it has to be converted to vb2.
+If someone is interested in doing this work, then contact the
+linux-media mailinglist (https://linuxtv.org/lists.php).