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 2AAFCC982D2 for ; Thu, 17 Sep 2026 21:02:54 +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:In-Reply-To:References:Message-Id :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=wDzScwBS0izC88gYQm2u2juQKGOrw29HMjq+CyXwP4w=; b=FgE2YCfhzXe2U7 R5T+shMGgFfVeXA3zm09b7S7mQdaZXqX0i8vHmUrt6kCcO0onJ3a7aGe+8ED0mnoF28q2TNp9rg3U HvPPXPBj+Dy8+wueEAq/IGo6CHQVu1AhBf5EXGeLUg+kVtT0NYQFcAG0zk4gCKcZ6EGh0rUojZIVt R+LWbMr9nF5PfmwBE9Sq5ecilMNqhkZVKOavCzISOEqgov+p4VntalQKIOMeAIK64EfouTc/owlzQ dUBT6jn5a91+qV8n1/Qkbu6uKuvBKa6MK0MHVxUukalGQvxUyrrZdNDfnGrEGMFHAxi4rEbcddkLm +3JCZ1F9RjL4/0/6Zrtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7JFr-0000000CW8g-3G5F; Thu, 17 Sep 2026 21:02:51 +0000 Received: from mail-wm2-f13.google.com ([74.125.225.141]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7JFm-0000000CW4o-0S2z for linux-amlogic@lists.infradead.org; Thu, 17 Sep 2026 21:02:47 +0000 Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49e7bcb94d3so470155e9.2 for ; Thu, 17 Sep 2026 14:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1789678964; x=1790283764; 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=Fri6vILQeIxSVyF6ZSidChpOk0aiH6elTWzmVj/RrMPL4p85UTDEtpUjNqdxj7fu4N gpjM82GlrUIB4/5XNhKVhysSAYVDOJnXiFAVAvwimDl4J0x3+BedKnDasb8i7Qt1r8k5 dox5MItBXka4qystK09qa6YTJ6klsHWOZ0l99Gffyq1It+duGGMlWidhLhDyiiJl3X80 m7MTSPGdyS90AxQjAKraIAjnNq3blbvEJksOD2hBA/x+zMY5TIpHDB77S0OihvYc+kow E6hqoCjKTfXaAePmKLaW7pBkKYiDzTW2UjSZV/GA6vCsHhplQAQG1Dk1Y5O5o/+wIeqi 1tIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789678964; x=1790283764; 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=U10QfcLXRqpuIeQX52T5z6gYn5+tNS04nebsxfqIytu9lbk3Lry0r4bKwXP7SKu/Cl tYN1tn7986tIV4DZrpxoGn8yA+Tfrfspp+ouMzMZm5LTixvQvq/hoqPGT0kzdJ8VWgyM LTrd4Mza2kpDu5XA7aB9PQ5LZCaNXkvLBm0i/lCuE41JH4MLg/3kwIbjQfmCSgPv5Z1r Ct0lijVYoigj/MrIRLPvDf3kd6D2h6UnKsBitSnGVPdHEBc2LPlIJVvlOkT04iAwV8Cl oB/2MVMM4bh08PqOFvMZK5oJ0LiHreWAnSLOY6jIcDDZ6cO+a+TLoFW2Neo3c5AZD4fg alkg== X-Forwarded-Encrypted: i=1; AKwUvByBfWHfILSOnuRP6FWawIQHqsBjBE8rI26+wbS4s3iKsMw4Cv13t+X3BBPyxyi+xq0kvKu5nhQHh9j2y84p@lists.infradead.org X-Gm-Message-State: AFuF++kSeGTfTWGDmr8JpbkQmtZMyJvp0WwAKq+GMPvzmxMmvNek/iRN fM4CTCGAW5WD/oVNZ0VUWWLiajFiliTfCcR/kBWJFPHS7a1672FxYihpRcbGEeWGVOUkJEwkBdQ xLBjexWeUUA== X-Gm-Gg: AYBFou3T6QHYF3szNnrNDcv9144/7cdFv55pkJHeEYX/KgXLj+SuYTPqn/i1otattUG weeZDpgl4n4GTelZXLSJENGjQEGV1KyOJ9EvGwGT5r0lqXOh70rrF2W/4qZXNvv3LcGuvC4YFJr DE0cotaGyWKg8FraNPWyrA0+FvGI8Toq4GHWDUwDcs6G7hTiPncHcGoIW2sPN3ydX1B//db53Fg EzqTUlqNj7Ez5oOvTerE167CjbonIpUlKM/3kDvQwkVwTrnghdF2bMvxDdDifD0HClQuXnnYJDk GA/YccZ6lGzHIm7LYYTezZRjMx1z+W312KJCGqfQGCT/E8TPjYRbSA3VFClBcQ/daD1mQzGINXd GQQ639q1ydaESQuphQnch8koHDCBFdDZMeBR39kDzHvuyzxLAp7Tfoxi2WylX+ytaY6B+/gZrJ4 cU450ANYBdl44vK0j8sAQ8d3r6ChdpdmmhnrXMjrmK3LqA9Ja9e+27nwSe9VR0D7cM3qD82YhpX ppRhQ== X-Received: by 2002:a05:600c:198b:b0:49c:fc6e:8cbd with SMTP id 5b1f17b1804b1-49fc574f05dmr1574425e9.33.1789678963884; Thu, 17 Sep 2026 14:02:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 14:02:43 -0700 (PDT) From: Valerio Setti Date: Thu, 17 Sep 2026 23:02:34 +0200 Subject: [PATCH v2 4/6] ASoC: meson: aiu: add I2S Capture DAI MIME-Version: 1.0 Message-Id: <20260917-audin-v2-4-38de4bc1de34@baylibre.com> References: <20260917-audin-v2-0-38de4bc1de34@baylibre.com> In-Reply-To: <20260917-audin-v2-0-38de4bc1de34@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=owGbwMvMwCV2z3ty7kUrRgbG02pJDFlrQnPVXXIkF19akM2yaANzTvkv5SwOwx05M15mSF780 rfPiNOso5SFQYyLQVZMkYVl+r3fBaVqD40TThbAzGFlAhnCwMUpABM59ZLhf0BKUawkm9T3o373 JU4++fdX5HWgZ7tPR4R6xFNtM3WhnQz/TBt0/F/LRDzrEImSn2DTeaBkfTLbsZcn2dRi5yVor2h mAgA= 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_140246_162651_341254FD X-CRM114-Status: GOOD ( 12.21 ) 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 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 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic