]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4eb84c9c67e1330ac17567e11d7c70abb06c840
tree11a12525ffe00a28e9f0060810b25a544c386b13
parentb1d0c05fada4c0f65ca6b84e7cb663d891fd2c6e
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