From: Trent Piepho Date: Wed, 19 Sep 2007 19:19:57 +0000 (+0200) Subject: [ALSA] ad1848: Fix msleep while atomic X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b438f817b16eec5b497fe78cc2b889f3276e6508;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [ALSA] ad1848: Fix msleep while atomic Simplest fix. Acked-by: Rene Herman Signed-off-by: Trent Piepho Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/isa/ad1848/ad1848_lib.c b/sound/isa/ad1848/ad1848_lib.c index 330b5ced01aa..18355fd66cb5 100644 --- a/sound/isa/ad1848/ad1848_lib.c +++ b/sound/isa/ad1848/ad1848_lib.c @@ -236,7 +236,9 @@ static void snd_ad1848_mce_down(struct snd_ad1848 *chip) * calibration process to start. Needs upto 5 sample periods on AD1848 * which at the slowest possible rate of 5.5125 kHz means 907 us. */ + spin_unlock_irqrestore(&chip->reg_lock, flags); msleep(1); + spin_lock_irqsave(&chip->reg_lock, flags); snd_printdd("(2) jiffies = %lu\n", jiffies);