]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: atmel: mchp-pdmc: Skip ALSA restoration if substream runtime is uninitialized
authorAndrei Simion <andrei.simion@microchip.com>
Tue, 24 Sep 2024 08:12:38 +0000 (11:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:00:10 +0000 (12:00 +0200)
commitea65be140e2708a49a944de45431c8bf37d7f065
treedff02a3a3e92e7d7586d98e6011de619befe49bf
parent8a585d553c11965332d7a2d74e79ef92a42bfc87
ASoC: atmel: mchp-pdmc: Skip ALSA restoration if substream runtime is uninitialized

[ Upstream commit 09cfc6a532d249a51d3af5022d37ebbe9c3d31f6 ]

Update the driver to prevent alsa-restore.service from failing when
reading data from /var/lib/alsa/asound.state at boot. Ensure that the
restoration of ALSA mixer configurations is skipped if substream->runtime
is NULL.

Fixes: 50291652af52 ("ASoC: atmel: mchp-pdmc: add PDMC driver")
Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
Link: https://patch.msgid.link/20240924081237.50046-1-andrei.simion@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/atmel/mchp-pdmc.c