mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
ASoC: bolero: tx-macro: Update VA macro clock sequence
Update VA macro clock sequence for headset detection during voice activation usecase to avoid soundwire bus clash interrupts. Change-Id: Ic004d43aef9c8a9003b3028c122e6fb6a06fa58d Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:
parent
ac2cc5456a
commit
296867b416
1 changed files with 5 additions and 0 deletions
|
|
@ -1519,6 +1519,8 @@ static int tx_macro_tx_va_mclk_enable(struct tx_macro_priv *tx_priv,
|
|||
__func__);
|
||||
goto done;
|
||||
}
|
||||
bolero_clk_rsc_fs_gen_request(tx_priv->dev,
|
||||
true);
|
||||
if (tx_priv->tx_mclk_users == 0) {
|
||||
regmap_update_bits(regmap,
|
||||
BOLERO_CDC_TX_TOP_CSR_FREQ_MCLK,
|
||||
|
|
@ -1580,6 +1582,8 @@ static int tx_macro_tx_va_mclk_enable(struct tx_macro_priv *tx_priv,
|
|||
BOLERO_CDC_TX_CLK_RST_CTRL_MCLK_CONTROL,
|
||||
0x01, 0x00);
|
||||
}
|
||||
bolero_clk_rsc_fs_gen_request(tx_priv->dev,
|
||||
false);
|
||||
ret = bolero_clk_rsc_request_clock(tx_priv->dev,
|
||||
TX_CORE_CLK,
|
||||
VA_CORE_CLK,
|
||||
|
|
@ -2072,6 +2076,7 @@ static int tx_macro_probe(struct platform_device *pdev)
|
|||
pm_runtime_set_autosuspend_delay(&pdev->dev, AUTO_SUSPEND_DELAY);
|
||||
pm_runtime_use_autosuspend(&pdev->dev);
|
||||
pm_runtime_set_suspended(&pdev->dev);
|
||||
pm_suspend_ignore_children(&pdev->dev, true);
|
||||
pm_runtime_enable(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue