ASoC: S3C lrsync function made to work with IRQs disabled.
authorJassi <jassi.brar@samsung.com>
Tue, 15 Sep 2009 10:02:37 +0000 (19:02 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 15 Sep 2009 12:26:14 +0000 (13:26 +0100)
commitfa68e0025d4184ba917621a9c977d4243d0a013e
tree6bab0f8380e5ff4446ffcbadb75039f41565e951
parent3eef08ba522775360cc59fe0a6b1bca6ecc8da4e
ASoC: S3C lrsync function made to work with IRQs disabled.

s3c2412_snd_lrsync() maybe reached with IRQs disabled and if LRCLK
is dead due to improper initialization of CPU or CODEC, the system
gets stuck in the loop because jiffies may never get updated.
Implemented counter based wait mechanism for atleast the same
timeout period.

Signed-off-by: Jassi <jassi.brar@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/s3c24xx/s3c-i2s-v2.c