asoc: codecs: add child devices after completing initialization
In bolero-cdc and tx, va, wsa and rx macros, move schedule_work call to add the child devices to the point later to where the parent initialization gets completed. Change-Id: Iaa07329a25020dde21d9249c3848bb7fcf7d816a Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:

کامیت شده توسط
Gerrit - the friendly Code Review server

والد
2f7a802e67
کامیت
b6430e162b
@@ -3522,13 +3522,13 @@ static int tx_macro_probe(struct platform_device *pdev)
|
||||
"%s: register macro failed\n", __func__);
|
||||
goto err_reg_macro;
|
||||
}
|
||||
if (is_used_tx_swr_gpio)
|
||||
schedule_work(&tx_priv->tx_macro_add_child_devices_work);
|
||||
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);
|
||||
if (is_used_tx_swr_gpio)
|
||||
schedule_work(&tx_priv->tx_macro_add_child_devices_work);
|
||||
|
||||
return 0;
|
||||
err_reg_macro:
|
||||
|
مرجع در شماره جدید
Block a user