All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hermes Wu" <Hermes.wu@ite.com.tw>
Cc: devicetree@vger.kernel.org, linux-sound@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org
Subject: Re: [PATCH v2 7/9] media: i2c: it6625: capture compressed and HBR audio, not just LPCM
Date: Tue, 24 Nov 2026 03:11:07 +0000	[thread overview]
Message-ID: <sashiko-outbox-230443@kernel.org> (raw)
In-Reply-To: <20261124-upstream-it6625-alsa-i2s-v2-7-a154685f6989@ite.com.tw>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] media: i2c: it6625: raw AUD_TYPE reported in
  it6625_audio_update_ctrls()
--

commit 2ad342a8f95e2e510b1b156099c86836ba734db4
Author: Hermes Wu <Hermes.wu@ite.com.tw>

media: i2c: it6625: capture compressed and HBR audio, not just LPCM

This commit extends the IT6625/IT6626 I2S capture DAI to support compressed
IEC 61937 and HBR audio streams and exposes the stream coding type through
the V4L2_CID_DV_RX_AUDIO_TYPE control.

> diff --git a/drivers/media/i2c/it6625.c b/drivers/media/i2c/it6625.c
> index 4a6ab00f04013..72ca1d4ecdc93 100644
> --- a/drivers/media/i2c/it6625.c
> +++ b/drivers/media/i2c/it6625.c
[ ... ]
> @@ -1086,6 +1101,9 @@ static int it6625_audio_update_ctrls(struct it6625 *it6625)
>  	if (!ret)
>  		ret = __v4l2_ctrl_s_ctrl(it6625->ctrl_audio_present,
>  					 info.present);
> +	if (!ret)
> +		ret = __v4l2_ctrl_s_ctrl(it6625->ctrl_audio_type,
> +					 it6625_audio_type_to_v4l2[info.stream.type]);

[Severity: Medium]
Should it6625_audio_update_ctrls() also check the sampling rate before
reporting V4L2_DV_RX_AUDIO_TYPE_HBR?

As noted in it6625_audio_xport(), the bridge firmware reports AUD_TYPE_HBR
for ordinary compressed streams such as 48 kHz DTS.  Mapping
info.stream.type directly through it6625_audio_type_to_v4l2[] reports
V4L2_DV_RX_AUDIO_TYPE_HBR instead of V4L2_DV_RX_AUDIO_TYPE_IEC61937 for
those non-HBR streams.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-upstream-it6625-alsa-i2s-v2-0-a154685f6989@ite.com.tw?part=7

  reply	other threads:[~2026-11-24  3:11 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
2026-11-24  3:04 ` Hermes Wu via B4 Relay
2026-11-24  3:04 ` [PATCH v2 1/9] media: v4l2-ctrls: add DV RX audio sampling rate and present controls Hermes Wu
2026-11-24  3:04   ` Hermes Wu via B4 Relay
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
2026-11-24  3:04 ` [PATCH v2 2/9] media: v4l2-ctrls: add the DV RX audio type control Hermes Wu
2026-11-24  3:04   ` Hermes Wu via B4 Relay
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
2026-11-24  3:04   ` Hermes Wu via B4 Relay
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
2026-11-24  3:04   ` Hermes Wu via B4 Relay
2026-11-24  3:04 ` [PATCH v2 5/9] media: i2c: it6625: decode audio status fields with FIELD_GET() Hermes Wu
2026-11-24  3:04   ` Hermes Wu via B4 Relay
2026-11-24  3:04 ` [PATCH v2 6/9] media: i2c: it6625: add I2S audio capture DAI Hermes Wu
2026-11-24  3:04   ` Hermes Wu via B4 Relay
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
2026-11-24  3:04   ` Hermes Wu via B4 Relay
2026-11-24  3:11   ` sashiko-bot [this message]
2026-11-24  3:04 ` [PATCH v2 8/9] media: i2c: it6625: use the standard audio rate and present controls Hermes Wu
2026-11-24  3:04   ` Hermes Wu via B4 Relay
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
2026-11-24  3:04   ` Hermes Wu via B4 Relay
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=sashiko-outbox-230443@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Hermes.wu@ite.com.tw \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=media-ci@linuxtv.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.