From: Matthew Laux <matthew.laux@gmail.com>
To: Hans Verkuil <hverkuil+cisco@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hverkuil@kernel.org>,
Mehdi Djait <mehdi.djait@bootlin.com>,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH v7 12/12] media: add driver for StarTech USB3HDCAP
Date: Wed, 25 Nov 2026 13:45:53 -0600 [thread overview]
Message-ID: <awc68fa7jb5n1mRv@miso> (raw)
In-Reply-To: <99aad66b-675d-4a2d-8558-167c11ea725a@kernel.org>
On Wed, Nov 25, 2026 at 02:39:45PM +0100, Hans Verkuil wrote:
> <snip>
> > + if (vb2_is_streaming(&hdcap->vb2q))
> > + return -EBUSY;
>
> Why is this needed? Does querying the timings while streaming actually interfere
> with the streaming?
>
> This is expected to work, but if it can't be made to work, then it the reason should be
> documented here.
Removed in v8. Tested and it doesn't interfere with streaming, and the
buffer size can't change, so it's safe.
> <snip>
> > + case V4L2_CID_DV_RX_POWER_PRESENT:
> > + ctrl->val = 1;
>
> Huh? It is a volatile control, but the value is fixed?
>
> This makes no sense.
Removed in v8, I had this as a stub to stop v4l2-compliance from
warning, but the chip doesn't actually tell us whether RX power is
present, so I just removed it entirely.
> <snip>
> > + case V4L2_EVENT_SOURCE_CHANGE:
> > + return v4l2_src_change_event_subscribe(fh, sub);
>
> The V4L2_EVENT_SOURCE_CHANGE is never raised. It is supposed to be sent
> if a signal goes away or if the format changes, but I see none of that in
> this driver. That can't be right.
Removed in v8, since nothing generates the event yet. This
v4l2-compliance test now fails:
fail: v4l2-test-controls.cpp(1175): doioctl(node, VIDIOC_SUBSCRIBE_EVENT,
&sub)
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
I do want to support this feature eventually. The Windows driver has a
complicated signal monitoring background thread that I still need to
reverse engineer.
> <snip>
> > + .vidioc_streamoff = vb2_ioctl_streamoff,
>
> Add .vidioc_expbuf.
Added in v8
> <snip>
> > + /* For applications that never call S_INPUT... */
> > + if (!hdcap->hw_inited && !vb2_is_busy(&hdcap->vb2q))
> > + usb3hdcap_init_input(hdcap);
>
> This doesn't look right. I think this is something you want to do only
> on first open, and then you can use v4l2_fh_is_singular().
Agreed and fixed in v8
> <snip>
> > + hdcap->vb2q.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ;
>
> Add VB2_DMABUF. I would suggest dropping VB2_USERPTR: we don't really like
> that streaming mode.
Added DMABUF support and dropped USERPTR in v8.
> <snip>
> > + hdcap->ctrl_rx_power->flags |= V4L2_CTRL_FLAG_VOLATILE |
> > + V4L2_CTRL_FLAG_READ_ONLY;
>
> It makes no sense for this to be a volatile control. I suspect there is some
> confusion about thi.
This control is now gone entirely.
Thanks,
Matthew
next prev parent reply other threads:[~2026-11-25 19:45 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 3:55 [PATCH v7 00/12] Add driver for StarTech USB3HDCAP capture device Matthew Laux
2026-11-21 3:55 ` [PATCH v7 01/12] media: tw9900: Disable regulator on runtime resume failure Matthew Laux
2026-11-21 3:55 ` [PATCH v7 02/12] media: tw9900: release the device when stopping the stream fails Matthew Laux
2026-11-21 3:55 ` [PATCH v7 03/12] media: tw9900: accept the TW9910 chip ID Matthew Laux
2026-11-21 3:55 ` [PATCH v7 04/12] media: tw9900: add saturation, hue and sharpness controls Matthew Laux
2026-11-21 3:55 ` [PATCH v7 05/12] media: tw9900: program all mode registers in the PAL table Matthew Laux
2026-11-21 3:55 ` [PATCH v7 06/12] media: tw9900: power off the device on remove if still active Matthew Laux
2026-11-21 3:55 ` [PATCH v7 07/12] media: tw9900: power down analog blocks in runtime suspend Matthew Laux
2026-11-21 3:55 ` [PATCH v7 08/12] media: tw9900: use runtime PM autosuspend Matthew Laux
2026-11-21 3:55 ` [PATCH v7 09/12] media: tw9900: allow board-specific register tables via platform data Matthew Laux
2026-11-21 3:55 ` [PATCH v7 10/12] media: tw9900: add S-Video input and progressive source detection Matthew Laux
2026-11-25 14:38 ` Markus Elfring
2026-11-25 19:47 ` Matthew Laux
2026-11-21 3:55 ` [PATCH v7 11/12] media: Add subdevice driver for the Mstar MST3367 HDMI receiver Matthew Laux
2026-11-25 13:17 ` Hans Verkuil
2026-11-25 19:33 ` Matthew Laux
2026-11-21 3:55 ` [PATCH v7 12/12] media: add driver for StarTech USB3HDCAP Matthew Laux
2026-11-25 13:39 ` Hans Verkuil
2026-11-25 19:45 ` Matthew Laux [this message]
2026-11-25 13:41 ` [PATCH v7 00/12] Add driver for StarTech USB3HDCAP capture device Hans Verkuil
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=awc68fa7jb5n1mRv@miso \
--to=matthew.laux@gmail.com \
--cc=hverkuil+cisco@kernel.org \
--cc=hverkuil@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=mehdi.djait@bootlin.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®