[PATCH] ASoC: SDCA: Add missing sdca_fdl_free_state definition

From: Luis Henriques

Date: Mon Aug 10 2026 - 05:57:57 EST


This patch fixes a build failure introduced by commit 0880082c27b6 ("ASoC:
SDCA: Remove devm from primary IRQ cleanup"). It simply adds function
sdca_fdl_free_state when SND_SOC_SDCA_FDL isn't defined.

Here's the build error:

../sound/soc/sdca/sdca_interrupts.c:471:56: error: 'sdca_fdl_free_state' undeclared (first use in this function); did you mean 'sdca_jack_free_state'?

Fixes: 0880082c27b6 ("ASoC: SDCA: Remove devm from primary IRQ cleanup")
Signed-off-by: Luis Henriques <luis@xxxxxxxxxx>
---
include/sound/sdca_fdl.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/include/sound/sdca_fdl.h b/include/sound/sdca_fdl.h
index dc33927b82bd..bc3600cdd2ec 100644
--- a/include/sound/sdca_fdl.h
+++ b/include/sound/sdca_fdl.h
@@ -83,6 +83,10 @@ static inline int sdca_fdl_alloc_state(struct sdca_interrupt *interrupt)
return 0;
}

+static inline void sdca_fdl_free_state(struct sdca_interrupt *interrupt)
+{
+}
+
static inline int sdca_fdl_process(struct sdca_interrupt *interrupt)
{
return 0;