All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: wm8962: Fix suspend while playing music
@ 2022-05-26 18:21 ` Adam Ford
  0 siblings, 0 replies; 6+ messages in thread
From: Adam Ford @ 2022-05-26 18:21 UTC (permalink / raw)
  To: alsa-devel
  Cc: aford, Adam Ford, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Charles Keepax, Stephen Kitt, Geert Uytterhoeven,
	Minghao Chi, open list:WOLFSON MICROELECTRONICS DRIVERS,
	open list

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>

diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 34cd5a2a997c..5cca89364280 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -3868,6 +3868,7 @@ static int wm8962_runtime_suspend(struct device *dev)
 #endif
 
 static const struct dev_pm_ops wm8962_pm = {
+	SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
 	SET_RUNTIME_PM_OPS(wm8962_runtime_suspend, wm8962_runtime_resume, NULL)
 };
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] ASoC: wm8962: Fix suspend while playing music
@ 2022-05-26 18:21 ` Adam Ford
  0 siblings, 0 replies; 6+ messages in thread
From: Adam Ford @ 2022-05-26 18:21 UTC (permalink / raw)
  To: alsa-devel
  Cc: aford, Geert Uytterhoeven, Liam Girdwood,
	open list:WOLFSON MICROELECTRONICS DRIVERS, Takashi Iwai,
	Minghao Chi, Mark Brown, Stephen Kitt, Charles Keepax, Adam Ford,
	open list

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>

diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 34cd5a2a997c..5cca89364280 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -3868,6 +3868,7 @@ static int wm8962_runtime_suspend(struct device *dev)
 #endif
 
 static const struct dev_pm_ops wm8962_pm = {
+	SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
 	SET_RUNTIME_PM_OPS(wm8962_runtime_suspend, wm8962_runtime_resume, NULL)
 };
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] ASoC: wm8962: Fix suspend while playing music
  2022-05-26 18:21 ` Adam Ford
@ 2022-05-27  7:56   ` Charles Keepax
  -1 siblings, 0 replies; 6+ messages in thread
From: Charles Keepax @ 2022-05-27  7:56 UTC (permalink / raw)
  To: Adam Ford
  Cc: alsa-devel, aford, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Stephen Kitt, Geert Uytterhoeven, Minghao Chi,
	open list:WOLFSON MICROELECTRONICS DRIVERS, open list

On Thu, May 26, 2022 at 01:21:28PM -0500, Adam Ford wrote:
> 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>

Thanks,
Charles

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ASoC: wm8962: Fix suspend while playing music
@ 2022-05-27  7:56   ` Charles Keepax
  0 siblings, 0 replies; 6+ messages in thread
From: Charles Keepax @ 2022-05-27  7:56 UTC (permalink / raw)
  To: Adam Ford
  Cc: alsa-devel, aford, Geert Uytterhoeven, Liam Girdwood,
	open list:WOLFSON MICROELECTRONICS DRIVERS, Takashi Iwai,
	Minghao Chi, Mark Brown, Stephen Kitt, open list

On Thu, May 26, 2022 at 01:21:28PM -0500, Adam Ford wrote:
> 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>

Thanks,
Charles

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ASoC: wm8962: Fix suspend while playing music
  2022-05-26 18:21 ` Adam Ford
@ 2022-06-07 10:46   ` Mark Brown
  -1 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2022-06-07 10:46 UTC (permalink / raw)
  To: aford173, alsa-devel
  Cc: aford, open list, ckeepax, Liam Girdwood, chi.minghao,
	Takashi Iwai, open list:WOLFSON MICROELECTRONICS DRIVERS, steve,
	geert+renesas, Jaroslav Kysela

On Thu, 26 May 2022 13:21:28 -0500, Adam Ford wrote:
> 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.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: wm8962: Fix suspend while playing music
      commit: d1f5272c0f7d2e53c6f2480f46725442776f5f78

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ASoC: wm8962: Fix suspend while playing music
@ 2022-06-07 10:46   ` Mark Brown
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2022-06-07 10:46 UTC (permalink / raw)
  To: aford173, alsa-devel
  Cc: ckeepax, geert+renesas, open list, Liam Girdwood, aford,
	Takashi Iwai, chi.minghao,
	open list:WOLFSON MICROELECTRONICS DRIVERS, steve

On Thu, 26 May 2022 13:21:28 -0500, Adam Ford wrote:
> 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.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: wm8962: Fix suspend while playing music
      commit: d1f5272c0f7d2e53c6f2480f46725442776f5f78

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-07 10:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26 18:21 [PATCH] ASoC: wm8962: Fix suspend while playing music Adam Ford
2022-05-26 18:21 ` Adam Ford
2022-05-27  7:56 ` Charles Keepax
2022-05-27  7:56   ` Charles Keepax
2022-06-07 10:46 ` Mark Brown
2022-06-07 10:46   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.