]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite67e33006755fdfda7901a8149977171f89b3871
treec5e74070c0195ddc247da92e506eabb89a601120
parent9503afafdd760f25669186f8b6d5d9cd6ad55db8
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