[PATCH 0/7] ASoC: ti: Cleanup locking code using guard() helpers
From: phucduc . bui
Date: Fri May 08 2026 - 06:40:37 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
Hi all,
This series converts mutex and spinlock handling in TI ASoC drivers
to use guard() helpers.
Most patches are straightforward conversions to guard() helpers.
Two patches include minor cleanup changes in the process:
omap-dmic: Simplified omap_dmic_dai_startup() by removing the
temporary return variable and using a direct return path on error.
omap-mcbsp: Modernized omap_mcbsp_request() by using __free(kfree)
for memory management. This ensures that memory is always freed on
error paths after the spinlock is released, without needing manual
goto labels.
No behavior change intended.
Best regards,
Phuc
bui duc phuc (7):
ASoC: ti: j721e-evm: Use guard() for mutex locks
ASoC: ti: omap-dmic: Use guard() for mutex locks
ASoC: ti: omap-hdmi: Use guard() for mutex locks
ASoC: ti: omap-mcpdm: Use guard() for mutex locks
ASoC: ti: ams-delta: Use guard() for spin locks
ASoC: ti: omap-mcbsp-st: Use guard() for spin locks
ASoC: ti: omap-mcbsp: Simplify lock and resource handling
sound/soc/ti/ams-delta.c | 26 ++++++++---------
sound/soc/ti/j721e-evm.c | 25 ++++++-----------
sound/soc/ti/omap-dmic.c | 44 ++++++++++++-----------------
sound/soc/ti/omap-hdmi.c | 18 +++++-------
sound/soc/ti/omap-mcbsp-st.c | 26 ++++++-----------
sound/soc/ti/omap-mcbsp.c | 54 ++++++++++++++++--------------------
sound/soc/ti/omap-mcpdm.c | 8 ++----
7 files changed, 81 insertions(+), 120 deletions(-)
--
2.43.0