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)
commit95d34762f201c0f7cf0ed920815f349cfe336fe1
tree589422de8a70c0d8afa4753e18c8d1fc31981424
parentdd8286a34963c47964ab3c73d56656c9719a36b4
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