]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: es8328: Remove duplicate DAPM routes
authorHsieh Hung-En <hungen3108@gmail.com>
Wed, 31 Dec 2025 08:45:54 +0000 (16:45 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 5 Jan 2026 13:18:58 +0000 (13:18 +0000)
The DAPM routes for "Left Line Mux" and "Right Line Mux" are defined
twice in es8328_dapm_routes[]. The redundant entries appear after
the "Mic Bias" route and duplicate the definitions found earlier in
the array.

Remove the duplicate entries to clean up the code.

Tested on Rockchip RK3588 with ES8328 codec. Verified that removing
the duplicate routes does not alter the DAPM graph or the mixer
controls. Both 'tinymix' output and DAPM widget lists remain
identical to the baseline.

Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
Link: https://patch.msgid.link/20251231084554.265916-1-hungen3108@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8328.c

index 1e11175cfbbbf2365daacac4787418a2362e6927..bd74e896d60259d724fe5c2b3fd9d49b8baa4d47 100644 (file)
@@ -406,16 +406,6 @@ static const struct snd_soc_dapm_route es8328_dapm_routes[] = {
 
        { "Mic Bias", NULL, "Mic Bias Gen" },
 
-       { "Left Line Mux", "Line 1", "LINPUT1" },
-       { "Left Line Mux", "Line 2", "LINPUT2" },
-       { "Left Line Mux", "PGA", "Left PGA Mux" },
-       { "Left Line Mux", "Differential", "Differential Mux" },
-
-       { "Right Line Mux", "Line 1", "RINPUT1" },
-       { "Right Line Mux", "Line 2", "RINPUT2" },
-       { "Right Line Mux", "PGA", "Right PGA Mux" },
-       { "Right Line Mux", "Differential", "Differential Mux" },
-
        { "Left Mixer", NULL, "Left DAC" },
        { "Left Mixer", "Left Bypass Switch", "Left Line Mux" },
        { "Left Mixer", "Right Playback Switch", "Right DAC" },