summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@google.com>2020-02-19 10:38:38 +0100
committerMark Brown <broonie@kernel.org>2020-02-19 17:02:43 +0100
commitec06dc15c358d3f41e9fd05872d772ed0f9fa32a (patch)
treed59342564fcdc49f28a68af67360243ae9409e5b /sound/soc/soc-dapm.c
parentASoC: fix card registration regression. (diff)
downloadlinux-ec06dc15c358d3f41e9fd05872d772ed0f9fa32a.tar.xz
linux-ec06dc15c358d3f41e9fd05872d772ed0f9fa32a.zip
ASoC: dapm: select sleep_state when initializing PINCTRL widget
Selects sleep_state when initializing PINCTRL widget. Signed-off-by: Tzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/r/20200219170951.1.I61f6559a37a6a40a6fde0737cb16100fb17c0480@changeid Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index cc17a3730d3d..69eff234b26f 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -3628,6 +3628,9 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
ret = PTR_ERR(w->pinctrl);
goto request_failed;
}
+
+ /* set to sleep_state when initializing */
+ dapm_pinctrl_event(w, NULL, SND_SOC_DAPM_POST_PMD);
break;
case snd_soc_dapm_clock_supply:
w->clk = devm_clk_get(dapm->dev, w->name);