Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1979cc2 authored by Sudheer Papothi's avatar Sudheer Papothi
Browse files

soundwire: put soundwire in suspend state when system is idle



Put soundwire in suspend state when system is in idle state.
This will avoid power consumption on speakers when system is in
idle state.

Change-Id: I4f38457fa7681957e21ff1381f9bd841533bd7b5
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
parent 090e59ba
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1223,10 +1223,9 @@ static int swrm_probe(struct platform_device *pdev)
	}
	pm_runtime_set_autosuspend_delay(&pdev->dev, auto_suspend_timer);
	pm_runtime_use_autosuspend(&pdev->dev);
	pm_runtime_set_suspended(&pdev->dev);
	pm_runtime_set_active(&pdev->dev);
	pm_runtime_enable(&pdev->dev);
	if (!pm_runtime_enabled(&pdev->dev))
		dev_err(&pdev->dev, "%s: pm runtime not enabled\n", __func__);
	pm_runtime_mark_last_busy(&pdev->dev);

	return 0;
err_mstr_fail: