[PATCH v3 0/2] ASoC: Intel: avs: DSP recovery and resume fixes

Cezary Rojewski cezary.rojewski at intel.com
Wed Nov 16 12:55:48 CET 2022


Two fixes that are result of the recent discussions [1][2].

First adds missing locking around snd_pcm_stop() while the second fix
sets substream state to DISCONNECTED if any suspend/resume related
operation fails so that userspace has means to be aware that something
went wrong during said operation.

Changes in v3:
- added a comment why non-_irq() locking is used around snd_pcm_stop()

Changes in v2:
- __snd_pcm_set_state() replaced direct assignments of PCM state


[1]: https://lore.kernel.org/alsa-devel/73e6425f-8e51-e26f-ad83-ccc5df517a43@intel.com/
[2]: https://lore.kernel.org/alsa-devel/20221104131244.3920179-1-cezary.rojewski@intel.com/

Cezary Rojewski (2):
  ASoC: Intel: avs: Lock substream before snd_pcm_stop()
  ASoC: Intel: avs: Disconnect substream if suspend or resume fails

 sound/soc/intel/avs/ipc.c |  3 +++
 sound/soc/intel/avs/pcm.c | 10 ++++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

-- 
2.25.1



More information about the Alsa-devel mailing list