[RFC PATCH 6/8] ASoC: SDCA: register SDCA_FUNCTION_TYPE_SIMPLE_JACK in class function driver
From: Srinivas Kandagatla
Date: Wed Jul 22 2026 - 19:47:53 EST
Add SDCA_FUNCTION_TYPE_SIMPLE_JACK to the class function driver's
auxiliary id table so a SimpleJack auxdev is bound and enumerated as
an ASoC component. Wire set_jack for this function type so the machine
driver can register an ASoC jack against it.
Assisted-by: Claude:claude-opus-4-7
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxxxxxxxx>
---
sound/soc/sdca/sdca_class_function.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sound/soc/sdca/sdca_class_function.c b/sound/soc/sdca/sdca_class_function.c
index b0fbe243d732..ed00bc1eeafa 100644
--- a/sound/soc/sdca/sdca_class_function.c
+++ b/sound/soc/sdca/sdca_class_function.c
@@ -436,6 +436,7 @@ static int class_function_probe(struct auxiliary_device *auxdev,
switch (drv->function->desc->type) {
case SDCA_FUNCTION_TYPE_UAJ:
case SDCA_FUNCTION_TYPE_RJ:
+ case SDCA_FUNCTION_TYPE_SIMPLE_JACK:
cmp_drv->set_jack = class_function_set_jack;
break;
default:
@@ -621,6 +622,10 @@ static const struct auxiliary_device_id class_function_id_table[] = {
.name = "snd_soc_sdca." SDCA_FUNCTION_TYPE_RJ_NAME,
.driver_data = SDCA_FUNCTION_TYPE_RJ,
},
+ {
+ .name = "snd_soc_sdca." SDCA_FUNCTION_TYPE_SIMPLE_NAME,
+ .driver_data = SDCA_FUNCTION_TYPE_SIMPLE_JACK,
+ },
{},
};
MODULE_DEVICE_TABLE(auxiliary, class_function_id_table);
--
2.53.0