[PATCH v2 0/4] ASoC: mediatek: Handle constraint return value in FE startup

From: phucduc . bui

Date: Wed Oct 07 2026 - 08:15:37 EST


From: bui duc phuc <phucduc.bui@xxxxxxxxx>

Hi all,

Some FE startup callbacks may return a positive value from constraint
helpers, but ASoC expects 0 on success. This can cause .shutdown() to be
skipped during rollback.

Return 0 explicitly on success.

Compile-tested only.

Changes in v2:
- Rename the patch subject.
- Simplify the code change as suggested by Cezary.

Best regards,
Phuc

bui duc phuc (4):
ASoC: mediatek: common: Handle constraint return value in FE startup
ASoC: mediatek: mt8188: Handle constraint return value in FE startup
ASoC: mediatek: mt8189: Handle constraint return value in FE startup
ASoC: mediatek: mt8365: Handle constraint return value in FE startup

sound/soc/mediatek/common/mtk-afe-fe-dai.c | 8 +++++---
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 3 +++
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c | 8 +++++---
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c | 7 +++++--
4 files changed, 18 insertions(+), 8 deletions(-)

--
2.43.0