]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: AACI: fix timeout duration
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 12 Jan 2011 23:42:57 +0000 (23:42 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 25 Jan 2011 21:18:05 +0000 (21:18 +0000)
commita77e64e6bf928bee8bb6fd142d904ed02de1f0f8
tree7d6384c03895828a4052b5f9fbe1c760c8d6092a
parent1a5a0aeab58472dcc433d86f8d9901f5f75f3c61
ALSA: AACI: fix timeout duration

Relying on the access time of peripherals is unreliable - it depends
on the speed of the CPU and the bus.  On Versatile Express, these
timeouts were expiring, causing the driver to fail.

Add udelay(1) to ensure that they don't expire early, and adjust
timeouts to give a reasonable margin over the response times.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
sound/arm/aaci.c