summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-10-09 20:40:09 +0300
committerMark Brown <broonie@kernel.org>2023-10-09 20:40:09 +0300
commitcc660a4a8ea8d360706db9ca9ed08ac95c906ea5 (patch)
treec4f06667f0f7a4b223a411df877c7b041a33ebda /include
parente182212185bbda3440644f732f17a825fa4be456 (diff)
parentc29e5263d32a6d0ec094d425ae7fef3fa8d4da1c (diff)
downloadlinux-cc660a4a8ea8d360706db9ca9ed08ac95c906ea5.tar.xz
ASoC: codecs: fix widget name comparisons
Merge series from Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>: Some codec drivers compare widget names with strcmp, ignoring the component name prefix. If prefix is used, the comparisons start failing. Add a helper to fix the issue.
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc-dapm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index d2faec9a323e..433543eb82b9 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -469,6 +469,7 @@ void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card);
int snd_soc_dapm_update_dai(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai);
+int snd_soc_dapm_widget_name_cmp(struct snd_soc_dapm_widget *widget, const char *s);
/* dapm path setup */
int snd_soc_dapm_new_widgets(struct snd_soc_card *card);