diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-09-19 15:19:57 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 10:50:58 -0400 |
commit | b438f817b16eec5b497fe78cc2b889f3276e6508 (patch) | |
tree | bccbb98a4afa7c0d12282bbf17b3a4ac32b5d4f6 /sound | |
parent | 43115f58e215f2c88c3cc2514dbf47e4643cab5b (diff) |
[ALSA] ad1848: Fix msleep while atomic
Simplest fix.
Acked-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/isa/ad1848/ad1848_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
236 | * calibration process to start. Needs upto 5 sample periods on AD1848 | 236 | * calibration process to start. Needs upto 5 sample periods on AD1848 |
237 | * which at the slowest possible rate of 5.5125 kHz means 907 us. | 237 | * which at the slowest possible rate of 5.5125 kHz means 907 us. |
238 | */ | 238 | */ |
239 | spin_unlock_irqrestore(&chip->reg_lock, flags); | ||
239 | msleep(1); | 240 | msleep(1); |
241 | spin_lock_irqsave(&chip->reg_lock, flags); | ||
240 | 242 | ||
241 | snd_printdd("(2) jiffies = %lu\n", jiffies); | 243 | snd_printdd("(2) jiffies = %lu\n", jiffies); |
242 | 244 | ||