]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Removed double spinlocking with omap15xx devices
authorMika Laitio <lamikr@cc.jyu.fi>
Tue, 12 Sep 2006 11:57:56 +0000 (14:57 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 12 Sep 2006 11:57:56 +0000 (14:57 +0300)
Removed double spinlocking with omap15xx devices. Thanks for the Jian
Zhang for reporting this one.

Signed-off-by: Mika Laitio <lamikr@cc.jyu.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>
sound/arm/omap/omap-alsa.c

index 583460cf176838a8f6f8b45a1813d978914f0ad4..b74202f68e3692787cac108127231a50d931fabe 100644 (file)
@@ -190,7 +190,6 @@ static void audio_process_dma(struct audio_stream *s)
        unsigned int dma_size;
        unsigned int offset;
        int ret;
-       unsigned long flags;
        
        ADEBUG();
        runtime = substream->runtime;
@@ -205,9 +204,7 @@ static void audio_process_dma(struct audio_stream *s)
                 * (invocation of callback_omap_alsa_sound_dma() method).
                 */
                if (cpu_is_omap15xx()) {
-                       spin_lock_irqsave(&s->dma_lock, flags);
                        omap_stop_alsa_sound_dma(s);
-                       spin_unlock_irqrestore(&s->dma_lock, flags);
                }
                ret = omap_start_alsa_sound_dma(s,
                                (dma_addr_t)runtime->dma_area + offset,