|
@@ -1199,6 +1199,8 @@ err_pm_disable:
|
|
static int mtk_afe_pcm_dev_remove(struct platform_device *pdev)
|
|
static int mtk_afe_pcm_dev_remove(struct platform_device *pdev)
|
|
{
|
|
{
|
|
pm_runtime_disable(&pdev->dev);
|
|
pm_runtime_disable(&pdev->dev);
|
|
|
|
+ if (!pm_runtime_status_suspended(&pdev->dev))
|
|
|
|
+ mtk_afe_runtime_suspend(&pdev->dev);
|
|
snd_soc_unregister_component(&pdev->dev);
|
|
snd_soc_unregister_component(&pdev->dev);
|
|
snd_soc_unregister_platform(&pdev->dev);
|
|
snd_soc_unregister_platform(&pdev->dev);
|
|
return 0;
|
|
return 0;
|