ASoC: AMD: add pm ops
authorMaruthi Srinivas Bayyavarapu <Maruthi.Bayyavarapu@amd.com>
Fri, 8 Jan 2016 23:22:10 +0000 (18:22 -0500)
committerMark Brown <broonie@kernel.org>
Sun, 10 Jan 2016 12:44:12 +0000 (12:44 +0000)
commit1927da9355670d04889ce57716bbc671fdca4135
treea53fa386ba1a817f6c925d5dafe6851b1b211e0c
parent7c31335a03b6afff1c474c693c3187f13b8587cc
ASoC: AMD: add pm ops

genpd will power off/on ACP to manage runtime ACP PM. ACP runtime PM
hooks are added to get it deinitialized and initialized respectively,
after it is powered off/on.

When system goes to suspend when audio usecase is active, ACP will
be powered off through genpd. When it resumes, ACP needs to be
initialized and reconfigured.

Signed-off-by: Maruthi Bayyavarapu <maruthi.bayyavarapu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-pcm-dma.c