mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
Merge "asoc: bolero: force bolero runtime suspend during adsp ssr"
This commit is contained in:
commit
330f03de80
4 changed files with 10 additions and 0 deletions
|
|
@ -1235,6 +1235,8 @@ static int rx_macro_event_handler(struct snd_soc_component *component,
|
|||
rx_priv->swr_ctrl_data[0].rx_swr_pdev,
|
||||
SWR_DEVICE_SSR_DOWN, NULL);
|
||||
}
|
||||
if (!pm_runtime_status_suspended(rx_dev))
|
||||
bolero_runtime_suspend(rx_dev);
|
||||
break;
|
||||
case BOLERO_MACRO_EVT_SSR_UP:
|
||||
rx_priv->dev_up = true;
|
||||
|
|
|
|||
|
|
@ -354,6 +354,8 @@ static int tx_macro_event_handler(struct snd_soc_component *component,
|
|||
tx_priv->swr_ctrl_data[0].tx_swr_pdev,
|
||||
SWR_DEVICE_SSR_DOWN, NULL);
|
||||
}
|
||||
if (!pm_runtime_status_suspended(tx_dev))
|
||||
bolero_runtime_suspend(tx_dev);
|
||||
break;
|
||||
case BOLERO_MACRO_EVT_SSR_UP:
|
||||
/* reset swr after ssr/pdr */
|
||||
|
|
|
|||
|
|
@ -237,6 +237,10 @@ static int va_macro_event_handler(struct snd_soc_component *component,
|
|||
case BOLERO_MACRO_EVT_CLK_RESET:
|
||||
bolero_rsc_clk_reset(va_dev, VA_CORE_CLK);
|
||||
break;
|
||||
case BOLERO_MACRO_EVT_SSR_DOWN:
|
||||
if (!pm_runtime_status_suspended(va_dev))
|
||||
bolero_runtime_suspend(va_dev);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -919,6 +919,8 @@ static int wsa_macro_event_handler(struct snd_soc_component *component,
|
|||
wsa_priv->swr_ctrl_data[0].wsa_swr_pdev,
|
||||
SWR_DEVICE_SSR_DOWN, NULL);
|
||||
}
|
||||
if (!pm_runtime_status_suspended(wsa_dev))
|
||||
bolero_runtime_suspend(wsa_dev);
|
||||
break;
|
||||
case BOLERO_MACRO_EVT_SSR_UP:
|
||||
/* reset swr after ssr/pdr */
|
||||
|
|
|
|||
Loading…
Reference in a new issue