audio-tickless-timeout.patch
commit5d6f04132cb5bd8fa8f1c9c9c3dc337aeae18f4c
authorWerner Almesberger <werner@openmoko.org>
Sun, 13 Apr 2008 06:25:55 +0000 (13 07:25 +0100)
committerwarmcat <andy@warmcat.com>
Sun, 13 Apr 2008 06:25:55 +0000 (13 07:25 +0100)
treee7385ba0160c4a1567d3207f91c0fd4274f14817
parent11264214bbe864fb6e55fe2ab988d6bd37f2f705
audio-tickless-timeout.patch

When we resume, we can end up in
sound/soc/s3c24xx/s3c24xx-i2s.c:s3c24xx_snd_lrsync
with the timer tick still disabled, and the LR signal never happening.
Thus, we loop forever.

The patch below changes the timeout mechanism to use udelay, which
doesn't need timer ticks.

Note that this code is in a module, so to get the fix, you have to
build the modules, and update them.

The kernel now resumes but does the ugly GSM modem ticking. I'll have
to find a good place to turn that one off ...

- Werner

---------------------------------- cut here -----------------------------------

- sound/soc/s3c24xx/s3c24xx-i2s.c (s3c24xx_snd_lrsync): in resume, we may
  call s3c24xx_snd_lrsync with timer ticks disabled, thus jiffies never
  change. Use udelay to avoid this problem.
sound/soc/s3c24xx/s3c24xx-i2s.c