Skip to content

staging: BCM2835 MMAL V4L2 camera driver

Eric Anholt linux-media lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 38 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6staging: Import the BCM2835 MMAL-based V4L2 camera driver.drivers/staging/media/platform/bcm2835/bcm2835-camera.c drivers/staging/media/platform/bcm2835/bcm2835-camera.h drivers/staging/media/platform/bcm2835/controls.c +9 more+7111 -013 replies
2/6staging: bcm2835-v4l2: Update the driver to the current VCHI API.drivers/staging/media/platform/bcm2835/mmal-vchiq.c+12 -50 replies
3/6staging: bcm2835-v4l2: Add a build system for the module.drivers/staging/media/Kconfig drivers/staging/media/Makefile drivers/staging/media/platform/bcm2835/Kconfig +1 more+24 -02 replies
4/6staging: bcm2835-v4l2: Add a TODO file for improvements we need.drivers/staging/media/platform/bcm2835/TODO+39 -00 replies
5/6staging: bcm2835-v4l2: Apply many whitespace fixes from checkpatch.drivers/staging/media/platform/bcm2835/bcm2835-camera.c drivers/staging/media/platform/bcm2835/controls.c drivers/staging/media/platform/bcm2835/mmal-vchiq.c+167 -1720 replies
6/6staging: bcm2835-v4l2: Apply spelling fixes from checkpatch.drivers/staging/media/platform/bcm2835/bcm2835-camera.c drivers/staging/media/platform/bcm2835/mmal-vchiq.c+9 -95 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

Here's my first pass at importing the camera driver. There's a bunch of TODO left to it, most of which is documented, and the rest being standard checkpatch fare.

Unfortunately, when I try modprobing it on my pi3, the USB network device dies, consistently. I'm not sure what's going on here yet, but I'm going to keep working on some debug of it. I've unfortunately changed a lot of variables (pi3 vs pi2, upstream vs downstream, vchi's updates while in staging, 4.9 vs 4.4), so I probably won't figure it out today.

Note that the "Update the driver to the current VCHI API" patch will conflict with the outstanding "Add vchi_queue_kernel_message and vchi_queue_user_message" series, but the fix should be pretty obvious when that lands.

I built this against 4.10-rc1, but a merge with staging-next was clean and still built fine.

Eric Anholt (6):
staging: Import the BCM2835 MMAL-based V4L2 camera driver.
staging: bcm2835-v4l2: Update the driver to the current VCHI API.
staging: bcm2835-v4l2: Add a build system for the module.
staging: bcm2835-v4l2: Add a TODO file for improvements we need.
staging: bcm2835-v4l2: Apply many whitespace fixes from checkpatch.
staging: bcm2835-v4l2: Apply spelling fixes from checkpatch.

 drivers/staging/media/Kconfig                      |    2 +
 drivers/staging/media/Makefile                     |    1 +
 drivers/staging/media/platform/bcm2835/Kconfig     |   10 +
 drivers/staging/media/platform/bcm2835/Makefile    |   11 +
 drivers/staging/media/platform/bcm2835/TODO        |   39 +
 .../media/platform/bcm2835/bcm2835-camera.c        | 2024 ++++++++++++++++++++
 .../media/platform/bcm2835/bcm2835-camera.h        |  145 ++
 drivers/staging/media/platform/bcm2835/controls.c  | 1335 +++++++++++++
 .../staging/media/platform/bcm2835/mmal-common.h   |   53 +
 .../media/platform/bcm2835/mmal-encodings.h        |  127 ++
 .../media/platform/bcm2835/mmal-msg-common.h       |   50 +
 .../media/platform/bcm2835/mmal-msg-format.h       |   81 +
 .../staging/media/platform/bcm2835/mmal-msg-port.h |  107 ++
 drivers/staging/media/platform/bcm2835/mmal-msg.h  |  404 ++++
 .../media/platform/bcm2835/mmal-parameters.h       |  689 +++++++
 .../staging/media/platform/bcm2835/mmal-vchiq.c    | 1920 +++++++++++++++++++
 .../staging/media/platform/bcm2835/mmal-vchiq.h    |  178 ++
 17 files changed, 7176 insertions(+)
 create mode 100644 drivers/staging/media/platform/bcm2835/Kconfig
 create mode 100644 drivers/staging/media/platform/bcm2835/Makefile
 create mode 100644 drivers/staging/media/platform/bcm2835/TODO
 create mode 100644 drivers/staging/media/platform/bcm2835/bcm2835-camera.c
 create mode 100644 drivers/staging/media/platform/bcm2835/bcm2835-camera.h
 create mode 100644 drivers/staging/media/platform/bcm2835/controls.c
 create mode 100644 drivers/staging/media/platform/bcm2835/mmal-common.h
 create mode 100644 drivers/staging/media/platform/bcm2835/mmal-encodings.h
 create mode 100644 drivers/staging/media/platform/bcm2835/mmal-msg-common.h
 create mode 100644 drivers/staging/media/platform/bcm2835/mmal-msg-format.h
 create mode 100644 drivers/staging/media/platform/bcm2835/mmal-msg-port.h
 create mode 100644 drivers/staging/media/platform/bcm2835/mmal-msg.h
 create mode 100644 drivers/staging/media/platform/bcm2835/mmal-parameters.h
 create mode 100644 drivers/staging/media/platform/bcm2835/mmal-vchiq.c
 create mode 100644 drivers/staging/media/platform/bcm2835/mmal-vchiq.h
Signature · 1 line
2.11.0