]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: tm6000: deprecate this driver
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 11 Aug 2022 09:17:45 +0000 (11:17 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 29 Aug 2022 14:43:00 +0000 (16:43 +0200)
Deprecate the tm6000 driver. This driver does not use the vb2 framework
for video streaming, instead it uses the old videobuf framework.

We want to get rid of these old drivers, so deprecated it for future
removal.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
19 files changed:
MAINTAINERS
drivers/media/usb/Kconfig
drivers/media/usb/Makefile
drivers/staging/media/Kconfig
drivers/staging/media/Makefile
drivers/staging/media/deprecated/tm6000/Kconfig [moved from drivers/media/usb/tm6000/Kconfig with 84% similarity]
drivers/staging/media/deprecated/tm6000/Makefile [moved from drivers/media/usb/tm6000/Makefile with 100% similarity]
drivers/staging/media/deprecated/tm6000/TODO [new file with mode: 0644]
drivers/staging/media/deprecated/tm6000/tm6000-alsa.c [moved from drivers/media/usb/tm6000/tm6000-alsa.c with 100% similarity]
drivers/staging/media/deprecated/tm6000/tm6000-cards.c [moved from drivers/media/usb/tm6000/tm6000-cards.c with 99% similarity]
drivers/staging/media/deprecated/tm6000/tm6000-core.c [moved from drivers/media/usb/tm6000/tm6000-core.c with 100% similarity]
drivers/staging/media/deprecated/tm6000/tm6000-dvb.c [moved from drivers/media/usb/tm6000/tm6000-dvb.c with 100% similarity]
drivers/staging/media/deprecated/tm6000/tm6000-i2c.c [moved from drivers/media/usb/tm6000/tm6000-i2c.c with 100% similarity]
drivers/staging/media/deprecated/tm6000/tm6000-input.c [moved from drivers/media/usb/tm6000/tm6000-input.c with 100% similarity]
drivers/staging/media/deprecated/tm6000/tm6000-regs.h [moved from drivers/media/usb/tm6000/tm6000-regs.h with 100% similarity]
drivers/staging/media/deprecated/tm6000/tm6000-stds.c [moved from drivers/media/usb/tm6000/tm6000-stds.c with 100% similarity]
drivers/staging/media/deprecated/tm6000/tm6000-usb-isoc.h [moved from drivers/media/usb/tm6000/tm6000-usb-isoc.h with 100% similarity]
drivers/staging/media/deprecated/tm6000/tm6000-video.c [moved from drivers/media/usb/tm6000/tm6000-video.c with 100% similarity]
drivers/staging/media/deprecated/tm6000/tm6000.h [moved from drivers/media/usb/tm6000/tm6000.h with 100% similarity]

index e26da9b8e277b416036988eae60b7e6ab036973e..2a61d11ed3e58726cc77fa6b96908c11c893b5c3 100644 (file)
@@ -20469,7 +20469,7 @@ S:      Odd fixes
 W:     https://linuxtv.org
 T:     git git://linuxtv.org/media_tree.git
 F:     Documentation/admin-guide/media/tm6000*
-F:     drivers/media/usb/tm6000/
+F:     drivers/staging/media/deprecated/tm6000/
 
 TMIO/SDHI MMC DRIVER
 M:     Wolfram Sang <wsa+renesas@sang-engineering.com>
index 3d0138f8573ca23d7e2b4dd039351f105341c404..813171d25ac59a7201ecc486e49d189edbf9f555 100644 (file)
@@ -36,7 +36,6 @@ if (MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT)
 
 source "drivers/media/usb/au0828/Kconfig"
 source "drivers/media/usb/cx231xx/Kconfig"
-source "drivers/media/usb/tm6000/Kconfig"
 
 endif
 
index 7fccc6604b1f49cbe1ee22bb5e14689877fbda03..6d171beea20d3973db1a46df5e33938e340f2026 100644 (file)
@@ -29,5 +29,4 @@ obj-$(CONFIG_VIDEO_GO7007) += go7007/
 obj-$(CONFIG_VIDEO_HDPVR) += hdpvr/
 obj-$(CONFIG_VIDEO_PVRUSB2) += pvrusb2/
 obj-$(CONFIG_VIDEO_STK1160) += stk1160/
-obj-$(CONFIG_VIDEO_TM6000) += tm6000/
 obj-$(CONFIG_VIDEO_USBTV) += usbtv/
index 84f627ccf63ec4672dca4cecfc1911b56f5129a5..0a0e052e39b14a7aafb58d9b5ef1decff526fdc0 100644 (file)
@@ -58,6 +58,7 @@ if STAGING_MEDIA_DEPRECATED
 source "drivers/staging/media/deprecated/cpia2/Kconfig"
 source "drivers/staging/media/deprecated/meye/Kconfig"
 source "drivers/staging/media/deprecated/stkwebcam/Kconfig"
+source "drivers/staging/media/deprecated/tm6000/Kconfig"
 source "drivers/staging/media/deprecated/zr364xx/Kconfig"
 endif
 
index ed7e5a61fc00b6e8c5dca04345fba656218ba671..b7df6302dd8e6762588b2f0e8bb7f30056340512 100644 (file)
@@ -12,5 +12,6 @@ obj-$(CONFIG_VIDEO_SUNXI)     += sunxi/
 obj-$(CONFIG_VIDEO_TEGRA)      += tegra-video/
 obj-$(CONFIG_VIDEO_HANTRO)     += hantro/
 obj-$(CONFIG_VIDEO_IPU3_IMGU)  += ipu3/
+obj-$(CONFIG_VIDEO_TM6000)     += deprecated/tm6000/
 obj-$(CONFIG_USB_ZR364XX)      += deprecated/zr364xx/
 obj-$(CONFIG_DVB_AV7110)       += av7110/
similarity index 84%
rename from drivers/media/usb/tm6000/Kconfig
rename to drivers/staging/media/deprecated/tm6000/Kconfig
index 56e977deba815cd92a073d2e5688131724dc2460..73d72e49eb2850750d5636ff4b04ad9acf9d7f47 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config VIDEO_TM6000
-       tristate "TV Master TM5600/6000/6010 driver"
+       tristate "TV Master TM5600/6000/6010 driver (DEPRECATED)"
        depends on VIDEO_DEV && I2C && INPUT && RC_CORE && USB
        select VIDEO_TUNER
        select MEDIA_TUNER_XC2028
@@ -13,6 +13,9 @@ config VIDEO_TM6000
          only compressed MPEG data over the usb bus, so you need
          an external software decoder to watch TV on your computer.
 
+         This driver is deprecated and is scheduled for removal by
+         the beginning of 2023. See the TODO file for more information.
+
          Say Y if you own such a device and want to use it.
 
 config VIDEO_TM6000_ALSA
diff --git a/drivers/staging/media/deprecated/tm6000/TODO b/drivers/staging/media/deprecated/tm6000/TODO
new file mode 100644 (file)
index 0000000..ecb30a4
--- /dev/null
@@ -0,0 +1,7 @@
+This is one of the few drivers still not using the vb2
+framework, so this driver is now deprecated with the intent of
+removing it altogether by the beginning of 2023.
+
+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).
similarity index 99%
rename from drivers/media/usb/tm6000/tm6000-cards.c
rename to drivers/staging/media/deprecated/tm6000/tm6000-cards.c
index b7842cd6f9af0996906a39abe219a0ad6f82f337..98f4a63adc2a933a604b400c6e7a8f819bb86ca2 100644 (file)
@@ -1297,7 +1297,7 @@ static int tm6000_usb_probe(struct usb_interface *interface,
                le16_to_cpu(dev->udev->descriptor.idProduct),
                interface->altsetting->desc.bInterfaceNumber);
 
-/* check if the device has the iso in endpoint at the correct place */
+/* check if the the device has the iso in endpoint at the correct place */
        if (!dev->isoc_in.endp) {
                printk(KERN_ERR "tm6000: probing error: no IN ISOC endpoint!\n");
                rc = -ENODEV;