]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
mix: Fix extplug version ifdef checks
authorTakashi Iwai <tiwai@suse.de>
Wed, 18 Mar 2015 16:05:16 +0000 (17:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 Mar 2015 16:08:24 +0000 (17:08 +0100)
SND_PCM_EXTPLUG_VERSION must be checked with 0x10002, not 0x102.

Reported-by: Ethan Grammatikidis <eekee57@fastmail.fm>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
mix/pcm_upmix.c
mix/pcm_vdownmix.c

index de5be41f717cd69a82bca9e87fb3fa57110f9c93..86d2d9d8a7345c9e6b74289d371b4d602ae7b4c3 100644 (file)
@@ -371,7 +371,7 @@ static int upmix_close(snd_pcm_extplug_t *ext)
        return 0;
 }
 
-#if SND_PCM_EXTPLUG_VERSION >= 0x102
+#if SND_PCM_EXTPLUG_VERSION >= 0x10002
 static unsigned int chmap[8][8] = {
        { SND_CHMAP_MONO },
        { SND_CHMAP_FL, SND_CHMAP_FR },
@@ -418,13 +418,13 @@ static snd_pcm_chmap_t *upmix_get_chmap(snd_pcm_extplug_t *ext)
        memcpy(map->pos, &chmap[ext->channels - 1][0], ext->channels * sizeof(int));
        return map;
 }
-#endif /* SND_PCM_EXTPLUG_VERSION >= 0x102 */
+#endif /* SND_PCM_EXTPLUG_VERSION >= 0x10002 */
 
 static const snd_pcm_extplug_callback_t upmix_callback = {
        .transfer = upmix_transfer,
        .init = upmix_init,
        .close = upmix_close,
-#if SND_PCM_EXTPLUG_VERSION >= 0x102
+#if SND_PCM_EXTPLUG_VERSION >= 0x10002
        .query_chmaps = upmix_query_chmaps,
        .get_chmap = upmix_get_chmap,
 #endif
index 03e5adba9ddc15af9a5741dec87c379edff78876..77c274af82f6c64d849965f24f958bf2f1bbb704 100644 (file)
@@ -277,7 +277,7 @@ static int vdownmix_init(snd_pcm_extplug_t *ext)
        return 0;
 }
 
-#if SND_PCM_EXTPLUG_VERSION >= 0x102
+#if SND_PCM_EXTPLUG_VERSION >= 0x10002
 static unsigned int chmap[6] = {
        SND_CHMAP_FL, SND_CHMAP_FR,
        SND_CHMAP_RL, SND_CHMAP_RR,
@@ -319,13 +319,13 @@ static snd_pcm_chmap_t *vdownmix_get_chmap(snd_pcm_extplug_t *ext)
        memcpy(map->pos, chmap, ext->channels * sizeof(int));
        return map;
 }
-#endif /* SND_PCM_EXTPLUG_VERSION >= 0x102 */
+#endif /* SND_PCM_EXTPLUG_VERSION >= 0x10002 */
 
 static const snd_pcm_extplug_callback_t vdownmix_callback = {
        .transfer = vdownmix_transfer,
        .init = vdownmix_init,
        /* .dump = filr_dump, */
-#if SND_PCM_EXTPLUG_VERSION >= 0x102
+#if SND_PCM_EXTPLUG_VERSION >= 0x10002
        .query_chmaps = vdownmix_query_chmaps,
        .get_chmap = vdownmix_get_chmap,
 #endif