summaryrefslogtreecommitdiff
path: root/sound/soc/sof/sof-client.h
diff options
context:
space:
mode:
authorJyri Sarha <jyri.sarha@linux.intel.com>2025-08-29 12:30:20 +0300
committerMark Brown <broonie@kernel.org>2025-08-29 14:34:17 +0300
commite6cf5e44ce1eed7aa72e7fb0cbff054e3f1dec0d (patch)
tree4417eac28852937564da55f3cf8f952916ce02d2 /sound/soc/sof/sof-client.h
parent782d4613171e271b1e28ee1db9616beb8e6ad8a1 (diff)
downloadlinux-e6cf5e44ce1eed7aa72e7fb0cbff054e3f1dec0d.tar.xz
ASoC: SOF: sof-client: Add sof_client_ipc4_find_swidget_by_id()
Add sof_client_ipc4_find_swidget_by_id() for finding widgets from SOF client devices. The motivation is to decode probes debugfs output to be more readable. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com> Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Message-ID: <20250829093022.32094-4-peter.ujfalusi@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/sof-client.h')
-rw-r--r--sound/soc/sof/sof-client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-client.h b/sound/soc/sof/sof-client.h
index b6ccc2cd69e5..c3741b92a26f 100644
--- a/sound/soc/sof/sof-client.h
+++ b/sound/soc/sof/sof-client.h
@@ -47,6 +47,8 @@ int sof_client_ipc_set_get_data(struct sof_client_dev *cdev, void *ipc_msg,
bool set);
struct sof_ipc4_fw_module *sof_client_ipc4_find_module(struct sof_client_dev *c, const guid_t *u);
+struct snd_sof_widget *sof_client_ipc4_find_swidget_by_id(struct sof_client_dev *cdev,
+ u32 module_id, int instance_id);
struct dentry *sof_client_get_debugfs_root(struct sof_client_dev *cdev);
struct device *sof_client_get_dma_dev(struct sof_client_dev *cdev);