OSDN Git Service

ASoC: max98090: Fix restore of DAPM Muxes
authorJon Hunter <jonathanh@nvidia.com>
Wed, 1 May 2019 14:29:38 +0000 (15:29 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 6 May 2019 14:44:03 +0000 (23:44 +0900)
commitecb2795c08bc825ebd604997e5be440b060c5b18
tree11a12525ffe00a28e9f0060810b25a544c386b13
parenta46eb523220e242affb9a6bc9bb8efc05f4f7459
ASoC: max98090: Fix restore of DAPM Muxes

The max98090 driver defines 3 DAPM muxes; one for the right line output
(LINMOD Mux), one for the left headphone mixer source (MIXHPLSEL Mux)
and one for the right headphone mixer source (MIXHPRSEL Mux). The same
bit is used for the mux as well as the DAPM enable, and although the mux
can be correctly configured, after playback has completed, the mux will
be reset during the disable phase. This is preventing the state of these
muxes from being saved and restored correctly on system reboot. Fix this
by marking these muxes as SND_SOC_NOPM.

Note this has been verified this on the Tegra124 Nyan Big which features
the MAX98090 codec.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/max98090.c