]> git.alsa-project.org Git - alsa-lib.git/commitdiff
PCM: Add SND_CHMAP_API_VERSION definition
authorTakashi Iwai <tiwai@suse.de>
Tue, 11 Sep 2012 09:33:31 +0000 (11:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 13 Sep 2012 06:24:58 +0000 (08:24 +0200)
Just to make it easier for apps to support chmap conditionally via
simple ifdefs.

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

index 7ec1af2a1867fc353459968c20729975e0440bc8..b27eb38da53e98bf4e47e2906d48675bdf96612d 100644 (file)
@@ -474,6 +474,9 @@ int snd_pcm_wait(snd_pcm_t *pcm, int timeout);
 int snd_pcm_link(snd_pcm_t *pcm1, snd_pcm_t *pcm2);
 int snd_pcm_unlink(snd_pcm_t *pcm);
 
+/** channel mapping API version number */
+#define SND_CHMAP_API_VERSION  ((1 << 16) | (0 << 8) | 0)
+
 /** channel map list type */
 enum snd_pcm_chmap_type {
        SND_CHMAP_TYPE_NONE = 0,/** unspecified channel position */