Commit 63070a03 authored by Mika Laitio's avatar Mika Laitio Committed by Tony Lindgren

[PATCH] Removed double spinlocking with omap15xx devices

Removed double spinlocking with omap15xx devices. Thanks for the Jian
Zhang for reporting this one.
Signed-off-by: default avatarMika Laitio <lamikr@cc.jyu.fi>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 44a85386
...@@ -190,7 +190,6 @@ static void audio_process_dma(struct audio_stream *s) ...@@ -190,7 +190,6 @@ static void audio_process_dma(struct audio_stream *s)
unsigned int dma_size; unsigned int dma_size;
unsigned int offset; unsigned int offset;
int ret; int ret;
unsigned long flags;
ADEBUG(); ADEBUG();
runtime = substream->runtime; runtime = substream->runtime;
...@@ -205,9 +204,7 @@ static void audio_process_dma(struct audio_stream *s) ...@@ -205,9 +204,7 @@ static void audio_process_dma(struct audio_stream *s)
* (invocation of callback_omap_alsa_sound_dma() method). * (invocation of callback_omap_alsa_sound_dma() method).
*/ */
if (cpu_is_omap15xx()) { if (cpu_is_omap15xx()) {
spin_lock_irqsave(&s->dma_lock, flags);
omap_stop_alsa_sound_dma(s); omap_stop_alsa_sound_dma(s);
spin_unlock_irqrestore(&s->dma_lock, flags);
} }
ret = omap_start_alsa_sound_dma(s, ret = omap_start_alsa_sound_dma(s,
(dma_addr_t)runtime->dma_area + offset, (dma_addr_t)runtime->dma_area + offset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment