Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: es8328: Remove duplicate DAPM routes

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>

authored by

Hsieh Hung-En and committed by
Mark Brown
52ddc010 25abdc15

-10
-10
sound/soc/codecs/es8328.c
··· 406 406 407 407 { "Mic Bias", NULL, "Mic Bias Gen" }, 408 408 409 - { "Left Line Mux", "Line 1", "LINPUT1" }, 410 - { "Left Line Mux", "Line 2", "LINPUT2" }, 411 - { "Left Line Mux", "PGA", "Left PGA Mux" }, 412 - { "Left Line Mux", "Differential", "Differential Mux" }, 413 - 414 - { "Right Line Mux", "Line 1", "RINPUT1" }, 415 - { "Right Line Mux", "Line 2", "RINPUT2" }, 416 - { "Right Line Mux", "PGA", "Right PGA Mux" }, 417 - { "Right Line Mux", "Differential", "Differential Mux" }, 418 - 419 409 { "Left Mixer", NULL, "Left DAC" }, 420 410 { "Left Mixer", "Left Bypass Switch", "Left Line Mux" }, 421 411 { "Left Mixer", "Right Playback Switch", "Right DAC" },