]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ASoC: wm8962: Fix suspend while playing music
authorAdam Ford <aford173@gmail.com>
Thu, 26 May 2022 18:21:28 +0000 (13:21 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 26 Aug 2022 08:53:21 +0000 (10:53 +0200)
commitcd1045365f739db8d88f3d98e704dec4fe5c37a6
treef193e5866df0240d8685b2f24d32203386938941
parent6e7bb056ed69e0ac29178a8ce8475d9da656a46c
ASoC: wm8962: Fix suspend while playing music

BugLink: https://bugs.launchpad.net/bugs/1983149
[ Upstream commit d1f5272c0f7d2e53c6f2480f46725442776f5f78 ]

If the audio CODEC is playing sound when the system is suspended,
it can be left in a state which throws the following error:

wm8962 3-001a: ASoC: error at soc_component_read_no_lock on wm8962.3-001a: -16

Once this error has occurred, the audio will not work again until rebooted.

Fix this by configuring SET_SYSTEM_SLEEP_PM_OPS.

Signed-off-by: Adam Ford <aford173@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220526182129.538472-1-aford173@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
sound/soc/codecs/wm8962.c