]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: atmel: mchp-pdmc: Retain Non-Runtime Controls
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Fri, 13 Sep 2024 12:06:22 +0000 (15:06 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 13 Sep 2024 14:10:09 +0000 (15:10 +0100)
commit2ed1a4a5c0058dfd78f5037576d668a37d0ec609
tree70088caf07d8cd600a89ca77334ae530a61f1d64
parent49b2597a9e53a2491cbec29451766af898eedb44
ASoC: atmel: mchp-pdmc: Retain Non-Runtime Controls

Avoid removing these controls, as doing so can cause issues if the stream
is initiated from another control. Ensure these controls remain intact when
the stream is started or finished. Instead of removing them, return an
-EBUSY error code to indicate that the controller is busy, especially when
the audio filter and the SINC filter are in use.

[andrei.simion@microchip.com: Reword the commit title and the commit
message. Replace spinlock and busy variable with atomic_t busy_stream.]

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
Link: https://patch.msgid.link/20240913120621.79088-1-andrei.simion@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/mchp-pdmc.c