Skip to content

Commit

Permalink
[ALSA] ad1848: Fix msleep while atomic
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trent Piepho authored and Jaroslav Kysela committed Oct 16, 2007
1 parent 43115f5 commit b438f81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/isa/ad1848/ad1848_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b438f81

Please sign in to comment.