Skip to contentSkip to conversation

ASoC: SDCA: export sdca_find_entity_by_label() helper

PATCH In review [email protected] 3 participants 3 messages Jul 29 – Jul 30

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 ASoC: SDCA: export sdca_find_entity_by_label() helper

From: Shuming Fan <[email protected]>

Export the sdca_find_entity_by_label() helper so that codec drivers can locate SDCA entities by their labels.

---
 include/sound/sdca_function.h   | 2 ++
 sound/soc/sdca/sdca_functions.c | 7 ++++---
 2 files changed, 6 insertions(+), 3 deletions(-)
include/sound/sdca_function.h +2 -0
index b1489178b0ef..fb931ae735a2 100644
@@ -1469,5 +1469,7 @@ struct sdca_control_range *sdca_selector_find_range(struct device *dev,
 struct sdca_cluster *sdca_id_find_cluster(struct device *dev,
 					  struct sdca_function_data *function,
 					  const int id);
+struct sdca_entity *sdca_find_entity_by_label(struct sdca_function_data *function,
+						     const char *entity_label);
 
 #endif
sound/soc/sdca/sdca_functions.c +4 -3
index 7a7a9f1a4938..cdf1e68d60ac 100644
@@ -1619,7 +1619,7 @@ static int find_sdca_entities(struct device *dev, struct sdw_slave *sdw,
 	return 0;
 }
 
-static struct sdca_entity *find_sdca_entity_by_label(struct sdca_function_data *function,
+struct sdca_entity *sdca_find_entity_by_label(struct sdca_function_data *function,
 						     const char *entity_label)
 {
 	struct sdca_entity *entity = NULL;
@@ -1648,6 +1648,7 @@ static struct sdca_entity *find_sdca_entity_by_label(struct sdca_function_data *
 
 	return NULL;
 }
+EXPORT_SYMBOL_NS(sdca_find_entity_by_label, "SND_SOC_SDCA");
 
 static struct sdca_entity *find_sdca_entity_by_id(struct sdca_function_data *function,
 						  const int id)
@@ -1688,7 +1689,7 @@ static int find_sdca_entity_connection_iot(struct device *dev,
 		return ret;
 	}
 
-	clock_entity = find_sdca_entity_by_label(function, clock_label);
+	clock_entity = sdca_find_entity_by_label(function, clock_label);
 	if (!clock_entity) {
 		dev_err(dev, "%s: failed to find clock with label %s\n",
 			entity->label, clock_label);
@@ -1873,7 +1874,7 @@ static int find_sdca_entity_connection(struct device *dev,
 			return ret;
 		}
 
-		connected_entity = find_sdca_entity_by_label(function, connected_label);
+		connected_entity = sdca_find_entity_by_label(function, connected_label);
 		if (!connected_entity) {
 			dev_err(dev, "%s: failed to find entity with label %s\n",
 				entity->label, connected_label);
Signature · 1 line
2.54.0
maintainer Reviewed-by on v2 1/3
#1 lore raw
Quoted 7 lines · On Wed, Jul 29, 2026 at 11:22:27AM +0800, [email protected] wrote:

From: Shuming Fan <[email protected]>

Export the sdca_find_entity_by_label() helper so that codec drivers can locate SDCA entities by their labels.

---

Be good to make sure you are CCing at least [email protected] on SDCA patches, safer that I don't miss them on the list that way.

But the patch looks good:

Thanks,
Charles

maintainer
#2 lore raw

Re: (subset) [PATCH v2 1/3] ASoC: SDCA: export sdca_find_entity_by_label() helper

In reply to [email protected]
Quoted 1 line · On Wed, 29 Jul 2026 11:22:27 +0800, [email protected] wrote:

ASoC: SDCA: export sdca_find_entity_by_label() helper

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.3

Thanks!

[1/3] ASoC: SDCA: export sdca_find_entity_by_label() helper

      https://git.kernel.org/broonie/sound/c/c24f4797d8e5
[2/3] ASoC: SDCA: export sdca_asoc_populate_rate_format() helper
      https://git.kernel.org/broonie/sound/c/772e3409961f

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark