ASoC: Blackfin I2S: fix resuming when device hasn't been used
authorCliff Cai <cliff.cai@analog.com>
Thu, 17 Sep 2009 00:25:12 +0000 (20:25 -0400)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 18 Sep 2009 14:07:19 +0000 (15:07 +0100)
commitad80efc469f56d41f3f4adc1b2c86bf65689ebeb
tree2b694e6abac0e0d70f39892028879f0ed0b344e7
parentfab19bae0c2951ed8bc517a53848b027fead293d
ASoC: Blackfin I2S: fix resuming when device hasn't been used

If the sound system hasn't been utilized yet and we suspend, then we
attempt to save/restore using state that doesn't exist.  So use a global
handle instead to reconfigure properly.

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/blackfin/bf5xx-i2s.c