mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil+cisco@kernel.org>
To: Hermes.wu@ite.com.tw, Mauro Carvalho Chehab <mchehab@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	linux-sound@vger.kernel.org, linux-api@vger.kernel.org
Subject: Re: [PATCH 2/5] media: Documentation: it6625: document the audio controls
Date: Wed, 11 Nov 2026 13:12:44 +0100	[thread overview]
Message-ID: <a554e557-3d10-465e-ad3b-90d8357b60f2@kernel.org> (raw)
In-Reply-To: <20261103-upstream-it6625-alsa-i2s-v1-2-bb91e2879b01@ite.com.tw>

Hi Hermes,

On 03/11/2026 07:50, Hermes Wu via B4 Relay wrote:
> From: Hermes Wu <Hermes.wu@ite.com.tw>
> 
> The IT6625 driver exposes two read-only driver-specific controls,
> V4L2_CID_IT6625_AUDIO_SAMPLING_RATE and V4L2_CID_IT6625_AUDIO_PRESENT,
> which so far are described only in the uAPI header.
> 
> Add a page for the driver to the V4L2 driver-specific documentation that
> describes both controls, and list it in MAINTAINERS.
> 
> Signed-off-by: Hermes Wu <Hermes.wu@ite.com.tw>
> ---
>  Documentation/userspace-api/media/drivers/index.rst  |  1 +
>  Documentation/userspace-api/media/drivers/it6625.rst | 18 ++++++++++++++++++
>  MAINTAINERS                                          |  1 +
>  3 files changed, 20 insertions(+)
> 
> diff --git a/Documentation/userspace-api/media/drivers/index.rst b/Documentation/userspace-api/media/drivers/index.rst
> index 8d2c489b8453e11b8e15ef9d9c1c0312f3da06af..57be8dd5749d7f5aa6e0e21c7e3d89d377a209d0 100644
> --- a/Documentation/userspace-api/media/drivers/index.rst
> +++ b/Documentation/userspace-api/media/drivers/index.rst
> @@ -33,6 +33,7 @@ For more details see the file COPYING in the source distribution of Linux.
>  	dcmipp
>  	dw100
>  	imx-uapi
> +	it6625
>  	mali-c55
>  	max2175
>  	npcm-video
> diff --git a/Documentation/userspace-api/media/drivers/it6625.rst b/Documentation/userspace-api/media/drivers/it6625.rst
> new file mode 100644
> index 0000000000000000000000000000000000000000..efd970e8124979abffb6f9ba3ea1e1bc193820b3
> --- /dev/null
> +++ b/Documentation/userspace-api/media/drivers/it6625.rst
> @@ -0,0 +1,18 @@
> +.. SPDX-License-Identifier: GPL-2.0
> +
> +ITE IT6625/IT6626 HDMI to MIPI bridge driver
> +============================================
> +
> +The IT6625 driver implements the following driver-specific controls. All of
> +them are read-only and describe the audio of the HDMI input.
> +
> +``V4L2_CID_IT6625_AUDIO_SAMPLING_RATE (integer)``
> +-------------------------------------------------
> +    The sampling rate of the HDMI audio stream, in Hz. 0 means that the rate
> +    is not available: there is no stable input signal or no audio, the bridge
> +    reported a rate code that the driver does not recognize, or reading the
> +    audio status failed.
> +
> +``V4L2_CID_IT6625_AUDIO_PRESENT (boolean)``
> +-------------------------------------------
> +    Whether the bridge currently receives HDMI audio.

Mention in the documentation that these controls are read-only.

We need to make standard controls for the audio sampling rate and presence.
They are also used by the tc358743 driver, and are in fact common for all
HDMI receiver drivers (I know of a bunch of out-of-tree drivers that use the
same controls).

So rather than creating driver-specific controls, can you add standard
controls for this? They belong to the V4L2_CID_DV_CLASS control class.

So the defines become:

V4L2_CID_DV_RX_AUDIO_SAMPLING_RATE and V4L2_CID_DV_RX_AUDIO_PRESENT.

This also means that there is no need for a separate it6625.rst.

The tc358743 driver should be extended to also support the new standard
controls. So tc358743_s_ctrl_audio_sampling_rate/_present set both the
custom and the standard control.

Sorry for this, it is a bit more work but it makes userspace easier since
there is a standard control for this instead of having driver-specific
controls.

Make sure that the patches adding support to the v4l2 core for these
two new standard controls are not mixed with the it656 changes. So
first add it to the core, then use it in this driver.

Regards,

	Hans

> diff --git a/MAINTAINERS b/MAINTAINERS
> index 760791e3635f3c306e7fed7240b948d29b45ae66..1d6de374d86d3046d993bf220195b1a75049fa8a 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -13972,6 +13972,7 @@ M:	Hermes Wu <Hermes.Wu@ite.com.tw>
>  S:	Maintained
>  T:	git git://linuxtv.org/media.git
>  F:	Documentation/devicetree/bindings/media/i2c/ite,it6625.yaml
> +F:	Documentation/userspace-api/media/drivers/it6625.rst
>  F:	drivers/media/i2c/it6625.c
>  F:	include/uapi/linux/it6625.h
>  
> 


  reply	other threads:[~2026-11-11 12:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03  6:50 [PATCH 0/5] media: i2c: it6625: add HDMI audio capture over I2S Hermes Wu via B4 Relay
2026-11-03  6:50 ` [PATCH 1/5] dt-bindings: media: ite,it6625: add audio DAI properties Hermes Wu via B4 Relay
2026-11-04 14:24   ` Krzysztof Kozlowski
2026-11-05  1:50     ` Hermes.Wu
2026-11-03  6:50 ` [PATCH 2/5] media: Documentation: it6625: document the audio controls Hermes Wu via B4 Relay
2026-11-11 12:12   ` Hans Verkuil [this message]
2026-11-03  6:50 ` [PATCH 3/5] media: i2c: it6625: decode audio status fields with FIELD_GET() Hermes Wu via B4 Relay
2026-11-03  6:50 ` [PATCH 4/5] media: i2c: it6625: add I2S audio capture DAI Hermes Wu via B4 Relay
2026-11-03  6:50 ` [PATCH 5/5] media: i2c: it6625: capture compressed and HBR audio, not just LPCM Hermes Wu via B4 Relay
2026-11-11 12:16   ` 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=a554e557-3d10-465e-ad3b-90d8357b60f2@kernel.org \
    --to=hverkuil+cisco@kernel.org \
    --cc=Hermes.wu@ite.com.tw \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.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 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®