]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMark Brown <broonie@kernel.org>
Tue, 24 Sep 2024 11:34:28 +0000 (13:34 +0200)
commit09cfc6a532d249a51d3af5022d37ebbe9c3d31f6
tree0018a9aa4b427a845a5e79b251a82e3c35a0ab1f
parent01e709aeaf913a4d0e04f9957d399cf6fc3b5455
ASoC: atmel: mchp-pdmc: Skip ALSA restoration if substream runtime is uninitialized

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>
sound/soc/atmel/mchp-pdmc.c