OSDN Git Service

PCM: Fix prefix for snd_pcm_chmap_type enum members
authorTakashi Iwai <tiwai@suse.de>
Mon, 10 Sep 2012 14:59:36 +0000 (16:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 13 Sep 2012 06:24:58 +0000 (08:24 +0200)
Add _TYPE prefix to distinguish from the channel position.
Also add SND_CHMAP_TYPE_LAST entry pointing the last one like other
enums.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/pcm.h

index 8ae4cd8..838809c 100644 (file)
@@ -476,10 +476,11 @@ int snd_pcm_unlink(snd_pcm_t *pcm);
 
 /** channel map list type */
 enum snd_pcm_chmap_type {
-       SND_CHMAP_NONE = 0,     /** unspecified channel position */
-       SND_CHMAP_FIXED,        /** fixed channel position */
-       SND_CHMAP_VAR,          /** freely swappable channel position */
-       SND_CHMAP_PAIRED,       /** pair-wise swappable channel position */
+       SND_CHMAP_TYPE_NONE = 0,/** unspecified channel position */
+       SND_CHMAP_TYPE_FIXED,   /** fixed channel position */
+       SND_CHMAP_TYPE_VAR,     /** freely swappable channel position */
+       SND_CHMAP_TYPE_PAIRED,  /** pair-wise swappable channel position */
+       SND_CHMAP_TYPE_LAST = SND_CHMAP_TYPE_PAIRED, /** last entry */
 };
 
 /** channel positions */