Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SDCA: Add RJ support to class driver

Add the retaskable jack Function to the list of Functions supported by
the class driver, it shouldn't require anything that isn't already
supported.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260327162732.877257-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Charles Keepax and committed by
Mark Brown
9557ec3f f9e437cd

+11 -1
+11 -1
sound/soc/sdca/sdca_class_function.c
··· 368 368 return dev_err_probe(dev, PTR_ERR(drv->regmap), 369 369 "failed to create regmap"); 370 370 371 - if (desc->type == SDCA_FUNCTION_TYPE_UAJ) 371 + switch (desc->type) { 372 + case SDCA_FUNCTION_TYPE_UAJ: 373 + case SDCA_FUNCTION_TYPE_RJ: 372 374 cmp_drv->set_jack = class_function_set_jack; 375 + break; 376 + default: 377 + break; 378 + } 373 379 374 380 ret = sdca_asoc_populate_component(dev, drv->function, cmp_drv, 375 381 &dais, &num_dais, ··· 544 538 { 545 539 .name = "snd_soc_sdca." SDCA_FUNCTION_TYPE_HID_NAME, 546 540 .driver_data = SDCA_FUNCTION_TYPE_HID, 541 + }, 542 + { 543 + .name = "snd_soc_sdca." SDCA_FUNCTION_TYPE_RJ_NAME, 544 + .driver_data = SDCA_FUNCTION_TYPE_RJ, 547 545 }, 548 546 {}, 549 547 };