diff mbox series

[RFC,1/2] ASoC: dapm: select sleep_state when initializing PINCTRL widget

Message ID 20200219170951.1.I61f6559a37a6a40a6fde0737cb16100fb17c0480@changeid (mailing list archive)
State Accepted
Commit ec06dc15c358d3f41e9fd05872d772ed0f9fa32a
Headers show
Series ASoC: mediatek: mt8183-da7219: use SND_SOC_DAPM_PINCTRL | expand

Commit Message

Tzung-Bi Shih Feb. 19, 2020, 9:38 a.m. UTC
Selects sleep_state when initializing PINCTRL widget.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
---
 sound/soc/soc-dapm.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 34c832686637..59302cbcb04e 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -3600,6 +3600,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);