ASoC: Intel: Allow byt-5640 machine driver and SST core go to suspend
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 8 May 2014 13:07:27 +0000 (16:07 +0300)
committerMark Brown <broonie@linaro.org>
Mon, 12 May 2014 21:02:18 +0000 (22:02 +0100)
commit6fb8b02b4be5fa41e39a26fc11b8093518713e30
treece714fc822f977255b7479647ed93f67562458f4
parentaf94aa558be506c5afe106e8cf34362bfce221aa
ASoC: Intel: Allow byt-5640 machine driver and SST core go to suspend

Since there is no support for compressed audio in Baytrail ADSP firmware
there is no need to leave it on during suspend since ALSA PCM buffers are
too small for leaving ADSP on for playing or recording.

Implement PM callbacks to Baytrail byt-rt5640.c machine driver that call
snd_soc_suspend and snd_soc_resume functions and unset the ignore_suspend
fields in DAI links.

This makes soc-core and ALSA core gracefully suspend and resume active
stream and call sst_byt_pcm_trigger() during suspend-resume cycle.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/byt-rt5640.c