From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796130742; b=UCVcKXpEF7NJwc6mxvYqJvhaKNM4jDqfC85SoiMHlJJGZW8Df3EVUu3+C8/YPVqjdKaZ WfQw0mEiewgYNZEXzspk51xht39fS/wca1HDHc/jVDhvvpMijwY9lvbN8hE8x8uYxTXtc vG/zXSIpncncfK4aEhyJ18s9pzOimEyh3JVMGpP8xH/8lz3klmXQnsvWD4oZpvIIGAuV2 R01zx+WnhjA2sk4MZKhOeVykHTwPf42YyC2LIACPRZjtiQvzf4DQwdn1bUvaUl1NGNkZm tpUUvYzusOj2HDGsbCvjXuoVBeu1upZ4NESdcugYgVc1hC/VVl8Fi+GHemZQgENSZqQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796130742; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Type; bh=JrscRX5CJQ5JYOwhJ4KsIaAKWJ1fJVZUGfB/9CLpevA=; b=VK7GLEQYzUATxYqPXeXN5nXCgzgtZxd3TBjnPPjWbX3vjOF4iCk/mrE233BBJBr/9Lvu wpeC7xApavDRKDGMZwzvanH82ky82PxarRF+3Cru8Oo5/WM2vHHf9qirsx/9PVcN7MB1H dVR0kJIEwn+6sgtz6se7Oiup/GzH8RhDpzS0E5LieSM8ZsBLD1goNjb4tZ3kVHL8Ep3He aeRcrLuC7t8WFUEL69ODJa/XlOrjiiCdUiCiOJU1YMBcSRvLgVChAXq1EGG0nFSbGh7Sc qX+zU2+2aavWtb+JfRP+nlbPpD8RPNO+B7DuX8XZTkW6OKWdU8lhW/TrYynO2SwqM6Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arduino.cc; spf=pass smtp.mailfrom=arduino.cc; dkim=pass header.d=arduino.cc header.i=@arduino.cc header.a=rsa-sha256 header.s=google header.b=dhd3oXxf; arc=none smtp.remote-ip=209.85.218.54 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D6E1606A327 for ; Tue, 1 Dec 2026 13:12:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1D6E1606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=arduino.cc Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arduino.cc Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arduino.cc header.i=@arduino.cc header.a=rsa-sha256 header.s=google header.b=dhd3oXxf Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-c4d581da0aaso1587792566b.2 for ; Tue, 01 Dec 2026 05:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arduino.cc; s=google; t=1796130740; x=1796735540; darn=vger.kernel.org; h=content-type:mime-version:message-id:date:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to:content-type; bh=JrscRX5CJQ5JYOwhJ4KsIaAKWJ1fJVZUGfB/9CLpevA=; b=dhd3oXxff3zkjB8RY6cu8rC/z6OHdOvyF49JYFE/6oe8mXewVvVJVbIj3cPoSUL4L8 LgHQ/sHKAqPMegCK0V6SgC1Gv8F7vxUqNDFXHDCO5Nl2jrr27rHa+imIlRAoEmKnIftV JYU7+V3V0EKmaDLpFnL/BahgWC+cou5XJ84X0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796130740; x=1796735540; h=content-type:mime-version:message-id:date:subject:cc:to:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=JrscRX5CJQ5JYOwhJ4KsIaAKWJ1fJVZUGfB/9CLpevA=; b=u3KavNArH+WNN/2ZAxQ81VdzyVkjKjDkQA/LMuEMazW2qWv9dQ4DhPTLasM5rDl/wg oblK2KBVMGGH/OiaroYVAayxy9rvfWG/EoBoygXRRR4RSsfbRVDynVfz+LvkNAtPQ7BA u3aeoIeveLwGpfL6Hwf3ebRAghDP3H5V1u0Z8zfcKexoYJC5KDQj74gSaCbjIi1VA5Kn grW93Y8mmoXJNOiOUZ2vLSEoVeJC4VSDyG475h8KMTXGoWuplU8+Gj3M2Zrptl2g2mwB BFBMjqlMDYvfEQ6gfwwbSk4YawG3jALgO/5Jv+KkmmkYfWImZv/XTvaDyjwylgcevg8L MmBQ== X-Forwarded-Encrypted: i=1; AL+hErHR+vGKqk5JcYB6XIvctefyN7b1esXabGgRO+/s3D4uoHTgFihJ30Mw8UzKvhW/QHgpd/4JBbHaI5dPXDY=@vger.kernel.org X-Gm-Message-State: APuU4Z8uqBaKzG6GTx/gCEpv7f+r5XcsjEUsFpaVd8FJz9wCga/Zn9HQ ySxq+KmhJUM2E0M1Wd40q3gffld+cbv0thz2svnqjAgsQ8xvbHrhmJsLRI3G+OTUVUj4m+ozAfH bNi8FZ8Jb1KqVTVFQVTTaiaPmkJk/xjtK7WLfY4OsMyd1Ae9JKQt08Nhi5VI= X-Gm-Gg: AZFdTZf8A83WCPLn4w7cIMiTov9R7dweOX9WkiXIJOSvidPfCQmimZHflUi2IZ5j5Mu ic/ng22ED9AXjlob3fkMNX3NSPdT0FCtli01aGoG/78cfykBZBATzOJw2kWgz9FXeYUiu0qfYrB nTfUTF4fhK08537TQ3iPPN+vtQrjbIUD4ZDIeAgRHpouI13HR0uKU29D+adIEEjnDIYRiPMjdIu jSC6Tl7dDRPl+/Wi/4OPnNEQvWCBj8HYwIHZu5GUMzWlQfSD/7Fk7zGSC9HDuOoMG04Usr6dKCM IbrFlbLi4kQUmSEBt4wfqLVGUwR17aZJLggM3f1PtciEQjXGUqUrYzmKFlOdojPZz3YcpC+klVf zFHH3da2DuoaSvS+Ygqo7+/Fo3ZETXVZFpN5trzLrFwmeZLr10EDCPCFC60kS/gz1hEdeucrb9i Uo+HFd1mJZG1XRzw1KQhkQd7K4JNKpCjlx//FljCN947dlzJJPY1OWyMEwzUmf9l2DbAzcJ0cG3 BLtPCd4ZfemnOhsmw+AZyt9/mQ0tL+CeSjKC15WE28KszVmnEB13VVQhBrusU+6rZOrPbqWm6MG 8P/YW7lp5CFn50YvDb91ebwiCw9MOMbxfjpubDztj9adVygrc04wY9F0veK26w== X-Received: by 2002:a17:906:785:b0:c43:ae92:9ad with SMTP id a640c23a62f3a-c513a999796mr2378745566b.17.1796130740370; Tue, 01 Dec 2026 05:12:20 -0800 (PST) Received: from riccardo-work (public.toolboxoffice.it. [213.215.163.27]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6c61e53asm77939587f8f.59.2026.12.01.05.12.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 05:12:19 -0800 (PST) From: Riccardo Mereu To: Neil Armstrong , Dmitry Baryshkov , Robert Foss , Laurent Pinchart , Jernej Skrabec , Luca Ceresoli , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Xin Ji , Alexey Klimov 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, Riccardo Mereu Subject: [PATCH 0/6] arm64: qcom: Arduino UNO Q: DisplayPort audio playback Date: Tue, 1 Dec 2026 14:12:03 +0100 Message-ID: <20261201131212.161224-1-r.mereu.kernel@arduino.cc> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" The Arduino UNO Q (QRB2210) drives DisplayPort over its USB-C port through an ANX7625 bridge. The bridge takes audio on an I2S input wired to the LPASS Secondary MI2S interface. This series adds DP audio playback on top of the sound card support for the board that is already in linux-next. The ANX7625 has its I2S channel length fixed to 32 bits, while the MI2S backends of the sm8250 machine driver always run with 16-bit slots and a fixed 1.536 MHz bit clock. The board therefore needs a way to ask for 32-bit slots, and the rest of the path has to accept them. Patches 1-2 are fixes for bugs found while bringing the board up. They do not depend on the rest of the series and can be picked on their own: - 1: register frontend DAI links before backend ones. The board DT lists its backend links first, and without this patch the card does not register here ("Failed to add route ...", card -19). - 2: out of bounds write in pm4125 when a compander switch is set. Patch 3 lets a board run an MI2S backend with 32-bit slots: the sm8250 machine driver takes the slot width from dai-tdm-slot-width in the cpu node of the dai-link and derives the bit clock from the stream parameters. Without the property nothing changes for existing boards. The MI2S playback DAIs already accept S24_LE and S32_LE since commit e03e85ff7500 ("ASoC: qcom: q6dsp: add S24_LE and S32_LE to MI2S playback DAIs"). Patches 4-5 are for the ANX7625: the binding allows #sound-dai-cells and the driver accepts a 32-bit sample width. Patch 6 describes the DP audio path in the board DT. An overlay that takes the DSI output away from the ANX7625 (a DSI panel) must also disable &dp_audio_link, otherwise the sound card waits for the missing codec and does not register at all. There are no build dependencies between the ASoC, drm/bridge and DT parts. Patch 6 needs patch 4 to pass dtbs_check, and patches 3 and 5 for the link to work at runtime. Tested on the Arduino UNO Q on next-20261127, which includes the 24-bit fix for q6asm, commit f29b683543cc ("ASoC: qcom: q6asm: fix 24-bit PCM level via media format V4/V5"): - The I2S bus captured with a logic analyser: S16_LE, S24_3LE and S32_LE reach the bridge bit-exact, MSB aligned in the 32-bit slots, with a 3.072 MHz bit clock. S32_LE keeps all 32 bits. - S16_LE, S24_3LE and S32_LE at the same level on a DP monitor, left and right correct, also through PipeWire, which now picks S32_LE. - 20 stop/prepare cycles of an open stream, 44.1 kHz resampled by the DSP, and DP and headphones playing at the same time. - Headphone playback and headset microphone capture still work, at 16 and 24 bits. - With the DP link disabled by an overlay, the card registers without it and the analog paths still work. Only this board was tested. Other users of the sm8250 machine driver keep S16_LE and a 1.536 MHz bit clock, but the clock is now set in hw_params instead of startup. Riccardo Mereu (4): ASoC: codecs: pm4125: add compander channels to the RX channel table ASoC: qcom: sm8250: support 32-bit MI2S slots dt-bindings: display: bridge: analogix,anx7625: add #sound-dai-cells arm64: dts: qcom: qrb2210-arduino-imola: add DP audio playback Srinivas Kandagatla (2): ASoC: qcom: common: setup fe dais before be dais drm/bridge: anx7625: accept 32-bit I2S sample width .../display/bridge/analogix,anx7625.yaml | 4 + arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/qrb2210-arduino-imola.dts | 43 +++++ drivers/gpu/drm/bridge/analogix/anx7625.c | 1 + sound/soc/codecs/pm4125-sdw.c | 2 + sound/soc/qcom/common.c | 182 +++++++++++------- sound/soc/qcom/sm8250.c | 114 ++++++----- 7 files changed, 216 insertions(+), 131 deletions(-) base-commit: e5aad2bdbbee783611d32599f89cea3f12f9593d -- 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.