Skip to content

Commit 317dd0d

Browse files
krzkbroonie
authored andcommitted
ASoC: samsung: speyside: Handle component name prefix
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 86cfaf9 commit 317dd0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/samsung/speyside.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ static int speyside_jack_polarity;
111111
static int speyside_get_micbias(struct snd_soc_dapm_widget *source,
112112
struct snd_soc_dapm_widget *sink)
113113
{
114-
if (speyside_jack_polarity && (strcmp(source->name, "MICB1") == 0))
114+
if (speyside_jack_polarity && (snd_soc_dapm_widget_name_cmp(source, "MICB1") == 0))
115115
return 1;
116-
if (!speyside_jack_polarity && (strcmp(source->name, "MICB2") == 0))
116+
if (!speyside_jack_polarity && (snd_soc_dapm_widget_name_cmp(source, "MICB2") == 0))
117117
return 1;
118118

119119
return 0;

0 commit comments

Comments
 (0)