Skip to content

ASoC: Intel: avs: Fix for recovery procedure and new size-checks

Cezary Rojewski linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ASoC: Intel: avs: Unprepare a stream when recovery occurssound/soc/intel/avs/pcm.c+2 -02 replies
2/3ASoC: Intel: avs: Verify sizes of configs coming from topologysound/soc/intel/avs/topology.c+6 -00 replies
3/3ASoC: Intel: avs: Prevent module info underflowsound/soc/intel/avs/utils.c+4 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] ASoC: Intel: avs: Fix for recovery procedure and new size-checks

The first change addresses XRUN recovery for HDA-Link i.e.: BackEnd side of a HDAudio stream.

It is the BE side equivalent of job done previously for FE side only with commit cfca1637bc2b ("ASoC: Intel: avs: Unprepare a stream when XRUN occurs") and its follow up titled: ("ASoC: Intel: avs: Reset the stream unless it is already prepared") [1].

The next fix problems found by static analyzers. Additional size checks for topology and a fix for module underflow should a DSP-module be unloaded on the DSP side in unexpected fashion. Theoretically that's not possible without a corrupted firmware, but the if-statement is already there, just a dev_warn() though.

[1]: https://lore.kernel.org/linux-sound/[email protected]/

Cezary Rojewski (3):
ASoC: Intel: avs: Unprepare a stream when recovery occurs
ASoC: Intel: avs: Verify sizes of configs coming from topology
ASoC: Intel: avs: Prevent module info underflow

 sound/soc/intel/avs/pcm.c      | 2 ++
 sound/soc/intel/avs/topology.c | 6 ++++++
 sound/soc/intel/avs/utils.c    | 6 ++++--
 3 files changed, 12 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1