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 1B961C88E50 for ; Fri, 11 Sep 2026 22:15:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0a21Y1nKSOFECTC5sqA3T0CqQ+Krc+hIIInAv6Qgnz4=; b=LP3GifqhofjvAG4AjfbXce4Pxf 4Jor96PC8aBGUbbY0T8lnCPOlJTku+EMlKjWysw1wFCqXMGgAiOK28lXzqpcM9X5rY4yDpYW1tkIb AIvdj+drMriwgaP3t5TxRgEdBrKAGoXIaWhxsiKrqYo5dG8xDcl2e3osjBSq7CMKKHq9AzLuBzn0F ihUHssO1zXI96pCYay1gSZur+rd83QYFzLYfnABx1YsShEgUzsbXYvhwIxPCeuRmuG71eo7r/Di2G RYgPEB2CRjxLbriLrdeiMZeFtf+9uWSlmTPTjjBQHfCfQKmFjcko9Fqkl+lmxjC2AD1skfGj7M6q9 ReSvRPtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x59Ws-00000000FNi-15Xh; Fri, 11 Sep 2026 22:15:30 +0000 Received: from mail-wm1-f47.google.com ([209.85.128.47]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x59Wf-00000000FE5-1eOy for linux-arm-kernel@lists.infradead.org; Fri, 11 Sep 2026 22:15:18 +0000 Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-49e6b280cadso4218585e9.1 for ; Fri, 11 Sep 2026 15:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1789164915; x=1789769715; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=0a21Y1nKSOFECTC5sqA3T0CqQ+Krc+hIIInAv6Qgnz4=; b=Xq9JfhgnGRz0I4B79Zd8pdoXY9H1pbKQ+QlQvEByxRrVog1PgYWo9WPCZwcDfM2EgH FS4WTrV+lwBoAxUM9KZJppDT6VTWG7ZUZff9LgHJWTV69wX/b0fHBCe6ep2Qa5X52j9l cd4S8QYFsVXIYpUX7zJEVg3YOrMiSj0ah8bO+gDaUwq/rus3LljheJ6NRVEtfKsjaBha JIBichTuuqXzfE5kPTs5lf+rmJMXzOGkh91LX3TzYHVskzIqpt4iTaEBbEvV9pWLKxpq X/o70e6tM/KMIE4V8hvsfzUTa7wMH57LfL/Wx/IpN3uhQUClOGB38Oi0/tqDu9mb5mSc ZH2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789164915; x=1789769715; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=0a21Y1nKSOFECTC5sqA3T0CqQ+Krc+hIIInAv6Qgnz4=; b=f8M8t8avlHaROSeDxYgd0tbk0raoH7b3gbi9Mv+mNReTH9b4ukdVG0sq6ZCDhluJ9d g7Bw7FJ3B+rRofFBazxd2LHA3AWZVkkriz9RtVYLGmGJxSQpOjh7jcSx8o/abiY02/De bejIie/MFW2iB5gBJPTcLyX5omvaSYzxPKcHdbeYBqOnVNSoMLw8FnzHsS5G8iWYDmr9 NZ1NoBkE+H3pIIg6sTK9DfEsF00Fp/ib8BOQ6BxDMXGh++4FWAnCWtAgaMyGIZYe+PjW fWyB0T9HTewsXxPIZbXE9bSezteBrPgfCegCZCbLoW5KTIwtkxQ8KhAprnTjJURpXtiK h9KA== X-Forwarded-Encrypted: i=1; AKwUvBwIjdYGzcFyhYqgSgn0AgMFkEQ0UrQI2xZmnpwHcxFIex6JgBILImYHc9DmMS3BboZeoJWj/yy0bNdCUchz/s8E@lists.infradead.org X-Gm-Message-State: AFuF++kH6Zk70wPVyY9K7LTGIKiC8Gp/JXtehZCoWs2Epr1HEHjl8ZSi R8O5vM78KyUI207RCng3IHh2sC6oZ+UEBtTFrvkUMOw2vC+Kk/OJufQra5nHM8PvIJA= X-Gm-Gg: AYBFou3/QkTtWLWAFQHiC1QiJ0aK+4UJl73RyJgC/i1MSK1fScR6h8eWw6ODFVhz/qj 9E16YN0RbG/suFzoAnD3D+RhxpZTYVCzdjAs7ATBpoq78t1VDK9BmRl2YnipsyDLglMMV5iB2LG JPi1Zg5oDkatiXS41zkPSQUXL3CkJepr3/S8de3HriQkRzdh39cGFZr0kFHrOtubPvELomUFKLt JlbWJ1cPwNLw2ymZX9Znu2Nv9SB3urcP4WaG14BtxhG9yYE2+iKLgCUCGE3Z9NS1Tt/tILipOdF C8q5XyzHAL6Hx9ORmGnx6Mb9uXl5oC7oJyLF40jN/04W5gfRcV1hGFH8cJr2Xg8jiRxXpDz2v4h Qm5iumSBPUvPAf4NJcX+GmiP5bYHSP8c2l+h+qVVo201lY8TS1vo6z8hkEQnRxmHIe/ZUuLonYW b+jH982QVWrvcYfF4usrUV5DHRipifExDcm9yoCKhIUtvUUUc+txcrmT9oga28POH0vg== X-Received: by 2002:a05:600c:3484:b0:49d:433:c3b6 with SMTP id 5b1f17b1804b1-49e619d1eb8mr73755815e9.27.1789164915060; Fri, 11 Sep 2026 15:15:15 -0700 (PDT) Received: from [127.0.1.1] ([151.42.87.32]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49d26c2a419sm202882745e9.7.2026.09.11.15.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 15:15:14 -0700 (PDT) From: Valerio Setti Date: Sat, 12 Sep 2026 00:14:34 +0200 Subject: [PATCH 4/6] ASoC: meson: aiu: add I2S Capture DAI MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260912-audin-v1-4-7fbefe928711@baylibre.com> References: <20260912-audin-v1-0-7fbefe928711@baylibre.com> In-Reply-To: <20260912-audin-v1-0-7fbefe928711@baylibre.com> 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=1725; i=vsetti@baylibre.com; h=from:subject:message-id; bh=Uvy6WjK33Ql5QDc+7YeTX2qUEcUUi+n12SinkXVNwt4=; b=owGbwMvMwCV2z3ty7kUrRgbG02pJDFlLanPN62R2qhj3RZtv5n7/dkGxo+2X1bUTYtJ8z4T+/ b708KljHaUsDGJcDLJiiiws0+/9LihVe2iccLIAZg4rE8gQBi5OAZiIpQ/D/3iO1Y+uhQl6r8y0 vMEWZraRteTfueBJYvK/nk9Ky7q69zwjw5V01nCFvvMVs85emf4ja2+hp4tZqPejMzzTP2ifKA2 MZwUA 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-20260911_151517_472505_F1EBE700 X-CRM114-Status: GOOD ( 13.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add capture stream to CPU_I2S_ENCODER making it able to handle both playback and capture streams. Captured data is formatted from "audin-formatter-i2s" widget, buffered from "audin-fifo" into an internal FIFO and then bulk transmitted into RAM when the FIFO is full. As for the naming of the stream "I2S Encoder" is kept as base following the same pattern used for the playback stream and with the goal to minimize changes. Supported format for capture is currently limited to S16_LE because it's the only one that has been tested. According to the manual also S24_LE should be supported, but this is kept as follow-up. This capture support also takes advantage of the following commits that has recently been merged: commit df3c987ab3d7 ("ASoC: meson: aiu-encoder-i2s: reflect bs quirk in hw constraints") commit e82159384a50 ("ASoC: meson: aiu-encoder-i2s: use the core symmetric_rate handling") They ensure bs_quirk and rate symmetry across playback and capture streams. Signed-off-by: Valerio Setti --- sound/soc/meson/aiu.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/meson/aiu.c b/sound/soc/meson/aiu.c index 535fbf7c1639..14d0e20a4bd6 100644 --- a/sound/soc/meson/aiu.c +++ b/sound/soc/meson/aiu.c @@ -153,6 +153,13 @@ static struct snd_soc_dai_driver aiu_cpu_dai_drv[] = { .rates = SNDRV_PCM_RATE_8000_192000, .formats = AIU_FORMATS, }, + .capture = { + .stream_name = "I2S Encoder Capture", + .channels_min = 2, + .channels_max = 2, + .rates = SNDRV_PCM_RATE_8000_192000, + .formats = SNDRV_PCM_FMTBIT_S16_LE, + }, .ops = &aiu_encoder_i2s_dai_ops, .symmetric_rate = 1, }, -- 2.47.3