OSDN Git Service

ASoC: sun50i-codec-analog: Group and sort mixer routes
authorSamuel Holland <samuel@sholland.org>
Sun, 26 Jul 2020 02:53:29 +0000 (21:53 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 17 Aug 2020 15:19:13 +0000 (16:19 +0100)
commitcababecb33c05b8229558df6248d5869a38ceec3
treea00cda74297399e291c0a2458734aa64e59b034b
parent9b7612bb75e50acc55d2143cadb8057a6721d9c7
ASoC: sun50i-codec-analog: Group and sort mixer routes

Sort the controls in the same order as the bits in the register. Then
group the routes by sink, and sort them in the same order as the
controls. This makes it much easier to verify that all mixer inputs are
accounted for.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20200726025334.59931-4-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun50i-codec-analog.c