mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Riccardo Mereu <r.mereu.kernel@arduino.cc>
To: Neil Armstrong <neil.armstrong@linaro.org>,
	Dmitry Baryshkov <lumag@kernel.org>,
	Robert Foss <rfoss@kernel.org>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Luca Ceresoli <luca.ceresoli@bootlin.com>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>,
	Riccardo Mereu <r.mereu@arduino.cc>
Subject: [PATCH 5/6] drm/bridge: anx7625: accept 32-bit I2S sample width
Date: Tue,  1 Dec 2026 14:12:08 +0100	[thread overview]
Message-ID: <20261201131212.161224-6-r.mereu.kernel@arduino.cc> (raw)
In-Reply-To: <20261201131212.161224-1-r.mereu.kernel@arduino.cc>

From: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>

Some I2S hosts, like the Qualcomm Q6 DSP on QRB2210, run the link with
32-bit slots. The ANX7625 handles this: it takes up to 24 valid bits
from each slot. Right now hw_params turns down a 32-bit width with
-EINVAL, so these hosts get no audio at all.

Treat a 32-bit width like 24 bits and program AUDIO_W_LEN_24_24MAX, the
widest word length the chip has.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Signed-off-by: Riccardo Mereu <r.mereu@arduino.cc>
---
 drivers/gpu/drm/bridge/analogix/anx7625.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c
index c3af88e14f8b..cc76000c0888 100644
--- a/drivers/gpu/drm/bridge/analogix/anx7625.c
+++ b/drivers/gpu/drm/bridge/analogix/anx7625.c
@@ -2044,6 +2044,7 @@ static int anx7625_audio_hw_params(struct device *dev, void *data,
 		wl = AUDIO_W_LEN_20_20MAX;
 		break;
 	case 24:
+	case 32:
 		wl = AUDIO_W_LEN_24_24MAX;
 		break;
 	default:
-- 
2.56.1


-- 





Privacy and Confidentiality Notice: This email and all attachments are 
confidential and for the designated recipient(s) only. They may also be 
privileged. If you are not the intended recipient or among the intended 
recipients, you may not use, read, retransmit, disseminate, store/copy the 
information in any medium or take any action in reliance upon it. Please 
notify the sender that you have received it in error and immediately delete 
the entire communication, including any attachments.

  parent reply	other threads:[~2026-12-01 13:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 13:12 [PATCH 0/6] arm64: qcom: Arduino UNO Q: DisplayPort audio playback Riccardo Mereu
2026-12-01 13:12 ` [PATCH 1/6] ASoC: qcom: common: setup fe dais before be dais Riccardo Mereu
2026-12-01 13:12 ` [PATCH 2/6] ASoC: codecs: pm4125: add compander channels to the RX channel table Riccardo Mereu
2026-12-01 13:12 ` [PATCH 3/6] ASoC: qcom: sm8250: support 32-bit MI2S slots Riccardo Mereu
2026-12-01 13:12 ` [PATCH 4/6] dt-bindings: display: bridge: analogix,anx7625: add #sound-dai-cells Riccardo Mereu
2026-12-01 13:12 ` Riccardo Mereu [this message]
2026-12-01 13:12 ` [PATCH 6/6] arm64: dts: qcom: qrb2210-arduino-imola: add DP audio playback Riccardo Mereu

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=20261201131212.161224-6-r.mereu.kernel@arduino.cc \
    --to=r.mereu.kernel@arduino.cc \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=airlied@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=lumag@kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=r.mereu@arduino.cc \
    --cc=rfoss@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=srinivas.kandagatla@oss.qualcomm.com \
    --cc=tzimmermann@suse.de \
    /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®