asoc: msm_common: Fix pinctrl state during shutdown

Move pinctrl state to sleep instead of active during
mi2s shutdown.

Change-Id: I9dc1097a698d6ebd34ac3cedac99e95799a7fb66
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
This commit is contained in:
Rohit kumar
2021-01-04 18:28:24 +05:30
committad av Gerrit - the friendly Code Review server
förälder 6b298688f8
incheckning 3b528eff50

Visa fil

@@ -301,7 +301,7 @@ void msm_common_snd_shutdown(struct snd_pcm_substream *substream)
if (pdata->mi2s_gpio_p[index]) {
atomic_dec(&pdata->mi2s_gpio_ref_cnt[index]);
if (atomic_read(&pdata->mi2s_gpio_ref_cnt[index]) == 0) {
ret = msm_cdc_pinctrl_select_active_state(
ret = msm_cdc_pinctrl_select_sleep_state(
pdata->mi2s_gpio_p[index]);
if (ret)
dev_err(card->dev,