[alsa-devel] [PATCH] ad1838/cs4231 -- fix MCE timeout upon initial load

Krzysztof Helt krzysztof.h1 at gmail.com
Tue Sep 18 09:33:38 CEST 2007


On Mon, 17 Sep 2007 19:32:11 -0700 (PDT)
Trent Piepho <xyzzy at speakeasy.org> wrote:

> Simplest fix.
> 
> Signed-off-by: Trent Piepho <xyzzy at speakeasy.org>
> 
> diff -r 50502c13d2cf isa/ad1848/ad1848_lib.c
> --- a/isa/ad1848/ad1848_lib.c	Mon Sep 17 19:08:32 2007 +0200
> +++ b/isa/ad1848/ad1848_lib.c	Mon Sep 17 19:19:52 2007 -0700
> @@ -236,7 +236,9 @@ static void snd_ad1848_mce_down(struct s
>  	 * 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);
>  

Acked-by: Krzysztof Helt <krzysztof.h1 at wp.pl>




More information about the Alsa-devel mailing list