]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun50i-codec-analog: Enable DAPM for line out switch
authorSamuel Holland <samuel@sholland.org>
Sun, 26 Jul 2020 02:53:33 +0000 (21:53 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 17 Aug 2020 15:19:17 +0000 (16:19 +0100)
commitd8be0b17ca0af814795b65c01d357144e1a73fa4
tree589422de8a70c0d8afa4753e18c8d1fc31981424
parenta3db81b1d26d8de3f9eef7821874657d2ee59a40
ASoC: sun50i-codec-analog: Enable DAPM for line out switch

By including the line out mute switch in the DAPM graph, the
Mixer/DAC inputs can be powered off when the line output is muted.

The line outputs have an unusual routing scheme. The left side mute
switch is between the source selection and the amplifier, as usual.
The right side source selection comes *after* its amplifier (and
after the left side amplifier), and its mute switch controls
whichever source is currently selected. This matches the diagram in
the SoC manual.

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