File 0003-a52-Fix-ioplug-version-ifdef-checks.patch of Package alsa-plugins.4301

From 1e32ee9a63d5d6a623d072684cdf4871734da13b Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@suse.de>
Date: Wed, 18 Mar 2015 17:08:57 +0100
Subject: [PATCH 3/4] a52: Fix ioplug version ifdef checks

SND_PCM_IOPLUG_VERSION must be checked with 0x10002, not 0x102.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 a52/pcm_a52.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/a52/pcm_a52.c b/a52/pcm_a52.c
index 59e25cbd5f46..4e4c5f77aa92 100644
--- a/a52/pcm_a52.c
+++ b/a52/pcm_a52.c
@@ -656,7 +656,7 @@ static int a52_close(snd_pcm_ioplug_t *io)
 	return 0;
 }
 			      
-#if SND_PCM_IOPLUG_VERSION >= 0x102
+#if SND_PCM_IOPLUG_VERSION >= 0x10002
 static unsigned int chmap4[4] = {
 	SND_CHMAP_FL, SND_CHMAP_FR,
 	SND_CHMAP_RL, SND_CHMAP_RR,
@@ -704,7 +704,7 @@ static snd_pcm_chmap_t *a52_get_chmap(snd_pcm_ioplug_t *io)
 	       io->channels * sizeof(int));
 	return map;
 }
-#endif /* SND_PCM_IOPLUG_VERSION >= 0x102 */
+#endif /* SND_PCM_IOPLUG_VERSION >= 0x10002 */
 
 /*
  * callback table
@@ -723,10 +723,10 @@ static snd_pcm_ioplug_callback_t a52_ops = {
 	.poll_descriptors_count = a52_poll_descriptors_count,
 	.poll_descriptors = a52_poll_descriptors,
 	.poll_revents = a52_poll_revents,
-#if SND_PCM_IOPLUG_VERSION >= 0x102
+#if SND_PCM_IOPLUG_VERSION >= 0x10002
 	.query_chmaps = a52_query_chmaps,
 	.get_chmap = a52_get_chmap,
-#endif /* SND_PCM_IOPLUG_VERSION >= 0x102 */
+#endif /* SND_PCM_IOPLUG_VERSION >= 0x10002 */
 };
 
 /*
-- 
2.4.1

openSUSE Build Service is sponsored by