]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc76c5b9a9962151a2a31d12c3e0465ba7b24f506
tree39922917e18681f5d09e3bddc430ca387b85a813
parentdbb89b0e0d2038d78502831040a15729b2bcaf65
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