ASoC: sun50i-codec-analog: Enable DAPM for headphone switch
authorSamuel Holland <samuel@sholland.org>
Sun, 26 Jul 2020 02:53:31 +0000 (21:53 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 17 Aug 2020 15:19:15 +0000 (16:19 +0100)
commit4b9f39e14cf606def16897d85da492fc54b94a43
tree39922917e18681f5d09e3bddc430ca387b85a813
parent241a578a9ebf866351e12029fc77f5a48b742042
ASoC: sun50i-codec-analog: Enable DAPM for headphone switch

By including the headphone mute switch to the DAPM graph, both the
headphone amplifier and the Mixer/DAC inputs can be powered off when
the headphones are muted.

The mute switch is between the source selection and the amplifier,
as per 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-6-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun50i-codec-analog.c