From: <Hermes.Wu@ite.com.tw>
To: <hverkuil+cisco@kernel.org>, <mchehab@kernel.org>,
<robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>,
<hverkuil@kernel.org>
Cc: <linux-media@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <broonie@kernel.org>,
<lgirdwood@gmail.com>, <linux-sound@vger.kernel.org>,
<linux-api@vger.kernel.org>
Subject: RE: [PATCH v2 1/9] media: v4l2-ctrls: add DV RX audio sampling rate and present controls
Date: Thu, 26 Nov 2026 02:16:00 +0000 [thread overview]
Message-ID: <aacbf13f25774be5bf599661202360e2@ite.com.tw> (raw)
In-Reply-To: <6dba4041-fd5c-448d-9f9d-e3c1dcff8185@kernel.org>
Hi Hans,
On 25/11/2026 13:38, Hans Verkuil wrote:
>> +``V4L2_CID_DV_RX_AUDIO_SAMPLING_RATE (integer)``
>> + Reads the sampling rate, in Hz, of the audio that the receiver
>> + receives from the source. It is 0 if no audio is received, or if the
>
> received -> present
>
> Is this indeed the case, that it is 0 if V4L2_CID_DV_RX_AUDIO_PRESENT is
> false? I think both the tc358743 and this driver actually do not set the
> sampling rate to 0 if audio disappears. (Might be wrong, I didn't dig deeply
> into this)
You're right about tc358743: its rate control can keep the previous value
after the audio disappears. IT6625 does set it to 0, but the documentation
shouldn't require that.
> I'm inclined to drop that requirement, and instead...
>
>> + receiver cannot determine the sampling rate. This read-only control
>> + is applicable to HDMI and DisplayPort connectors.
>
> ...add 'The value is only meaningful while ``V4L2_CID_DV_RX_AUDIO_PRESENT`` is set.'
> to the description.
>
> So '0' is specific to the case that there is audio present, but the sampling rate
> cannot be determined. If there is no audio present, then, just like AUDIO_TYPE, the
> value is not meaningful. I.e., it should be ignored.
Agreed. In v3 the description will read:
Reads the sampling rate, in Hz, of the audio that is present on the
receiver's input. It is 0 if audio is present but the receiver cannot
determine the sampling rate. The value is only meaningful while
``V4L2_CID_DV_RX_AUDIO_PRESENT`` is set. This read-only control is
applicable to HDMI and DisplayPort connectors.
and I'll update the commit message to match.
Best regards,
Hermes
next prev parent reply other threads:[~2026-11-26 2:16 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 3:04 [PATCH v2 0/9] media: i2c: it6625: add HDMI audio capture over I2S Hermes Wu via B4 Relay
2026-11-24 3:04 ` Hermes Wu
2026-11-24 3:04 ` [PATCH v2 1/9] media: v4l2-ctrls: add DV RX audio sampling rate and present controls Hermes Wu via B4 Relay
2026-11-24 3:04 ` Hermes Wu
2026-11-24 3:09 ` sashiko-bot
2026-11-24 4:02 ` Hermes.Wu
2026-11-25 12:38 ` Hans Verkuil
2026-11-26 2:16 ` Hermes.Wu [this message]
2026-11-24 3:04 ` [PATCH v2 2/9] media: v4l2-ctrls: add the DV RX audio type control Hermes Wu via B4 Relay
2026-11-24 3:04 ` Hermes Wu
2026-11-24 3:09 ` sashiko-bot
2026-11-24 4:03 ` Hermes.Wu
2026-11-24 3:04 ` [PATCH v2 3/9] media: i2c: tc358743: also report the standard audio controls Hermes Wu via B4 Relay
2026-11-24 3:04 ` Hermes Wu
2026-11-24 3:14 ` sashiko-bot
2026-11-24 4:04 ` Hermes.Wu
2026-11-24 3:04 ` [PATCH v2 4/9] dt-bindings: media: ite,it6625: add audio DAI properties Hermes Wu via B4 Relay
2026-11-24 3:04 ` Hermes Wu
2026-11-24 3:04 ` [PATCH v2 5/9] media: i2c: it6625: decode audio status fields with FIELD_GET() Hermes Wu via B4 Relay
2026-11-24 3:04 ` Hermes Wu
2026-11-24 3:04 ` [PATCH v2 6/9] media: i2c: it6625: add I2S audio capture DAI Hermes Wu via B4 Relay
2026-11-24 3:04 ` Hermes Wu
2026-11-24 3:18 ` sashiko-bot
2026-11-24 3:04 ` [PATCH v2 7/9] media: i2c: it6625: capture compressed and HBR audio, not just LPCM Hermes Wu via B4 Relay
2026-11-24 3:04 ` Hermes Wu
2026-11-24 3:11 ` sashiko-bot
2026-11-24 3:04 ` [PATCH v2 8/9] media: i2c: it6625: use the standard audio rate and present controls Hermes Wu via B4 Relay
2026-11-24 3:04 ` Hermes Wu
2026-11-24 3:15 ` sashiko-bot
2026-11-24 4:04 ` Hermes.Wu
2026-11-24 3:04 ` [PATCH v2 9/9] media: uapi: it6625: remove the driver-specific audio controls Hermes Wu via B4 Relay
2026-11-24 3:04 ` Hermes Wu
2026-11-24 3:11 ` sashiko-bot
2026-11-24 4:04 ` Hermes.Wu
2026-11-25 12:43 ` Hans Verkuil
2026-11-26 2:16 ` Hermes.Wu
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=aacbf13f25774be5bf599661202360e2@ite.com.tw \
--to=hermes.wu@ite.com.tw \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hverkuil+cisco@kernel.org \
--cc=hverkuil@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@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.