Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:B:DVD
alsa-plugins
0002-mix-Fix-extplug-version-ifdef-checks.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-mix-Fix-extplug-version-ifdef-checks.patch of Package alsa-plugins
From 2b7dac75a76301ad2fb270e07ca15935ce48f1ea Mon Sep 17 00:00:00 2001 From: Takashi Iwai <tiwai@suse.de> Date: Wed, 18 Mar 2015 17:05:16 +0100 Subject: [PATCH 2/4] mix: Fix extplug version ifdef checks 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 | 6 +++--- mix/pcm_vdownmix.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mix/pcm_upmix.c b/mix/pcm_upmix.c index de5be41f717c..86d2d9d8a734 100644 --- a/mix/pcm_upmix.c +++ b/mix/pcm_upmix.c @@ -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 diff --git a/mix/pcm_vdownmix.c b/mix/pcm_vdownmix.c index 03e5adba9ddc..77c274af82f6 100644 --- a/mix/pcm_vdownmix.c +++ b/mix/pcm_vdownmix.c @@ -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 -- 2.4.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor