From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 83873C982D0 for ; Thu, 17 Sep 2026 21:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/i8tmj4Ux9L3W7tA2DKFhXVL1nFciuLy4BLMoFwenis=; b=uNxBYuGOz6b9l1 5R+2r0Jl0fROZc8XxX2j8aJPEtgBHkVox9uYR716A+yRg8IMIxhnSywS1D21aZRY23xHHnU9H4Auy X87jjPwV/nBb+XyaQtICs6d4JfEnF+XSO0hoVHgB/j5Ydjz1tYUVJRiNWDZDTbw+jY+1TgtIJBIer gdAozCoZyp1J0IT7V4025nHqtV2yUSB35qLMvVyTvLS1wB/cSDVsxoH/K5bWRjZGuQY5Amfw6Qhcq WQPAmCR0TezFJNNjEJT381S+NUwvl5hiWljJt91djcK7W8VEhLesTOQb9zCAXMo5kp/cNORv2DgBi SAs8pGDb1AxUuYjkfR0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7JFl-0000000CW4t-1HBc; Thu, 17 Sep 2026 21:02:45 +0000 Received: from mail-wm2-x11.google.com ([2a00:1450:4864:31::11]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7JFh-0000000CW3h-3jVb for linux-amlogic@lists.infradead.org; Thu, 17 Sep 2026 21:02:44 +0000 Received: by mail-wm2-x11.google.com with SMTP id 5b1f17b1804b1-49e8185e037so445535e9.3 for ; Thu, 17 Sep 2026 14:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1789678959; x=1790283759; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=097ql+3Z1IlDXg0ya0fn2DItRG2p3HsUzNgnRrCaa70=; b=bZ6t1aD0ZO4Oea2pdXAQlC44fRtmi9zvJv2avxm7bccDIYJeJ8R7ydmivvZO795wKE NWx/3zhLoVaYfEZiIEn60ZRSXfHc3R5ORPo81vZkbn531PmS72saQVWODE9j/La7No1e BSwOZ8Gctsr39NlptaeWp62+87uLm5Xg8ttRZ3PdT1NeJ0bG1Rfu4JOOYuzqobPTW94Q Dm1OBYclAI13FYtfwdbowp2xeATqll9UUarCAr0mI2R/ZYSr5kvjLssnnPdklH/61RHx HZXYv0KjSIgm0ZCMMHQx9LPBIAJ3n3ZBhbMYI2X0OI5BgdLmVwkoy2iEvLAFNIEwnzXh HEgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789678959; x=1790283759; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=097ql+3Z1IlDXg0ya0fn2DItRG2p3HsUzNgnRrCaa70=; b=Xite1MiyAu/LQDZEFBVGOuGIPunKotz7ZTFbty8hVvCNTsrUYy6PAgQMjwSIOAP/cY /31ZPU+EbMM/SqfDc2wNb6IgUZ2jSKYwGPuVjEwC8tvWZJ132bqkwKSV5u6k2Srf7vjq LdKfCVQnCQmg8Yh/gChi8Ua+tXaVE6YEoYpX/sQH32ts+4r1skA2FIgxBjngvFU5blW0 O2crdHD7bYC0mp04YWXkaYcnxaIOXe6+g3aXU+LwpV2wbYujPIHGFrPmOK5VOPbsFzJn z8I/8Hcoj2Bs/EsptDeMiX7fMwBIvhGB6RqzFofF1hlk60E1mXSzkmrJ5SunF1CslZ4B yT+Q== X-Forwarded-Encrypted: i=1; AKwUvBygvsvuw0qIkRlyHpWgc1755qVW1RsdUB62U+ERbiE9/0kVZ/WEB1L/NdZ9s99EFj+DsDx3wXvsmOfYaF1G@lists.infradead.org X-Gm-Message-State: AFuF++lvnL8ibChhmx4vxOcJwi190WNAr6OdtACGY0FOjerlAG9MVb8d 0zHxB1u1tNilOJFOOqf208jqqy558o/DwS8cDSXPpsgNJlCWYrTuM/PCC4cZ1ZJMK1g= X-Gm-Gg: AYBFou0ztKSfE5hSErinUVCdp+mETymD6AOjYhjHjDN5/keE9vONFmq9rqdz+fwFJEC +4f592KUswzrGbpQFETJQdA6V0RUA9BQpuvmH3zmy8vBDIcoodan1r4RE9BQ7l3eRJap2FkxgWe LDnfwj1hDqug5jwRxhJWhxajKdKOiL+fHNJiGY3bJomV0at9GOTyNCFGdhklf6Jj5iv2dGIslYM APr9AAco1RpzrpMLaKzxv/p/xLjK9DJ8ggaaZCLQ+zSeApmdKYyoqKaIRgfAzod1pcanc/Smi16 X4WtnhYc7K4ZF5etmCCF+o0qH5KjNU2cWUTFIFnguty7vmRmmgzvGihZhb0X+wFAAWxc2K8yJ4A S56tBX8Tsv7PkeX5kBbgSmY3rL2hCtBKqvuQ14qbHX6Zby6pmfeBucSzzZpJXn5giGqo8yLd2j0 WmJMR9/gMjXu5uybWWtUslVI5OEBSnSpQMRCPC9nxmbWHnWgI1poWXNNOQFyquRTaZeiJdqixed 8ph X-Received: by 2002:a05:600c:1993:b0:49c:ffe3:2b3f with SMTP id 5b1f17b1804b1-49fc56dbc54mr1780725e9.3.1789678959379; Thu, 17 Sep 2026 14:02:39 -0700 (PDT) Received: from [127.0.1.1] ([151.42.87.32]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fc5755c40sm3106095e9.3.2026.09.17.14.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 14:02:39 -0700 (PDT) From: Valerio Setti Subject: [PATCH v2 0/6] ASoC: meson: gx: add base support for I2S audio input Date: Thu, 17 Sep 2026 23:02:30 +0200 Message-Id: <20260917-audin-v2-0-38de4bc1de34@baylibre.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAGZVrGoC/y2NwQ6CMBAFf4Xs2Zq2olBP/ofh0JZF1mgxLRAJ6 b/bgsdJ5s1bIaAnDHAtVvA4U6DBJZCHAmyv3QMZtYlBcnnh9UkwPbXkmLLamPLMrVUlJPfjsaP v1rk3O4fJPNGOeZyNnsI4+GU7mkX29qYS8t+cBeOs6gx2qGRdCXEzenmR8Xi0wxuaGOMP4jULB K8AAAA= X-Change-ID: 20260831-audin-9cabb450cc94 To: Jerome Brunet , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Valerio Setti X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4682; i=vsetti@baylibre.com; h=from:subject:message-id; bh=yo+5pijNTMwmqWFlMlY2nS+EN4AqIMiUf/48r8SNlyU=; b=owGbwMvMwCV2z3ty7kUrRgbG02pJDFlrQnO93i26K/tHIHTLnPNu+qUWR+Py14V5n1Jn7zgvX HCY/eSLjlIWBjEuBlkxRRaW6fd+F5SqPTROOFkAM4eVCWQIAxenAEzk1gGG/95XDHp/tlSdjlm6 sIgl3la1lON2543739bvSNN8WGqm94Lhf6icUaf6z3uvcphl5todU+qw6XPJCrtx6wpf0F2/Dbv k2QE= X-Developer-Key: i=vsetti@baylibre.com; a=openpgp; fpr=0497DEFB707526E13360C970DE4B936DD13A0100 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260917_140241_985522_CA5CF836 X-CRM114-Status: GOOD ( 17.94 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org This series is the 2nd part of the initial RFC [1] proposed to add audio input support to the Meson GX SoCs. After the AIU reshaping series [2] that has recently been merged, this one adds the audio input path itself. Apart from some glue commits for gx-formatter Kconfig split, DT, bindings and integration with gx-card, the core commit is the 3rd one, which adds the AUDIN driver. This is the counterpart of AIU for capture: it gets the entire register range, it handles peripheral clock and reset, it instantiates the I2S data formatter as widget and FIFOs as DAIs. Resulting capture topology is: pads --> AIU I2S Encoder -> AUDIN I2S Formatter -> AUDIN FIFO -> RAM This series includes all the changes related to this work (dt-bindings, drivers and device-tree) in order to give the full picture in one single place. Unfortunately, since no Meson GXBB/GXL board available in the tree features an I2S capture capable codec, this work cannot be directly tested out of the box. To test it an external codec must be connected to the SoC. When working on this series, a custom hat board with an NXP SGTL5000 codec has been plugged on top of an Odroid-C2 (GXBB). The last commit of this series fully details all the device-tree changes which are required to finalize the support for this scenario. With this hardware configuration it has been possible to successfully validate the implementation with: - alsa tools (arecord) - pcm-tests [1]: https://lore.kernel.org/linux-sound/20260411-audin-rfc-v2-0-4c8a6ec5fcab@baylibre.com/ [2]: https://lore.kernel.org/linux-sound/20260610-reshape-aiu-as-axg-v2-0-cac3663a8b51@baylibre.com/ Signed-off-by: Valerio Setti --- Changes in v2: - Dropped FIFO child nodes from AUDIN in device-tree. Now AUDIN is the only sound component and FIFOs are its DAIs. This is the same design used in AIU. [Krzysztof] - Renamed driver compatible, using 'amlogic,gx-audin' as fallback and 'amlogic,gx[bb|l]-audin' as SoC specific. Fixed also other reported comments on the binding. [Krzysztof] - Adjusted headers inclusion in 'audin.c' and spacing in the empty entry of 'meson_gx_audin_of_match'. [Uwe] - Replaced 'snd_soc_component_read' with 'regmap_read' in 'audin_fifo_pos' in order to prevent sleeping in atomic context. Also changed the hrtimer from hard-irq to a soft-irq one. [Sashiko] - Added 'sync_stop' callback in 'audin_component' to ensure the hrtimer is fully stopped before attempting to restart the stream in a "start->stop->prepare->start" scenario. - Link to v1: https://patch.msgid.link/20260912-audin-v1-0-7fbefe928711@baylibre.com To: Jerome Brunet To: Liam Girdwood To: Mark Brown To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Valerio Setti To: Jaroslav Kysela To: Takashi Iwai To: Neil Armstrong To: Kevin Hilman To: Martin Blumenstingl Cc: linux-sound@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-amlogic@lists.infradead.org --- Valerio Setti (6): ASoC: dt-bindings: amlogic,gx-audin: add schema ASoC: meson: build gx-formatter as a separate module ASoC: meson: add AUDIN driver ASoC: meson: aiu: add I2S Capture DAI ASoC: meson: gx-card: add support for audin FIFO arm64: dts: amlogic: gx: add AUDIN node .../bindings/sound/amlogic,gx-audin.yaml | 66 ++++ arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 9 + arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 6 + arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 6 + sound/soc/meson/Kconfig | 14 + sound/soc/meson/Makefile | 7 +- sound/soc/meson/aiu.c | 7 + sound/soc/meson/audin-fifo.c | 367 +++++++++++++++++++++ sound/soc/meson/audin-formatter-i2s.c | 174 ++++++++++ sound/soc/meson/audin.c | 186 +++++++++++ sound/soc/meson/audin.h | 30 ++ sound/soc/meson/gx-card.c | 16 +- 12 files changed, 880 insertions(+), 8 deletions(-) --- base-commit: cee9395acd8043be0644b25c34bfa86623f2b935 change-id: 20260831-audin-9cabb450cc94 Best regards, -- Valerio Setti _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic