asoc: bolero: control wakeup of swr_tx during clock setup
Move the enable and disable of wakeup capability of swr_tx gpios to clock setup to disable or enable it in all required usecases. Change-Id: I9fb76926d8520c382e7f19777190357c50f98994 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
这个提交包含在:
@@ -2650,11 +2650,7 @@ static int tx_macro_register_event_listener(struct snd_soc_component *component,
|
||||
ret = swrm_wcd_notify(
|
||||
tx_priv->swr_ctrl_data[0].tx_swr_pdev,
|
||||
SWR_REGISTER_WAKEUP, NULL);
|
||||
msm_cdc_pinctrl_set_wakeup_capable(
|
||||
tx_priv->tx_swr_gpio_p, false);
|
||||
} else {
|
||||
msm_cdc_pinctrl_set_wakeup_capable(
|
||||
tx_priv->tx_swr_gpio_p, true);
|
||||
if (!tx_priv->disable_afe_wakeup_event_listener)
|
||||
ret = swrm_wcd_notify(
|
||||
tx_priv->swr_ctrl_data[0].tx_swr_pdev,
|
||||
@@ -2690,6 +2686,8 @@ static int tx_macro_tx_va_mclk_enable(struct tx_macro_priv *tx_priv,
|
||||
__func__);
|
||||
goto exit;
|
||||
}
|
||||
msm_cdc_pinctrl_set_wakeup_capable(
|
||||
tx_priv->tx_swr_gpio_p, false);
|
||||
}
|
||||
|
||||
clk_tx_ret = bolero_clk_rsc_request_clock(tx_priv->dev,
|
||||
@@ -2818,6 +2816,8 @@ tx_clk:
|
||||
TX_CORE_CLK,
|
||||
false);
|
||||
if (tx_priv->swr_clk_users == 0) {
|
||||
msm_cdc_pinctrl_set_wakeup_capable(
|
||||
tx_priv->tx_swr_gpio_p, true);
|
||||
ret = msm_cdc_pinctrl_select_sleep_state(
|
||||
tx_priv->tx_swr_gpio_p);
|
||||
if (ret < 0) {
|
||||
|
在新工单中引用
屏蔽一个用户