lkml.org 
[lkml]   [2003]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[TRIVIAL PATCH] Fix compiler warning from asound.h

Here's a trivial patch that cleans up several compiler warnings from
the source file sound/core/pcm_native.c. The fix is in the header file
asound.h.


diff -ur linux-2.5.59_original/include/sound/asound.h linux-2.5.59_trivial_patch/include/sound/asound.h
--- linux-2.5.59_original/include/sound/asound.h Thu Jan 16 18:22:22 2003
+++ linux-2.5.59_trivial_patch/include/sound/asound.h Fri Jan 17 11:27:20 2003
@@ -259,9 +259,15 @@
SNDRV_PCM_STATE_DRAINING, /* stream is draining */
SNDRV_PCM_STATE_PAUSED, /* stream is paused */
SNDRV_PCM_STATE_SUSPENDED, /* hardware is suspended */
- SNDRV_PCM_STATE_LAST = SNDRV_PCM_STATE_SUSPENDED,
};

+/*
+ * This define is used to range check the sndrv_pcm_state enumeration type.
+ * If new states are added to sndrv_pcm_state, then update this
+ * define to reflect the last member of the enumeration.
+ */
+#define SNDRV_PCM_STATE_LAST SNDRV_PCM_STATE_SUSPENDED
+
enum {
SNDRV_PCM_MMAP_OFFSET_DATA = 0x00000000,
SNDRV_PCM_MMAP_OFFSET_STATUS = 0x80000000,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.034 / U:1.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site