From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8009A3905EF for ; Sun, 18 Oct 2026 10:18:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792318723; cv=none; b=tfCtWHme29Ro4Im4xK+QM9CD+02vXxpOC+GZq7BmAVdGAZIFhyCkCSxKj2zF60alJ4us3zj3IkUX3W1FfabLL23JgKQkZEO5m0be/huS6O//dcEvKwfEn5RHSFGizqAJgZlXaLGIZKqgw9KKHauCDybsh6U3AaXSdYl09cKHcpM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792318723; c=relaxed/simple; bh=JbM2VE3IsOerKlOKNPqjWE7ND0hmDWEReikc0eKWCJU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZVjW97ZlQVsbXENTMxSY+4nGwAbtZcjUT1k883kmjGnvUbRX/DxiLzK52mVGstrZAaSZ84cf6SuWzwsLS2FYYGSLlSO7hnRAIvUJzX5n2Sd0oou0bO5eZT4LTnw8rZbfYe1tOmJj+inztJkvh0zhSaysgad6pNQgb9Ak/ZXIyNA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=U262+0sG; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="U262+0sG" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4a1e477fe16so1125475e9.1 for ; Sun, 18 Oct 2026 03:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1792318721; x=1792923521; darn=vger.kernel.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=i0GYKkf8XbyAZJHyQTcaoYxGjldhybLRAxAX/UufVP4=; b=U262+0sGl8B11GSJtGJTjxQtwaqF35xn88ASzVicc4Fc/rFlWEQCLrPrjPKuDbE+QT VP5VYKfVxIVc4KtNXk3nI9TLS5VV4GTgWPgzj2Uy0rkhjN+Omzu+foKIcyQeCE/RaDrw vLxR9ESTS3dUBpo9VjQPNSD9OhA55xb6F84mxxmNov3ps/OlHDZDom1nJwwh5nmndF4e oz01OBO9wiBZsolh6JhYVih0d8lZlirAer4mklxG4OAc12/+q6szPGFcIKQ1fRjyyAtH EFriWUPlyDf1qXNtqn6DvIOyxglYDraZVQCjJK6kz6Rar1WYT4DvdeAhJ6sZVOdIT7X3 TRwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792318721; x=1792923521; 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=i0GYKkf8XbyAZJHyQTcaoYxGjldhybLRAxAX/UufVP4=; b=A3LkWd5uY/5hMTNQ1PVkE7LOgkuj/VtlvN9xqCBHamt8Qm3DVtL9pUVJRk1Gd4YuOL BmKtKuWiwhmeGeIGSF3ByI2FOyj+k3Y47mRNY71QxHZtWxAwJPjEqJa3kVAnVuSkY688 jofX3UUQYSN9AGqR5dcGEQnoQ4Dq3+JKRe9R4XhxRQFV3G98p9fr7/1Lmh5pamfKNo7X 373Yd/n1V/VeXS/ZELVbf2g06ZaBlVYD0IPtPp2PopyjAN548dbxbeZ8c1MEHCKzsC21 SjQkIGqTSvG7axF4pdlwY3kIfDNduOFvzfeLEmaYOinJoPLoxhF+WgZWhYAnsb+yGA8v PXOw== X-Forwarded-Encrypted: i=1; AKwUvBwMajC68kP+0A0qvdQXm1d1JXf77x/xnj3T8ehgNDQRD3iZ1uv5kMP/D3mtla0BgHocgkoZ0YGg7uwS8fY=@vger.kernel.org X-Gm-Message-State: AFq9FYKTUD4yQNibnwmwjf+ubCY/xeUbfLm2UofHS82/Knngzkswxn6q d28Vcajvv6J0YAQb7RcuyMk3Es9Q0/ApcMTW4fs8Tc/ojd1c3UY/eOAM+xF4k7emPe8= X-Gm-Gg: AYBFou1rWgt8FiyXtM5aiCWNrEBiCXzozvC6X77K29BQZkEKYhD3TOZ2q7B3vIz9Pr1 4fuC+t8h1Lf1Y74FfOVIZKDh+JXb0aPdBy5OGYAWO/Vcb3sDfTt9+cPTLKXGNsb9jLe3JAnpbxD tHSusfdsewcPxWgCUx19G1fTNBxLBakZBPzqpHKO/NPDs+9kFyO98vMfnYHNwWFV0H3Qof8YyEj SgGLKklbSndRYdwLSJlclguMAVdgX9uUgwo7AiS+3z6iiKSi7bKFT11ALF+YaSZTEsHI3dCYdbi wiDdSKWrfIHhjwk/jY37Sxo84PVUBjcL3UbLaDV+ZJFpcbLDMFFurZ/Q6pATSRRn7vQrBYyxhVa nMVbxbcK7v2MPRLuvfyrHa+ndwny3Z7qGQGuIn56VTi5QbeUqxqJHpA76A8Ku7m4kbmmS7PJLdt 9ZUqgmMku7yv/8+kMUcDY9bTET/NstrJIrq4ErB+1MdVLoj4V22h7CcvqwCCivRYrt7NQu X-Received: by 2002:a05:600c:3f0c:b0:4a1:e383:6811 with SMTP id 5b1f17b1804b1-4a1e3836c4amr24008775e9.29.1792318720807; Sun, 18 Oct 2026 03:18:40 -0700 (PDT) Received: from [127.0.1.1] ([37.103.126.255]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48dfd4d4978sm14911507f8f.21.2026.10.18.03.18.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Oct 2026 03:18:40 -0700 (PDT) From: Valerio Setti Date: Sun, 18 Oct 2026 12:17:59 +0200 Subject: [PATCH v5 2/7] ASoC: meson: build gx-formatter as a separate module Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261018-audin-v5-2-4b8cc13a1b22@baylibre.com> References: <20261018-audin-v5-0-4b8cc13a1b22@baylibre.com> In-Reply-To: <20261018-audin-v5-0-4b8cc13a1b22@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=2164; i=vsetti@baylibre.com; h=from:subject:message-id; bh=JbM2VE3IsOerKlOKNPqjWE7ND0hmDWEReikc0eKWCJU=; b=owGbwMvMwCV2z3ty7kUrRgbG02pJDFlX5vxOCv+/XCiZOzFa6sPhy1KTdvuufjJLujw65Y7kr +MJ1zac7ihlYRDjYpAVU2RhmX7vd0Gp2kPjhJMFMHNYmUCGMHBxCsBEolsYGXrOfpw6RzL8+s31 wr7Z3r/F/sob30oxmFfGXp+/lZ09fy7DP+sNAUZbQjKfc7hbXc00vFp7qu9MlqOoi5kvT6Q+X9E XBgA= X-Developer-Key: i=vsetti@baylibre.com; a=openpgp; fpr=0497DEFB707526E13360C970DE4B936DD13A0100 Instead of including it in 'snd-soc-meson-aiu', create a separate module for it. This way it can be independently selected by either AIU or the (upcoming) AUDIN. Reviewed-by: Jerome Brunet Signed-off-by: Valerio Setti --- sound/soc/meson/Kconfig | 5 +++++ sound/soc/meson/Makefile | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sound/soc/meson/Kconfig b/sound/soc/meson/Kconfig index d9a730994a2a..4c40bf60dc4e 100644 --- a/sound/soc/meson/Kconfig +++ b/sound/soc/meson/Kconfig @@ -2,10 +2,15 @@ menu "Amlogic" depends on ARCH_MESON || (COMPILE_TEST && COMMON_CLK) +config SND_MESON_GX_FORMATTER + tristate + select REGMAP_MMIO + config SND_MESON_AIU tristate "Amlogic AIU" select SND_MESON_CODEC_GLUE select SND_PCM_IEC958 + select SND_MESON_GX_FORMATTER imply SND_SOC_MESON_T9015 imply SND_SOC_HDMI_CODEC if DRM_MESON_DW_HDMI help diff --git a/sound/soc/meson/Makefile b/sound/soc/meson/Makefile index f9ec0ebb01f0..1b1fbe8a0458 100644 --- a/sound/soc/meson/Makefile +++ b/sound/soc/meson/Makefile @@ -4,12 +4,12 @@ snd-soc-meson-aiu-y := aiu.o snd-soc-meson-aiu-y += aiu-acodec-ctrl.o snd-soc-meson-aiu-y += aiu-codec-ctrl.o snd-soc-meson-aiu-y += aiu-encoder-i2s.o -snd-soc-meson-aiu-y += gx-formatter.o snd-soc-meson-aiu-y += aiu-formatter-i2s.o snd-soc-meson-aiu-y += aiu-encoder-spdif.o snd-soc-meson-aiu-y += aiu-fifo.o snd-soc-meson-aiu-y += aiu-fifo-i2s.o snd-soc-meson-aiu-y += aiu-fifo-spdif.o +snd-soc-meson-gx-formatter-y := gx-formatter.o snd-soc-meson-axg-fifo-y := axg-fifo.o snd-soc-meson-axg-frddr-y := axg-frddr.o snd-soc-meson-axg-toddr-y := axg-toddr.o @@ -29,6 +29,7 @@ snd-soc-meson-g12a-tohdmitx-y := g12a-tohdmitx.o snd-soc-meson-t9015-y := t9015.o obj-$(CONFIG_SND_MESON_AIU) += snd-soc-meson-aiu.o +obj-$(CONFIG_SND_MESON_GX_FORMATTER) += snd-soc-meson-gx-formatter.o obj-$(CONFIG_SND_MESON_AXG_FIFO) += snd-soc-meson-axg-fifo.o obj-$(CONFIG_SND_MESON_AXG_FRDDR) += snd-soc-meson-axg-frddr.o obj-$(CONFIG_SND_MESON_AXG_TODDR) += snd-soc-meson-axg-toddr.o -- 2.47.3