Skip to content

Commit 4bdcbc3

Browse files
jbrun3tbroonie
authored andcommitted
ASoC: dapm: fix clock get name
The name currently used to get the clock includes the dapm prefix. It should use the name as provided to the widget, without the prefix. Fixes: 3caac75 ("ASoC: soc-dapm.c: fixup snd_soc_dapm_new_control_unlocked() error handling") Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://lore.kernel.org/r/20231106103712.703962-1-jbrunet@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 15be353 commit 4bdcbc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/soc-dapm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3670,7 +3670,7 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
36703670
dapm_pinctrl_event(w, NULL, SND_SOC_DAPM_POST_PMD);
36713671
break;
36723672
case snd_soc_dapm_clock_supply:
3673-
w->clk = devm_clk_get(dapm->dev, w->name);
3673+
w->clk = devm_clk_get(dapm->dev, widget->name);
36743674
if (IS_ERR(w->clk)) {
36753675
ret = PTR_ERR(w->clk);
36763676
goto request_failed;

0 commit comments

Comments
 (0)