aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-04-16 11:00:26 +0900
committerMark Brown <broonie@kernel.org>2021-04-16 14:34:12 +0100
commit8f1a16818a08047c83bc6e29efc07b15fd11fa29 (patch)
treec6c09fe822a755deefc30726a638aa48f0f719bf /sound/soc/soc-core.c
parentASoC: soc-pcm: indicate DAI name if soc_pcm_params_symmetry() failed (diff)
downloadwireguard-linux-8f1a16818a08047c83bc6e29efc07b15fd11fa29.tar.xz
wireguard-linux-8f1a16818a08047c83bc6e29efc07b15fd11fa29.zip
ASoC: soc-utils: add snd_soc_component_is_dummy()
There is snd_soc_dai_is_dummy(), but not for component. This patch adds it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87zgxzxa2t.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 236e075b9e57..762fb5c23f21 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1169,7 +1169,7 @@ static int soc_probe_component(struct snd_soc_card *card,
int probed = 0;
int ret;
- if (!strcmp(component->name, "snd-soc-dummy"))
+ if (snd_soc_component_is_dummy(component))
return 0;
if (component->card) {