ASoC: davinci-mcasp: dai format runtime reconfiguration
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 11 Mar 2016 11:18:51 +0000 (13:18 +0200)
committerMark Brown <broonie@kernel.org>
Sat, 12 Mar 2016 02:42:26 +0000 (09:42 +0700)
commit4a11ff260053b1097a5afa6c51e8d5e064aa88a7
treed87ce175b21210a659f35f48c0bc2951ca4df766
parentc670254f63fe09681b1c4c82d3d059c6cc04ce09
ASoC: davinci-mcasp: dai format runtime reconfiguration

In case when the dai format is set via the dai_link the format
configuration happens once when the links are probed. If the McASP lose
context after this, the information will be lost and McASP will not going
to work correctly.
To overcome this issue, we save the fmt and set it within hw_params as
well.

Reported-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c