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

Cezary Rojewski posted 3 patches 1 week ago
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(-)
[PATCH 0/3] ASoC: Intel: avs: Fix for recovery procedure and new size-checks
Posted by Cezary Rojewski 1 week ago
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/20261010103753.16969-1-stiraspo@gmail.com/


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(-)

-- 
2.34.1
Re: [PATCH 0/3] ASoC: Intel: avs: Fix for recovery procedure and new size-checks
Posted by Mark Brown 1 week ago
On Thu, 15 Oct 2026 21:02:37 +0200, Cezary Rojewski wrote:
> 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].
> 
> [...]

Applied to

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

Thanks!

[1/3] ASoC: Intel: avs: Unprepare a stream when recovery occurs
      https://git.kernel.org/broonie/sound/c/85bc213f96ac
[2/3] ASoC: Intel: avs: Verify sizes of configs coming from topology
      https://git.kernel.org/broonie/sound/c/6e6aedb1f876
[3/3] ASoC: Intel: avs: Prevent module info underflow
      https://git.kernel.org/broonie/sound/c/05c2975b4267

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