Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b438f817 authored by Trent Piepho's avatar Trent Piepho Committed by Jaroslav Kysela
Browse files

[ALSA] ad1848: Fix msleep while atomic



Simplest fix.
Acked-by: default avatarRene Herman <rene.herman@gmail.com>

Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 43115f58
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);