From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr2-f41.google.com (mail-wr2-f41.google.com [74.125.225.105]) (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 AD8D655C32F for ; Tue, 22 Sep 2026 16:01:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.105 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790092899; cv=none; b=CxN/1uGM15hyQ4nS7RQ4iyCEiEG17GXzufcqZkVFXh2Z7LIOUxSVxNmnl9Y5gaiVxlKnBhLtq4g7mKyRsNvJo31lTgvx7RJRKymgk8x1i3FdL942vzaIj6tSJcVYmQcMJEUAjFKbfDbYI730k2habkuyYsZJ/wLIvgSxynXAhbY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790092899; c=relaxed/simple; bh=QQUrE+DwZ1KWpqLSQpoA8URn9azrBBw3jC33CI+5l4Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JzrCyCWMctaoh6kLahvqTNOou8pRXUPFhodb1JALL7kkt/heQOllw5TQc6bMZ9KzVcDjxG1E9/tMHPAXoFFQaLmiBsuQiLHWFpgVwSSIHAH4bnnZeqSdoUsoch80QJYoF7vbB4CnwVScxPxZluKs7dWKtGSouy4jUDWNjB/sET8= 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=KDsmwuBi; arc=none smtp.client-ip=74.125.225.105 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="KDsmwuBi" Received: by mail-wr2-f41.google.com with SMTP id ffacd0b85a97d-4834977ae75so72191f8f.3 for ; Tue, 22 Sep 2026 09:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1790092894; x=1790697694; 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=3jbM+/xCOFHz2ekpLk2drdaMa28onD9DLLAyaB1dHZ0=; b=KDsmwuBiybtrkSHYDHa7uTKsM3YTxOFLkzqLaGfWrjn42VlGrowqP2iv9Efe2TvG6P iGu5foLddZmfPftl79zvXx11rw5y+7HvR/hHjmklLWaRAk9W/Nson7hFaJISYtj99S1X vezeh+3DoH4btwo3I+RvowLcEA+BaW4bmifyhNGJqbQCnk6HlJekuHGoTzLrM1qY7TSb sx7cHfdIUtyXvHhKerkAl++udwA15HYeXXLm7OcZximJgaIyWtjpB+zfAR++t+DQNQa9 5l5zVf+9oTyUbB5eLYlSesw6Gr9ZAfKpdx+F5ov4L3emdklA/1spTb0bjD2Q/hdS7tHf gyyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790092894; x=1790697694; 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=3jbM+/xCOFHz2ekpLk2drdaMa28onD9DLLAyaB1dHZ0=; b=AhilQzrUyLuZ7NY+tvUyHcFuyK6d+v8KKbIUS6C+8IB93wW03Y9nCGkglDrJ1acCcQ 8UMWXH3ggvDiNCTPkwLPZMT2y3t+u6zXzIv8tor58zdqXyTnRRvN9HNCHYM5JfJvg+QA 8QH1dpNNi9Dw8owstszrKtSC45TvBYGABVANq6AAvDwMPvgmJAFwrjZnZRfpbH+3Uthl xsDU0FxztWKRFIoUs+Pgmu3DlCVuDiNYkFoBIqV9zJy0T70HYU9iKLckt3xetn+ZEcZz /gqkOkuI5EgB3zJsGYvjniLbdSlEJpfvIwFqfkXBfQ2t5ZfkW56VSxmspKu7SfHNmAvl cj3Q== X-Forwarded-Encrypted: i=1; AKwUvBwsK8/T9BFB+AnYcu/5WMahkfImCqKImH5dXv4gQqcxi4x/bPCtBbySBDUDAp7JqVRu+opq0kEo1Q3DYks=@vger.kernel.org X-Gm-Message-State: AFuF++k/O4UdO367VvTyoKm4UWSr7m7EcYD8Tj6lWOi9g9Y5Zgv46WhQ p4Y2uDSW+J+Tf8RZcLK9E2LM+Nw49SQMgxxFVGAb0gQsaPchTKoE7b+S/kxKyeDYu5A= X-Gm-Gg: AYBFou16QPAcjq4WLDyL9iJkJbEFVTZBxz2JNGvOcYKNyv4Q9LuvW2yekqjqDr2iNdU 5AsAFRO+1JCqEV7OYGCqEnFX1LhI4/Tn43GwOClafhmBMjOt6J9BwWmDhTf0QtHP2GfhxSjSk8m oKImo1yGAG7QnBAycnmC8/g2V8DSt4gsWtuWYypXXseDCMHbp74qnr//dnWPFDjA5l8yC20Hs5l dbnByOTsA0272iraDbMiq4pfzBzEFeo3/9uvrItJICkiH8BQ8vxeRFIkizeapyoNOwgCtEFShMO 9/Jw8lot+vuF/pMYiAdsEuEs4bTRflQ4HjG/KJEeVEySTKh71/lI9V5bSezau6GR1g5zlSFboQH u5cLnauJJIdFnJveko/cjRLGC580O+RGIzkLdd2M73pXIGUYqJAk0akRZyQpQDVuypdcmgaH2v1 Hpq/bHwUiRI7sH6xUIthzroKn1Zamu6fXsDRAplD2IfxF50NGYFvtCm8vL7cAlUAnLbg== X-Received: by 2002:a5d:64e8:0:b0:487:40a:5ba8 with SMTP id ffacd0b85a97d-4886704c06dmr106703f8f.15.1790092893762; Tue, 22 Sep 2026 09:01:33 -0700 (PDT) Received: from [127.0.1.1] ([151.42.87.32]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48862786dc2sm6118020f8f.25.2026.09.22.09.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2026 09:01:33 -0700 (PDT) From: Valerio Setti Date: Tue, 22 Sep 2026 18:00:47 +0200 Subject: [PATCH v3 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: <20260922-audin-v3-2-a760312c076c@baylibre.com> References: <20260922-audin-v3-0-a760312c076c@baylibre.com> In-Reply-To: <20260922-audin-v3-0-a760312c076c@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=2113; i=vsetti@baylibre.com; h=from:subject:message-id; bh=QQUrE+DwZ1KWpqLSQpoA8URn9azrBBw3jC33CI+5l4Q=; b=owGbwMvMwCV2z3ty7kUrRgbG02pJDFmblkXNVTA3EJ5w5MTt/YvSv399+NWkRVpNtr1IsiIit nLNRN4pHaUsDGJcDLJiiiws0+/9LihVe2iccLIAZg4rE8gQBi5OAZhIUCzDf/+Ebz4WizZvNz/g d3y1Orf2Uy8bxc47Lg4GVSLnmz9oGDAyXJrMeTWn/N2ZoKyQWY+/RTXLn40+avp9zo2YTT7bTta 9YgMA 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. 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