]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: sgtl5000: Fix suspend/resume
authorFabio Estevam <fabio.estevam@nxp.com>
Fri, 16 Feb 2018 13:58:54 +0000 (11:58 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 08:09:46 +0000 (09:09 +0100)
commit9afc3ec1f2e711d1ed7f7f3aa49c49de55ffb1b7
tree9117c2a7604e78aa187531e69da0160194cdc0b7
parent6b57662274bdaae4dc68998d36c3530f966f3b0b
ASoC: sgtl5000: Fix suspend/resume

commit a8992973edbb2555e956b90f6fe97c4bc14d761d upstream.

Commit 8419caa72702 ("ASoC: sgtl5000: Do not disable regulators in
SND_SOC_BIAS_OFF") causes the sgtl5000 to fail after a suspend/resume
sequence:

Playing WAVE '/media/a2002011001-e02.wav' : Signed 16 bit Little
Endian, Rate 44100 Hz, Stereo
aplay: pcm_write:2051: write error: Input/output error

The problem is caused by the fact that the aforementioned commit
dropped the cache handling, so re-introduce the register map
resync to fix the problem.

Suggested-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/sgtl5000.c