Skip to content

em28xx: ioctl fixes/clean-ups

Frank Schäfer linux-media 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 0 repliesNew
  2. v112 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- added patch 11

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13em28xx: use v4l2_disable_ioctl() to disable ioctls VIDIOC_QUERYSTD, VIDIOC_G/S_STDdrivers/media/usb/em28xx/em28xx-video.c+7 -60 replies
2/13em28xx: disable tuner related ioctls for video and VBI devices without tunerdrivers/media/usb/em28xx/em28xx-video.c+14 -00 replies
3/13em28xx: use v4l2_disable_ioctl() to disable ioctls VIDIOC_G_AUDIO and VIDIOC_S_AUDIOdrivers/media/usb/em28xx/em28xx-video.c+8 -70 replies
4/13em28xx: use v4l2_disable_ioctl() to disable ioctl VIDIOC_S_PARMdrivers/media/usb/em28xx/em28xx-video.c+2 -30 replies
5/13em28xx: disable ioctl VIDIOC_S_PARM for VBI devicesdrivers/media/usb/em28xx/em28xx-video.c+1 -00 replies
6/13em28xx: make ioctls VIDIOC_G/S_PARM working for VBI devicesdrivers/media/usb/em28xx/em28xx-video.c+0 -60 replies
7/13em28xx: remove ioctl VIDIOC_CROPCAPdrivers/media/usb/em28xx/em28xx-video.c+0 -210 replies
8/13em28xx: get rid of duplicate function vidioc_s_fmt_vbi_cap()drivers/media/usb/em28xx/em28xx-video.c+1 -300 replies
9/13em28xx: VIDIOC_G_TUNER: remove unneeded setting of tuner typedrivers/media/usb/em28xx/em28xx-video.c+0 -10 replies
10/13em28xx: remove obsolete device state checks from the ioctl functionsdrivers/media/usb/em28xx/em28xx-video.c+0 -430 replies
11/13em28xx: make ioctl VIDIOC_DBG_G_CHIP_IDENT available without CONFIG_VIDEO_ADV_DEBUG selecteddrivers/media/usb/em28xx/em28xx-video.c+13 -140 replies
12/13em28xx: make ioctl VIDIOC_DBG_G_CHIP_IDENT available for radio devicesdrivers/media/usb/em28xx/em28xx-video.c+1 -00 replies
13/13em28xx: do not claim VBI support if the device is a cameradrivers/media/usb/em28xx/em28xx-core.c+5 -00 replies

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchHans Verkuil
1/13A-b
2/13A-b
3/13A-b
4/13A-b
5/13A-b
6/13A-b
7/13A-b
8/13A-b
9/13A-b
10/13A-b
11/13A-b
12/13A-b
13/13A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/13] em28xx: ioctl fixes/clean-ups

This patch series addresses some issues with the ioctl code of the em28xx driver:
Patches 1-5 and 11+12 fix and clean up the enabling/disabling of the ioctls depending on the device type and equipment.
Patches 6-10 remove some obsolete/useless code.
Patch 13 improves the VBI support detection and device node registration.

Changes since v1:
- added patch 11

Frank Schäfer (13):
em28xx: use v4l2_disable_ioctl() to disable ioctls VIDIOC_QUERYSTD,
VIDIOC_G/S_STD
em28xx: disable tuner related ioctls for video and VBI devices
without tuner
em28xx: use v4l2_disable_ioctl() to disable ioctls VIDIOC_G_AUDIO and
VIDIOC_S_AUDIO
em28xx: use v4l2_disable_ioctl() to disable ioctl VIDIOC_S_PARM
em28xx: disable ioctl VIDIOC_S_PARM for VBI devices
em28xx: make ioctls VIDIOC_G/S_PARM working for VBI devices
em28xx: remove ioctl VIDIOC_CROPCAP
em28xx: get rid of duplicate function vidioc_s_fmt_vbi_cap()
em28xx: VIDIOC_G_TUNER: remove unneeded setting of tuner type
em28xx: remove obsolete device state checks from the ioctl functions
em28xx: make ioctl VIDIOC_DBG_G_CHIP_IDENT available without
CONFIG_VIDEO_ADV_DEBUG selected
em28xx: make ioctl VIDIOC_DBG_G_CHIP_IDENT available for radio
devices
em28xx: do not claim VBI support if the device is a camera

 drivers/media/usb/em28xx/em28xx-core.c  |    5 +
 drivers/media/usb/em28xx/em28xx-video.c |  178 ++++++++-----------------------

2 Dateien geändert, 52 Zeilen hinzugefügt(+), 131 Zeilen entfernt(-)

Signature · 1 line
1.7.10.4