All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Hoff <hoff.benjamin.k@gmail.com>
To: linux-media@vger.kernel.org
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
	Hans Verkuil <hverkuil+cisco@kernel.org>,
	linux-kernel@vger.kernel.org,
	Ben Hoff <hoff.benjamin.k@gmail.com>
Subject: [PATCH v2 0/2] media: pci: add AVMatrix HWS capture driver
Date: Tue, 17 Mar 2026 20:10:52 -0400	[thread overview]
Message-ID: <20260318001056.465071-1-hoff.benjamin.k@gmail.com> (raw)
In-Reply-To: <20260112022420.390854-1-hoff.benjamin.k@gmail.com>

Add an AVMatrix HWS PCIe capture driver and its MAINTAINERS entry.

The driver exposes one V4L2 capture node per input channel, supports
YUYV capture through vb2-dma-contig, reports DV timings, emits
SOURCE_CHANGE events, and provides the basic brightness/contrast/
saturation/hue controls used by the hardware.

Changes in v2:
- keep scratch DMA allocation on a single probe-owned path
- fix hws_video_register()/probe unwind ownership to avoid control-handler
  double-free on late registration failures
- on live input resolution changes, emit SOURCE_CHANGE, error queued
  buffers, and require userspace to renegotiate buffers and restart
  streaming
- add enum_frameintervals and report DV_RX_POWER_PRESENT, addressing the
  two v1 v4l2-compliance warnings

Testing for v2:
- build-tested with W=1:
  make -C /home/hoff/swdev/linux O=/tmp/hws-build \
    M=drivers/media/pci/hws W=1 KBUILD_MODPOST_WARN=1 modules
- checkpatch.pl --no-tree --strict --file ... is clean for the new files

Context carried forward from v1:
- audio support remains intentionally omitted from this submission
- the driver is derived from a GPL out-of-tree driver; the baseline tree is
  available at https://github.com/benhoff/hws/tree/baseline
- a vendor driver bundle is available at
  https://www.acasis.com/pages/acasis-product-drivers
- the vendor is not involved in this upstreaming effort

Ben Hoff (2):
  media: pci: add AVMatrix HWS capture driver
  MAINTAINERS: add entry for AVMatrix HWS driver

 MAINTAINERS                            |    6 +
 drivers/media/pci/Kconfig              |    1 +
 drivers/media/pci/Makefile             |    1 +
 drivers/media/pci/hws/Kconfig          |   12 +
 drivers/media/pci/hws/Makefile         |    4 +
 drivers/media/pci/hws/hws.h            |  176 +++
 drivers/media/pci/hws/hws_irq.c        |  271 +++++
 drivers/media/pci/hws/hws_irq.h        |   10 +
 drivers/media/pci/hws/hws_pci.c        |  864 +++++++++++++
 drivers/media/pci/hws/hws_reg.h        |  144 +++
 drivers/media/pci/hws/hws_v4l2_ioctl.c |  778 ++++++++++++
 drivers/media/pci/hws/hws_v4l2_ioctl.h |   43 +
 drivers/media/pci/hws/hws_video.c      | 1546 ++++++++++++++++++++++++
 drivers/media/pci/hws/hws_video.h      |   29 +
 14 files changed, 3885 insertions(+)
 create mode 100644 drivers/media/pci/hws/Kconfig
 create mode 100644 drivers/media/pci/hws/Makefile
 create mode 100644 drivers/media/pci/hws/hws.h
 create mode 100644 drivers/media/pci/hws/hws_irq.c
 create mode 100644 drivers/media/pci/hws/hws_irq.h
 create mode 100644 drivers/media/pci/hws/hws_pci.c
 create mode 100644 drivers/media/pci/hws/hws_reg.h
 create mode 100644 drivers/media/pci/hws/hws_v4l2_ioctl.c
 create mode 100644 drivers/media/pci/hws/hws_v4l2_ioctl.h
 create mode 100644 drivers/media/pci/hws/hws_video.c
 create mode 100644 drivers/media/pci/hws/hws_video.h


base-commit: f0caa1d49cc07b30a7e2f104d3853ec6dc1c3cad
-- 
2.53.0

  parent reply	other threads:[~2026-03-18  0:11 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-12  2:24 [PATCH v1 0/2] media: pci: AVMatrix HWS capture driver Ben Hoff
2026-01-12  2:24 ` [PATCH v1 1/2] media: pci: add " Ben Hoff
2026-01-12  2:24 ` [PATCH v1 2/2] MAINTAINERS: add entry for AVMatrix HWS driver Ben Hoff
2026-02-08  0:35 ` [PATCH v1 0/2] media: pci: AVMatrix HWS capture driver Ben Hoff
2026-02-09 11:47   ` Hans Verkuil
2026-02-09 12:53     ` Hans Verkuil
2026-03-17 16:01       ` Hans Verkuil
2026-03-18  0:23         ` Ben Hoff
2026-03-18  0:10 ` Ben Hoff [this message]
2026-03-18  0:10   ` [PATCH v2 1/2] media: pci: add " Ben Hoff
2026-03-24  9:17     ` Hans Verkuil
2026-03-18  0:10   ` [PATCH v2 2/2] MAINTAINERS: add entry for AVMatrix HWS driver Ben Hoff
2026-03-24  9:19   ` [PATCH v2 0/2] media: pci: add AVMatrix HWS capture driver Hans Verkuil
2026-03-30 19:56   ` [PATCH v3 " hoff.benjamin.k
2026-03-30 19:56     ` [PATCH v3 1/2] " hoff.benjamin.k
2026-03-30 19:56     ` [PATCH v3 2/2] MAINTAINERS: add entry for AVMatrix HWS driver hoff.benjamin.k
2026-03-30 23:36       ` [PATCH v4] media: pci: add AVMatrix HWS capture driver hoff.benjamin.k
2026-04-02  6:25         ` kernel test robot
2026-04-03 13:57         ` [PATCH v5] " hoff.benjamin.k
2026-04-30 13:26           ` Ben Hoff
2026-05-05 10:37           ` Hans Verkuil
2026-05-06 19:43             ` Ben Hoff
2026-05-07  5:10               ` Hans Verkuil
2026-05-11  0:09                 ` Ben Hoff
2026-04-07  3:51         ` [PATCH v4] " kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260318001056.465071-1-hoff.benjamin.k@gmail.com \
    --to=hoff.benjamin.k@gmail.com \
    --cc=hverkuil+cisco@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.