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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:54:17 +0000 (08:54 -0800)
commit101e07082f732dfb645ba370b0c0b510e1283f25
tree17543cfbae1b5b415c34ccc663b9e579499992fd
parent38c15d6ae974128158acee43380508db968c80bf
ASoC: wm8753: Skip noop reconfiguration of DAI mode

commit 2391a0e06789a3f1718dee30b282562f7ed28c87 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/soc/codecs/wm8753.c