Skip to content

em28xx: split analog part into a separate module

Mauro Carvalho Chehab linux-media 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest24 patches 9 repliesIn review
  2. v1 RFC1 patch 1 replySuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24em28xx: move some video-specific functions to em28xx-videodrivers/media/usb/em28xx/em28xx-cards.c drivers/media/usb/em28xx/em28xx-core.c drivers/media/usb/em28xx/em28xx-video.c +1 more+371 -3700 replies
2/24em28xx: some cosmetic changesdrivers/media/usb/em28xx/em28xx-cards.c drivers/media/usb/em28xx/em28xx-video.c drivers/media/usb/em28xx/em28xx.h+7 -80 replies
3/24em28xx: move analog-specific init to em28xx-videodrivers/media/usb/em28xx/em28xx-cards.c drivers/media/usb/em28xx/em28xx-video.c+87 -840 replies
4/24em28xx: make em28xx-video to be a separate moduledrivers/media/usb/em28xx/Kconfig drivers/media/usb/em28xx/Makefile drivers/media/usb/em28xx/em28xx-camera.c +6 more+110 -640 replies
5/24em28xx: initialize analog I2C devices at the right placedrivers/media/usb/em28xx/em28xx-cards.c drivers/media/usb/em28xx/em28xx-video.c+69 -650 replies
6/24em28xx-cards: remove a now dead codedrivers/media/usb/em28xx/em28xx-cards.c+2 -120 replies
7/24em28xx: fix a cut and paste errordrivers/media/usb/em28xx/em28xx-video.c+4 -40 replies
8/24em28xx: add warn messages for timeoutdrivers/media/usb/em28xx/em28xx-i2c.c+10 -20 replies
9/24em28xx: improve extension information messagesdrivers/media/usb/em28xx/em28xx-audio.c drivers/media/usb/em28xx/em28xx-core.c drivers/media/usb/em28xx/em28xx-dvb.c +2 more+20 -70 replies
10/24em28xx: convert i2c wait completion logic to use jiffiesdrivers/media/usb/em28xx/em28xx-i2c.c+34 -310 replies
11/24tvp5150: make read operations atomicdrivers/media/i2c/tvp5150.c+10 -123 replies
12/24tuner-xc2028: remove unused codedrivers/media/tuners/tuner-xc2028.c+0 -91 reply
13/24em28xx: retry I2C ops if failed by timeoutdrivers/media/usb/em28xx/em28xx-i2c.c+38 -290 replies
14/24em28xx: remove a false positive warningdrivers/media/usb/em28xx/em28xx-i2c.c+3 -20 replies
15/24em28xx: check if a device has audio earlierdrivers/media/usb/em28xx/em28xx-cards.c drivers/media/usb/em28xx/em28xx-core.c+12 -110 replies
16/24em28xx: properly implement AC97 wait codedrivers/media/usb/em28xx/em28xx-core.c drivers/media/usb/em28xx/em28xx.h+9 -30 replies
17/24em28xx: initialize audio latterdrivers/media/usb/em28xx/em28xx-video.c+20 -220 replies
18/24em28xx: improve I2C timeout error messagedrivers/media/usb/em28xx/em28xx-i2c.c+2 -60 replies
19/24em28xx: unify module versiondrivers/media/usb/em28xx/em28xx-audio.c drivers/media/usb/em28xx/em28xx-core.c drivers/media/usb/em28xx/em28xx-dvb.c +3 more+9 -80 replies
20/24em28xx: Fix em28xx deplockdrivers/media/usb/em28xx/em28xx-cards.c drivers/media/usb/em28xx/em28xx-core.c+8 -41 reply
21/24em28xx: USB: adjust for changed 3.8 USB APIdrivers/media/usb/em28xx/em28xx-audio.c drivers/media/usb/em28xx/em28xx-core.c+2 -32 replies
22/24em28xx: use a better value for I2C timeoutsdrivers/media/usb/em28xx/em28xx.h+15 -20 replies
23/24em28xx: don't return -ENODEV for I2C xfer errorsdrivers/media/usb/em28xx/em28xx-i2c.c+9 -110 replies
24/24em28xx: cleanup I2C debug messagesdrivers/media/usb/em28xx/em28xx-i2c.c+47 -440 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/24] em28xx: split analog part into a separate module

This patch series split em28xx into a separate V4L2 driver, allowing the new dvb-only chips to be supported without requiring V4L2.

While testing the original patchset, I noticed several issues with HVR-950. The remaining patches on this series fix most of those issues.

There's one remaining issue: on my tests, when connecting the device into an USB 3.0 port, the AC97 EMP202 is not properly detected. Also, the audio doesn't work fine. I'm still investigating what would be the root cause for that.

Mauro Carvalho Chehab (24):
em28xx: move some video-specific functions to em28xx-video
em28xx: some cosmetic changes
em28xx: move analog-specific init to em28xx-video
em28xx: make em28xx-video to be a separate module
em28xx: initialize analog I2C devices at the right place
em28xx-cards: remove a now dead code
em28xx: fix a cut and paste error
em28xx: add warn messages for timeout
em28xx: improve extension information messages
em28xx: convert i2c wait completion logic to use jiffies
tvp5150: make read operations atomic
tuner-xc2028: remove unused code
em28xx: retry I2C ops if failed by timeout
em28xx: remove a false positive warning
em28xx: check if a device has audio earlier
em28xx: properly implement AC97 wait code
em28xx: initialize audio latter
em28xx: improve I2C timeout error message
em28xx: unify module version
em28xx: Fix em28xx deplock
em28xx: USB: adjust for changed 3.8 USB API
em28xx: use a better value for I2C timeouts
em28xx: don't return -ENODEV for I2C xfer errors
em28xx: cleanup I2C debug messages

 drivers/media/i2c/tvp5150.c              |  22 +-
 drivers/media/tuners/tuner-xc2028.c      |   9 -
 drivers/media/usb/em28xx/Kconfig         |   6 +-
 drivers/media/usb/em28xx/Makefile        |   5 +-
 drivers/media/usb/em28xx/em28xx-audio.c  |   9 +-
 drivers/media/usb/em28xx/em28xx-camera.c |   1 +
 drivers/media/usb/em28xx/em28xx-cards.c  | 310 ++--------------
 drivers/media/usb/em28xx/em28xx-core.c   | 295 +--------------
 drivers/media/usb/em28xx/em28xx-dvb.c    |  11 +-
 drivers/media/usb/em28xx/em28xx-i2c.c    | 226 ++++++------
 drivers/media/usb/em28xx/em28xx-input.c  |   7 +-
 drivers/media/usb/em28xx/em28xx-v4l.h    |  24 ++
 drivers/media/usb/em28xx/em28xx-vbi.c    |   1 +
 drivers/media/usb/em28xx/em28xx-video.c  | 607 +++++++++++++++++++++++++++++--
 drivers/media/usb/em28xx/em28xx.h        |  52 +--
 15 files changed, 835 insertions(+), 750 deletions(-)
 create mode 100644 drivers/media/usb/em28xx/em28xx-v4l.h
Signature · 1 line
1.8.3.1