projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86cfaf9
)
ASoC: samsung: speyside: Handle component name prefix
author
Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>
Mon, 23 Oct 2023 09:54:27 +0000
(11:54 +0200)
committer
Mark Brown
<broonie@kernel.org>
Thu, 26 Oct 2023 11:15:53 +0000
(12:15 +0100)
Use snd_soc_dapm_widget_name_cmp() helper when comparing widget names,
to include also the component's name prefix.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link:
https://lore.kernel.org/r/20231023095428.166563-17-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/speyside.c
patch
|
blob
|
history
diff --git
a/sound/soc/samsung/speyside.c
b/sound/soc/samsung/speyside.c
index 43519572dc698e7554306621ec2f0db404152d45..79476e8eb680984434a1198ff691ddd4b9fe07c1 100644
(file)
--- a/
sound/soc/samsung/speyside.c
+++ b/
sound/soc/samsung/speyside.c
@@
-111,9
+111,9
@@
static int speyside_jack_polarity;
static int speyside_get_micbias(struct snd_soc_dapm_widget *source,
struct snd_soc_dapm_widget *sink)
{
- if (speyside_jack_polarity && (s
trcmp(source->nam
e, "MICB1") == 0))
+ if (speyside_jack_polarity && (s
nd_soc_dapm_widget_name_cmp(sourc
e, "MICB1") == 0))
return 1;
- if (!speyside_jack_polarity && (s
trcmp(source->nam
e, "MICB2") == 0))
+ if (!speyside_jack_polarity && (s
nd_soc_dapm_widget_name_cmp(sourc
e, "MICB2") == 0))
return 1;
return 0;