From: Trent Piepho Date: Wed, 19 Sep 2007 19:20:17 +0000 (+0200) Subject: [ALSA] ad1848: simplify MCE down code X-Git-Tag: v2.6.24-rc1~832^2~32 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe1b5e874dad88646d344b092d3066cb21b279eb;p=pandora-kernel.git [ALSA] ad1848: simplify MCE down code The polling loop to check for ACI to go down was more convoluted than it needed to be. New loop should be more efficient and it is a lot simpler. The old loop checked for a timeout before checking for ACI down, which could result in an erroneous timeout. It's only a failure if the timeout expires _and_ ACI is still high. There is nothing wrong with the timeout expiring while the task is sleeping if ACI went low. A polling loop to check for the device to leaving INIT mode is removed. The device must have already left init for the previous ACI loop to have finished. Acked-by: Rene Herman Signed-off-by: Trent Piepho Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- Reading git-diff-tree failed