]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8c059b257ff75344afd36c536bc5a439a4650b1
treed42264cd414bac01489379ea60c440985b388ac3
parentec41e71062daaf3d55ccf434e233c97269a260dd
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