Commit 45a9e075 authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown

ASoC: Intel: Revert "ASoC: Intel: Add support for PM ops in bxt-rt298"

This reverts commit 3513798c ("ASoC: Intel: Add support for
PM ops in bxt-rt298") as the right way to fix this is to disable
async suspend
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c3f2fe62
......@@ -454,33 +454,10 @@ static int broxton_audio_probe(struct platform_device *pdev)
return devm_snd_soc_register_card(&pdev->dev, &broxton_rt298);
}
/*
* we want the card to be suspend first and then platform driver. This
* allows the DAPM to tear down pipelines on suspend and then platform shuts
* down the DSP. For this use .prepare for suspending card
*
* Similarly, use complete to let DSP download firmware first and then sync
* DAPM and restore pipelines to DSP
*/
static void broxton_rt298_complete(struct device *dev)
{
snd_soc_resume(dev);
}
static const struct dev_pm_ops broxton_pm_ops = {
.prepare = snd_soc_suspend,
.complete = broxton_rt298_complete,
.freeze = snd_soc_suspend,
.thaw = snd_soc_resume,
.poweroff = snd_soc_poweroff,
.restore = snd_soc_resume,
};
static struct platform_driver broxton_audio = {
.probe = broxton_audio_probe,
.driver = {
.name = "bxt_alc298s_i2s",
.pm = &broxton_pm_ops,
},
};
module_platform_driver(broxton_audio)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment