Skip to contentSkip to conversation

: ALSA CVS PCM does not compile

PATCH New Chris Rankin 1 participant 1 message Apr 25, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : ALSA CVS PCM does not compile

Hi,

The ALSA CVS hasn't compiled for me for a few days. These patches fix it (compile only - untested). They won't apply cleanly but they're only one-liners.

Cheers,
Chris

$ cvsalsa diff alsa-kernel/core/pcm.c 
Index: alsa-kernel/core/pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/pcm.c,v
retrieving revision 1.27
diff -u -r1.27 pcm.c
--- alsa-kernel/core/pcm.c      24 Apr 2003 17:59:58
-0000      1.27
+++ alsa-kernel/core/pcm.c      25 Apr 2003 19:52:42
-0000
@@ -319,8 +319,8 @@
        }
        snd_pcm_stream_lock_irq(substream);
        if (runtime->status->state ==
SNDRV_PCM_STATE_OPEN) {
+               snd_pcm_stream_unlock_irq(substream);
                snd_iprintf(buffer, "no setup\n");
-               spin_unlock_irq(&runtime->lock);
                return;
        }
        snd_iprintf(buffer, "access: %s\n",
snd_pcm_access_name(runtime->access));
$ cvsalsa diff alsa-kernel/core/pcm_native.c 
Index: alsa-kernel/core/pcm_native.c
===================================================================
RCS file:
/cvsroot/alsa/alsa-kernel/core/pcm_native.c,v
retrieving revision 1.54
diff -u -r1.54 pcm_native.c
--- alsa-kernel/core/pcm_native.c       24 Apr 2003
17:59:59 -0000      1.54
+++ alsa-kernel/core/pcm_native.c       25 Apr 2003
19:53:15 -0000
@@ -808,7 +808,7 @@
                        if (substream->runtime ==
NULL)
                                continue;

snd_pcm_stream_lock(substream);
- if (runtime->status->state ==
SNDRV_PCM_STATE_SUSPENDED) {
+ if
(substream->runtime->status->state ==
SNDRV_PCM_STATE_SUSPENDED) {

snd_pcm_stream_unlock(substream);
                                continue;
                        }

__________________________________________________
Yahoo! Plus
For a better Internet experience
http://www.yahoo.co.uk/btoffer

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven.
http://thinkgeek.com/sf