linux/sound/soc/stm
Avi Weiss 0936bbd35a
ASoC: stm32: spdifrx: fix synchronization state check
The interrupt handler uses a logical AND to check whether SPDIFRX
was in the SYNC state before clearing errors. Since both SYNC (1)
and ENABLE (3) are nonzero, this also treats ENABLE as SYNC (and
any other non-zero value that might be added).

The logical && basically just converts this to check for != 0.

So errors occurring while SPDIFRX is enabled cause the driver
to retry synch instead of disconnecting the PCM stream.

Fix is to change the logical && to equality (==) and only retry
when exactly in sync state.

Fixes: 0c93c29132 ("ASoC: stm32: spdifrx: retry synchronization in sync state")
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Reviewed-by: Olivier Moysan <olivier.moysan@foss.st.com>
Link: https://patch.msgid.link/20261011035459.2289403-1-thnkslprpt@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
History 2026-10-12 19:22:55 +01:00
..
Kconfig ASoC: stm: Standardize ASoC menu 2025-06-24 01:01:17 +01:00
Makefile ASoC: stm: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:34 +09:00
stm32_adfsdm.c Char/Misc/IIO/etc driver update for 7.3-rc1 2026-08-25 09:38:50 -07:00
stm32_i2s.c ASoC: stm: stm32_i2s: Drop redundant error messages 2026-07-30 00:19:49 +01:00
stm32_sai.c ASoC: stm32: sai: fix OF node leak on probe 2025-11-25 16:38:22 +00:00
stm32_sai.h ASoC: stm32: sai: add stm32mp25 support 2024-11-08 13:32:45 +00:00
stm32_sai_sub.c ASoC: stm: stm32_sai_sub: Drop redundant error messages 2026-07-30 00:19:50 +01:00
stm32_spdifrx.c ASoC: stm32: spdifrx: fix synchronization state check 2026-10-12 19:22:55 +01:00