ASoC: wm8753: Skip noop reconfiguration of DAI mode
authorTimo Juhani Lindfors <timo.lindfors@iki.fi>
Thu, 17 Nov 2011 00:52:50 +0000 (02:52 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 17 Nov 2011 16:48:25 +0000 (16:48 +0000)
commit2391a0e06789a3f1718dee30b282562f7ed28c87
treed8273b187d53305e3df5900c897ae459f9c4ca46
parent0f768a7235d3dfb6f4833030a95a06419df089cb
ASoC: wm8753: Skip noop reconfiguration of DAI mode

This patch makes it possible to set DAI mode to its currently applied
value even if codec is active. This is necessary to allow

aplay -t raw -r 44100 -f S16_LE -c 2 < /dev/urandom &
alsactl store -f backup.state
alsactl restore -f backup.state

to work without returning errors. This patch is based on a patch sent
by Klaus Kurzmann <mok@fluxnetz.de>.

Signed-off-by: Timo Juhani Lindfors <timo.lindfors@iki.fi>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
sound/soc/codecs/wm8753.c