Commit aa68bf90 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

media: stkwebcam: remove deprecated driver

The stkwebcam driver does not use the vb2 framework for streaming
video, instead it implements this in the driver. This is error prone,
and nobody stepped in to convert this driver to that framework.

The hardware is very old, so the decision was made to remove it
altogether.
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent b136c909
...@@ -64,7 +64,6 @@ pwc Visionite VCS-UC300 0d81:1900 ...@@ -64,7 +64,6 @@ pwc Visionite VCS-UC300 0d81:1900
pwc Visionite VCS-UM100 0d81:1910 pwc Visionite VCS-UM100 0d81:1910
s2255drv Sensoray 2255 1943:2255, 1943:2257 s2255drv Sensoray 2255 1943:2255, 1943:2257
stk1160 STK1160 USB video capture dongle 05e1:0408 stk1160 STK1160 USB video capture dongle 05e1:0408
stkwebcam Syntek DC1125 174f:a311, 05e1:0501
dvb-ttusb-budget Technotrend/Hauppauge Nova-USB devices 0b48:1003, 0b48:1004, dvb-ttusb-budget Technotrend/Hauppauge Nova-USB devices 0b48:1003, 0b48:1004,
0b48:1005 0b48:1005
dvb-ttusb_dec Technotrend/Hauppauge MPEG decoder 0b48:1006 dvb-ttusb_dec Technotrend/Hauppauge MPEG decoder 0b48:1006
......
...@@ -92,7 +92,6 @@ pwc USB Philips Cameras ...@@ -92,7 +92,6 @@ pwc USB Philips Cameras
s2250 Sensoray 2250/2251 s2250 Sensoray 2250/2251
s2255drv USB Sensoray 2255 video capture device s2255drv USB Sensoray 2255 video capture device
smsusb Siano SMS1xxx based MDTV receiver smsusb Siano SMS1xxx based MDTV receiver
stkwebcam USB Syntek DC1125 Camera
tm6000-alsa TV Master TM5600/6000/6010 audio tm6000-alsa TV Master TM5600/6000/6010 audio
tm6000-dvb DVB Support for tm6000 based TV cards tm6000-dvb DVB Support for tm6000 based TV cards
tm6000 TV Master TM5600/6000/6010 driver tm6000 TV Master TM5600/6000/6010 driver
......
...@@ -53,7 +53,6 @@ menuconfig STAGING_MEDIA_DEPRECATED ...@@ -53,7 +53,6 @@ menuconfig STAGING_MEDIA_DEPRECATED
if STAGING_MEDIA_DEPRECATED if STAGING_MEDIA_DEPRECATED
source "drivers/staging/media/deprecated/atmel/Kconfig" source "drivers/staging/media/deprecated/atmel/Kconfig"
source "drivers/staging/media/deprecated/saa7146/Kconfig" source "drivers/staging/media/deprecated/saa7146/Kconfig"
source "drivers/staging/media/deprecated/stkwebcam/Kconfig"
source "drivers/staging/media/deprecated/tm6000/Kconfig" source "drivers/staging/media/deprecated/tm6000/Kconfig"
source "drivers/staging/media/deprecated/vpfe_capture/Kconfig" source "drivers/staging/media/deprecated/vpfe_capture/Kconfig"
source "drivers/staging/media/deprecated/zr364xx/Kconfig" source "drivers/staging/media/deprecated/zr364xx/Kconfig"
......
...@@ -6,7 +6,6 @@ obj-$(CONFIG_VIDEO_MAX96712) += max96712/ ...@@ -6,7 +6,6 @@ obj-$(CONFIG_VIDEO_MAX96712) += max96712/
obj-$(CONFIG_VIDEO_MESON_VDEC) += meson/vdec/ obj-$(CONFIG_VIDEO_MESON_VDEC) += meson/vdec/
obj-$(CONFIG_VIDEO_OMAP4) += omap4iss/ obj-$(CONFIG_VIDEO_OMAP4) += omap4iss/
obj-$(CONFIG_VIDEO_ROCKCHIP_VDEC) += rkvdec/ obj-$(CONFIG_VIDEO_ROCKCHIP_VDEC) += rkvdec/
obj-$(CONFIG_VIDEO_STKWEBCAM) += deprecated/stkwebcam/
obj-$(CONFIG_VIDEO_SUNXI) += sunxi/ obj-$(CONFIG_VIDEO_SUNXI) += sunxi/
obj-$(CONFIG_VIDEO_TEGRA) += tegra-video/ obj-$(CONFIG_VIDEO_TEGRA) += tegra-video/
obj-$(CONFIG_VIDEO_IPU3_IMGU) += ipu3/ obj-$(CONFIG_VIDEO_IPU3_IMGU) += ipu3/
......
# SPDX-License-Identifier: GPL-2.0-only
config VIDEO_STKWEBCAM
tristate "USB Syntek DC1125 Camera support (DEPRECATED)"
depends on VIDEO_DEV
depends on MEDIA_USB_SUPPORT && MEDIA_CAMERA_SUPPORT
help
Say Y here if you want to use this type of camera.
Supported devices are typically found in some Asus laptops,
with USB id 174f:a311 and 05e1:0501. Other Syntek cameras
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.
# SPDX-License-Identifier: GPL-2.0-only
stkwebcam-objs := stk-webcam.o stk-sensor.o
obj-$(CONFIG_VIDEO_STKWEBCAM) += stkwebcam.o
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).
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* stk-webcam.h : Driver for Syntek 1125 USB webcam controller
*
* Copyright (C) 2006 Nicolas VIVIEN
* Copyright 2007-2008 Jaime Velasco Juan <jsagarribay@gmail.com>
*/
#ifndef STKWEBCAM_H
#define STKWEBCAM_H
#include <linux/usb.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-common.h>
#define DRIVER_VERSION "v0.0.1"
#define DRIVER_VERSION_NUM 0x000001
#define MAX_ISO_BUFS 3
#define ISO_FRAMES_PER_DESC 16
#define ISO_MAX_FRAME_SIZE 3 * 1024
#define ISO_BUFFER_SIZE (ISO_FRAMES_PER_DESC * ISO_MAX_FRAME_SIZE)
struct stk_iso_buf {
void *data;
int length;
int read;
struct urb *urb;
};
/* Streaming IO buffers */
struct stk_sio_buffer {
struct v4l2_buffer v4lbuf;
char *buffer;
int mapcount;
struct stk_camera *dev;
struct list_head list;
};
enum stk_mode {MODE_VGA, MODE_SXGA, MODE_CIF, MODE_QVGA, MODE_QCIF};
struct stk_video {
enum stk_mode mode;
__u32 palette;
int hflip;
int vflip;
};
enum stk_status {
S_PRESENT = 1,
S_INITIALISED = 2,
S_MEMALLOCD = 4,
S_STREAMING = 8,
};
#define is_present(dev) ((dev)->status & S_PRESENT)
#define is_initialised(dev) ((dev)->status & S_INITIALISED)
#define is_streaming(dev) ((dev)->status & S_STREAMING)
#define is_memallocd(dev) ((dev)->status & S_MEMALLOCD)
#define set_present(dev) ((dev)->status = S_PRESENT)
#define unset_present(dev) ((dev)->status &= \
~(S_PRESENT|S_INITIALISED|S_STREAMING))
#define set_initialised(dev) ((dev)->status |= S_INITIALISED)
#define unset_initialised(dev) ((dev)->status &= ~S_INITIALISED)
#define set_memallocd(dev) ((dev)->status |= S_MEMALLOCD)
#define unset_memallocd(dev) ((dev)->status &= ~S_MEMALLOCD)
#define set_streaming(dev) ((dev)->status |= S_STREAMING)
#define unset_streaming(dev) ((dev)->status &= ~S_STREAMING)
struct regval {
unsigned reg;
unsigned val;
};
struct stk_camera {
struct v4l2_device v4l2_dev;
struct v4l2_ctrl_handler hdl;
struct video_device vdev;
struct usb_device *udev;
struct usb_interface *interface;
int webcam_model;
struct file *owner;
struct mutex lock;
int first_init;
u8 isoc_ep;
/* Not sure if this is right */
atomic_t urbs_used;
struct stk_video vsettings;
enum stk_status status;
spinlock_t spinlock;
wait_queue_head_t wait_frame;
struct stk_iso_buf *isobufs;
int frame_size;
/* Streaming buffers */
int reading;
unsigned int n_sbufs;
struct stk_sio_buffer *sio_bufs;
struct list_head sio_avail;
struct list_head sio_full;
unsigned sequence;
u8 read_reg_scratch;
};
#define vdev_to_camera(d) container_of(d, struct stk_camera, vdev)
int stk_camera_write_reg(struct stk_camera *, u16, u8);
int stk_camera_read_reg(struct stk_camera *, u16, u8 *);
int stk_sensor_init(struct stk_camera *);
int stk_sensor_configure(struct stk_camera *);
int stk_sensor_sleep(struct stk_camera *dev);
int stk_sensor_wakeup(struct stk_camera *dev);
int stk_sensor_set_brightness(struct stk_camera *dev, int br);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment