ASoC: davinci-mcasp: add support for suspend and resume
authorDaniel Mack <zonque@gmail.com>
Tue, 1 Oct 2013 12:50:02 +0000 (14:50 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 3 Oct 2013 13:22:40 +0000 (14:22 +0100)
commita85e419edee73ec458354388e1ba9b8b58bdcbba
treec5e74070c0195ddc247da92e506eabb89a601120
parentbcf25567ecec6cb0a8078cbf68969baed047fdf4
ASoC: davinci-mcasp: add support for suspend and resume

When the system returns from suspend, it looses its configuration. Most
of it is restored by running a normal audio stream startup, but the DAI
format is left unset as that's configured on the audio device creation.

Hence, it suffices here to care for the registers which are touched by
davinci_mcasp_set_dai_fmt() and restore them when the system is resumed.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/davinci/davinci-mcasp.c
sound/soc/davinci/davinci-mcasp.h