From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (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 BCE783E315E for ; Thu, 1 Oct 2026 16:06:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790870802; cv=none; b=Z7vUfs0tQSDMNwIIfMxCRjpTbEjm9IXu5bZuXaTSJoUE18Y5xyxNwuz658wNipA+6PJaK1t70DCvrrkSDI3dz9TCJ3CvjvLDe5Tj4Yg8hKv1d8BtdQvukE+4B26MyBAmXYuXUrfgzwf/PbChq18ofSy49fBkehnr6aUHQ52gXDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790870802; c=relaxed/simple; bh=QQUrE+DwZ1KWpqLSQpoA8URn9azrBBw3jC33CI+5l4Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CCcQa6ddhn7S6DMnZMk297ODOc8yQJgp3TkJKV+XjWWvX8Bsgo0xBORAlWXfn1Jl3S7x38qTVB8BLk/2KjR0u6luA8GUIL//95YOW01rjxRd+4DQ6aH5pRBVfOs6BDyr08zO9Ab/7ln7AgPU4fhC0fxJ9p7W8rms+YfPvAHa2q0= 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=eGnRjpbu; arc=none smtp.client-ip=74.125.225.140 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="eGnRjpbu" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49e69b9e16aso69143795e9.1 for ; Thu, 01 Oct 2026 09:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1790870799; x=1791475599; 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=eGnRjpbuPPuJzW9JDdZWDid7S37OhgI3Oq3irAIl5hgl6oL3K/OrUJYDNBwdRPmblO m4/sL4/tvcWfkN33Q2XMRyHHOq5tysx3DM02tiE9knFh/3M+truSobV8EDdpbOLZnAL5 3pDFQqH20uz2RxqKf9PYFqS3m3IDQ7cp+ezjckVrM+u+k2PLm3pFWQtJ5A9WsqxfqDw4 AC/Z1fo3ymfn9B6VKiA0pA2vzuMvYSDnd2nBE3q1tDl8Ev7ohkSZQYsXVTgWK/8/M72g 4VS4aVkfJ4P8mxnnHQFV2WBlhVLyJSsr9xFUnQgFo3Xcth9vXIQ+yP9kBpWnFbZPFHVI eUrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790870799; x=1791475599; 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=f5V4rBKcb8nzNzl4FhOvApjSRFTlY/QPprARtwepxuXiN44xuHMjYC+rO4jlYCvFs2 x0RLMy2UGOWC9YpWUw+JGHPgFxWuXow3XCC4+2RoaK3QwzrZII/iov3s/GBKxKXXbPv0 Ynn5Ipb+EPnpZxAFXXxLkhvAJMIxFvgKNZ7wPrpMAvgXgXQ1b35zyCOU2JP+0IXqB1kF 7afWfccWBRLi2pyVm+wNYbbRt5UInUQIOL4LNcfsNsEsC1nl5Utr5/PLXaT3/s9eMBmz hDcNtgpeICJUt+0kWC+BQbxStowrhc1afJf+DfO/mypPLRJhGdT5FBIG4MEUvDEPuSIs Gs6A== X-Forwarded-Encrypted: i=1; AKwUvBwXkEjjYm6Xpk+qehsbK98CSmnGO0iFf9bZnP7eG9kS9j1bNp6BTFWucHc1FE8Zb/bogg2GkffQMI074Ak=@vger.kernel.org X-Gm-Message-State: AFuF++k28n2rVdgzOXMcYPi0zKqQmeIh2aE3r0f9jpD6VNGL0/OODyax Tp8F4dTqoqQIItdcLWxJ7SxVnJFZkWdTC8DF12KFLF9oGi7QNGh7YpdsdQgYj19Ai10= X-Gm-Gg: AYBFou3pp3x2pa/V8BjwoDHaMU4I7ytaj2I43vUORGGm5ZB7RGVaVayA4U3ItkWqIwx Xe/3v38oJEQgZqS31Y+2BG9t41eO8nDVHNHS5Zy2w3nc3+Ju36LXKuWtoXtumbXZqbsyU67jm5j r2GDsErvRpd5YDEoUM2d3IEWoXetd8FMD503KV+FNdNDIuZR5QZgoS26etN/TNqtjmTemnARpcK 4q3jVYMvhFnoAhYesn40BK5NIpuV9mJI9tu7q+xuDFZEAga5GnD5sh9fccMZtcuXyNlmhsHRBcH 0Swy0+fRCqEMWmRLESP8pJX3QtD7XodSRUsYxz0bq0xBUoMYr0hhU1pc+Z0TgN8n9Kn4mGx2EM/ H9nnw+TdNnQouZCugqtyiFZmhR0uvSscAXVNce5zx+/s3asrmKrb6wsAKv5b5ATOJaWODqE+M0D xx9AoXI/fyHZExHUnSv4ZMrFIS5p1KILgOErVEc+lKyaOBrfu07DHaBQ5xwmnLZlVv X-Received: by 2002:a05:600c:19cb:b0:49e:69ff:c6b1 with SMTP id 5b1f17b1804b1-4a0276a312fmr1303425e9.31.1790870799033; Thu, 01 Oct 2026 09:06:39 -0700 (PDT) Received: from [127.0.1.1] ([151.42.82.6]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a01f93ad0bsm52969705e9.4.2026.10.01.09.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2026 09:06:38 -0700 (PDT) From: Valerio Setti Date: Thu, 01 Oct 2026 18:06:27 +0200 Subject: [PATCH v4 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: <20261001-audin-v4-2-2476646118b5@baylibre.com> References: <20261001-audin-v4-0-2476646118b5@baylibre.com> In-Reply-To: <20261001-audin-v4-0-2476646118b5@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=owGbwMvMwCV2z3ty7kUrRgbG02pJDFn7WrkUTqy4z3Vl0Q8e+9PveYtTTF9lnd4flmZ3N1Mg+ KPFrNaVHaUsDGJcDLJiiiws0+/9LihVe2iccLIAZg4rE8gQBi5OAZjITVGGfzpNLgy3Jrp8Xbu4 SGvmtN92qybPreZpDftuLXrS2fr5L3VGhm8e+WIVchvPN+/es+Pe0euZGhfly/fbFky+VBp/0qk jkxkA 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