ASoC: nuc900: fix a wait loop bug
authorWan ZongShun <mcuos.com@gmail.com>
Wed, 2 Jun 2010 06:02:33 +0000 (14:02 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 2 Jun 2010 10:47:06 +0000 (11:47 +0100)
commit8dfb0c78157e14387f49fa7ab425e65a93b2fee2
tree939e5783b304ae5b9489783e23ba33bc05a8bd3c
parent018334c045c95793ab58948fe1f63282459c4f8d
ASoC: nuc900: fix a wait loop bug

The current implement meant ACTL_ACCON was only accessed once when read or write
proceeding, which is not right, if so,we have to wait the 'timeout=0x10000' to end
every times.

We need to polling the bit AC_R_FINISH and AC_W_FINISH of ACTL_ACCON
register to identify whether read or write is finished or not,so I make
the patch to fix the issue.

Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/nuc900/nuc900-ac97.c