ASoC: sun8i-codec: Add missing mixer routes
authorSamuel Holland <samuel@sholland.org>
Sun, 26 Jul 2020 01:25:53 +0000 (20:25 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 17 Aug 2020 14:21:56 +0000 (15:21 +0100)
commite47d2dcd88fc3e6837f8aa0060ce820ec9001e26
treed42264cd414bac01489379ea60c440985b388ac3
parent90cac932976e93b17203b4216ba83bdcd68e0ed0
ASoC: sun8i-codec: Add missing mixer routes

The sun8i-codec driver provides ALSA controls for enabling/disabling
each of the inputs to the AIF1 Slot 0 and DAC mixers. For two of these
inputs (ADC->DAC and AIF1 DA0->AIF1 AD0), the audio source is
implemented, so the mixer inputs can be used.

However, because the DAPM routes are missing, these mixer inputs only
work when both the source and the mixer happen to be part of other
active audio paths. Adding the appropriate routes makes these ALSA
controls function all of the time.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20200726012557.38282-4-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c