]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: mediatek: mt8188-mt6359: Remove hardcoded dmic codec
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Tue, 3 Dec 2024 19:20:58 +0000 (16:20 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:18 +0000 (20:03 +0100)
[ Upstream commit ec16a3cdf37e507013062f9c4a2067eacdd12b62 ]

Remove hardcoded dmic codec from the UL_SRC dai link to avoid requiring
a dmic codec to be present for the driver to probe, as not every
MT8188-based platform might need a dmic codec. The codec can be assigned
to the dai link through the dai-link property in Devicetree on the
platforms where it is needed.

No Devicetree currently relies on it so it is safe to remove without
worrying about backward compatibility.

Fixes: 9f08dcbddeb3 ("ASoC: mediatek: mt8188-mt6359: support new board with nau88255")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20241203-mt8188-6359-unhardcode-dmic-v1-1-346e3e5cbe6d@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/mediatek/mt8188/mt8188-mt6359.c

index 4eed90d13a53262f0df99384494c6992b0341471..62429e8e57b55913d12f8cde512eda2e8b7ac08a 100644 (file)
@@ -188,9 +188,7 @@ SND_SOC_DAILINK_DEFS(pcm1,
 SND_SOC_DAILINK_DEFS(ul_src,
                     DAILINK_COMP_ARRAY(COMP_CPU("UL_SRC")),
                     DAILINK_COMP_ARRAY(COMP_CODEC("mt6359-sound",
-                                                  "mt6359-snd-codec-aif1"),
-                                       COMP_CODEC("dmic-codec",
-                                                  "dmic-hifi")),
+                                                  "mt6359-snd-codec-aif1")),
                     DAILINK_COMP_ARRAY(COMP_EMPTY()));
 
 SND_SOC_DAILINK_DEFS(AFE_SOF_DL2,