logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 7766b41dd6949cbafac5705a910a6025d88a0d25
parent 837de55ace4e125802efa4d2205f9855bc16ec7c
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 10 Jun 2020 17:42:50 -0700

alsa-lib: Update to 1.2.3

Diffstat:

Mpkg/alsa-lib/config.h7++++---
Mpkg/alsa-lib/patch/0002-Prevent-empty-top-level-declarations.patch62+++++++++++++++++++++++++++++++-------------------------------
Mpkg/alsa-lib/patch/0004-Use-switch-statements-instead-of-labels-as-values.patch24++++++++++++------------
Mpkg/alsa-lib/ver2+-
4 files changed, 48 insertions(+), 47 deletions(-)

diff --git a/pkg/alsa-lib/config.h b/pkg/alsa-lib/config.h @@ -27,6 +27,7 @@ /* #undef HAVE_LIBRESMGR */ #define HAVE_LIBRT 1 #define HAVE_MEMORY_H 1 +#define HAVE_MMX 1 #define HAVE_PTHREAD_MUTEX_RECURSIVE /**/ /* #undef HAVE_SOFT_FLOAT */ #define HAVE_STDINT_H 1 @@ -49,10 +50,10 @@ #define PACKAGE "alsa-lib" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "alsa-lib" -#define PACKAGE_STRING "alsa-lib 1.2.2" +#define PACKAGE_STRING "alsa-lib 1.2.3" #define PACKAGE_TARNAME "alsa-lib" #define PACKAGE_URL "" -#define PACKAGE_VERSION "1.2.2" +#define PACKAGE_VERSION "1.2.3" #define SND_MAX_CARDS 32 #define STDC_HEADERS 1 #define SUPPORT_ALOAD "1" @@ -75,7 +76,7 @@ #ifndef __EXTENSIONS__ # define __EXTENSIONS__ 1 #endif -#define VERSION "1.2.2" +#define VERSION "1.2.3" #define VERSIONED_SYMBOLS /**/ /* #undef _MINIX */ /* #undef _POSIX_1_SOURCE */ diff --git a/pkg/alsa-lib/patch/0002-Prevent-empty-top-level-declarations.patch b/pkg/alsa-lib/patch/0002-Prevent-empty-top-level-declarations.patch @@ -1,4 +1,4 @@ -From c8474cfa6b657af057b861d756741cb003547b69 Mon Sep 17 00:00:00 2001 +From 1b477b68254face3b4e5d907a26210966bf8f27e Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Wed, 3 Jul 2019 18:15:11 -0700 Subject: [PATCH] Prevent empty top-level declarations @@ -83,10 +83,10 @@ index bba9a9d4..26fde696 100644 #endif diff --git a/src/conf.c b/src/conf.c -index 50d04034..91f66fb7 100644 +index 8518f90c..a97e2eb7 100644 --- a/src/conf.c +++ b/src/conf.c -@@ -3915,7 +3915,7 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t +@@ -3965,7 +3965,7 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t return err; } #ifndef DOC_HIDDEN @@ -95,7 +95,7 @@ index 50d04034..91f66fb7 100644 #endif #ifndef DOC_HIDDEN -@@ -3983,7 +3983,7 @@ int snd_config_hook_load_for_all_cards(snd_config_t *root, snd_config_t *config, +@@ -4033,7 +4033,7 @@ int snd_config_hook_load_for_all_cards(snd_config_t *root, snd_config_t *config, return 0; } #ifndef DOC_HIDDEN @@ -253,7 +253,7 @@ index eb8218c1..b6e0753b 100644 #ifndef DOC_HIDDEN diff --git a/src/control/control.c b/src/control/control.c -index 27f42135..12f1eff2 100644 +index 19528ae3..30b36b95 100644 --- a/src/control/control.c +++ b/src/control/control.c @@ -2374,7 +2374,7 @@ int snd_ctl_elem_info_is_indirect(const snd_ctl_elem_info_t *obj) @@ -304,10 +304,10 @@ index 40d42643..f59c33f5 100644 -SND_DLSYM_BUILD_VERSION(_snd_ctl_shm_open, SND_CONTROL_DLSYM_VERSION); +SND_DLSYM_BUILD_VERSION(_snd_ctl_shm_open, SND_CONTROL_DLSYM_VERSION) diff --git a/src/dlmisc.c b/src/dlmisc.c -index 8c8f3ff7..74ac16be 100644 +index 5d672146..b5ff5025 100644 --- a/src/dlmisc.c +++ b/src/dlmisc.c -@@ -116,8 +116,8 @@ void *INTERNAL(snd_dlopen_old)(const char *name, int mode) +@@ -171,8 +171,8 @@ void *INTERNAL(snd_dlopen_old)(const char *name, int mode) } #endif @@ -348,10 +348,10 @@ index d909a11d..890d2a34 100644 -link_warning(snd_names_list_free, "Warning: snd_names_list_free is deprecated, use snd_device_name_free_hint"); +link_warning(snd_names_list_free, "Warning: snd_names_list_free is deprecated, use snd_device_name_free_hint") diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c -index 1064044c..557e51fb 100644 +index 06a48f4c..77f0547d 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c -@@ -1508,7 +1508,7 @@ snd_pcm_sframes_t snd_pcm_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) +@@ -1526,7 +1526,7 @@ snd_pcm_sframes_t snd_pcm_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) snd_pcm_unlock(pcm->fast_op_arg); return result; } @@ -360,7 +360,7 @@ index 1064044c..557e51fb 100644 /** * \brief Write interleaved frames to a PCM -@@ -2177,7 +2177,7 @@ const char *snd_pcm_start_mode_name(snd_pcm_start_t mode) +@@ -2195,7 +2195,7 @@ const char *snd_pcm_start_mode_name(snd_pcm_start_t mode) } #ifndef DOC_HIDDEN @@ -369,7 +369,7 @@ index 1064044c..557e51fb 100644 #endif /** -@@ -2193,7 +2193,7 @@ const char *snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode) +@@ -2211,7 +2211,7 @@ const char *snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode) } #ifndef DOC_HIDDEN @@ -378,7 +378,7 @@ index 1064044c..557e51fb 100644 #endif /** -@@ -2247,7 +2247,7 @@ const char *snd_pcm_type_name(snd_pcm_type_t type) +@@ -2265,7 +2265,7 @@ const char *snd_pcm_type_name(snd_pcm_type_t type) return NULL; return snd_pcm_type_names[type]; } @@ -387,7 +387,7 @@ index 1064044c..557e51fb 100644 /** * \brief Dump current hardware setup for PCM -@@ -6270,7 +6270,7 @@ int snd_pcm_sw_params_set_start_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params +@@ -6289,7 +6289,7 @@ int snd_pcm_sw_params_set_start_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params } #ifndef DOC_HIDDEN @@ -396,7 +396,7 @@ index 1064044c..557e51fb 100644 #endif /** -@@ -6286,7 +6286,7 @@ snd_pcm_start_t snd_pcm_sw_params_get_start_mode(const snd_pcm_sw_params_t *para +@@ -6305,7 +6305,7 @@ snd_pcm_start_t snd_pcm_sw_params_get_start_mode(const snd_pcm_sw_params_t *para } #ifndef DOC_HIDDEN @@ -405,7 +405,7 @@ index 1064044c..557e51fb 100644 #endif /** -@@ -6318,7 +6318,7 @@ int snd_pcm_sw_params_set_xrun_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, +@@ -6337,7 +6337,7 @@ int snd_pcm_sw_params_set_xrun_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, } #ifndef DOC_HIDDEN @@ -414,7 +414,7 @@ index 1064044c..557e51fb 100644 #endif /** -@@ -6334,7 +6334,7 @@ snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode(const snd_pcm_sw_params_t *params +@@ -6353,7 +6353,7 @@ snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode(const snd_pcm_sw_params_t *params } #ifndef DOC_HIDDEN @@ -423,7 +423,7 @@ index 1064044c..557e51fb 100644 #endif /** -@@ -6827,7 +6827,7 @@ void snd_pcm_status_get_trigger_htstamp(const snd_pcm_status_t *obj, snd_htimest +@@ -6846,7 +6846,7 @@ void snd_pcm_status_get_trigger_htstamp(const snd_pcm_status_t *obj, snd_htimest assert(obj && ptr); *ptr = obj->trigger_tstamp; } @@ -432,7 +432,7 @@ index 1064044c..557e51fb 100644 /** * \brief Get "now" timestamp from a PCM status container -@@ -6855,7 +6855,7 @@ void snd_pcm_status_get_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *p +@@ -6874,7 +6874,7 @@ void snd_pcm_status_get_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *p assert(obj && ptr); *ptr = obj->tstamp; } @@ -441,7 +441,7 @@ index 1064044c..557e51fb 100644 /** * \brief Get "now" hi-res audio timestamp from a PCM status container -@@ -7538,8 +7538,8 @@ snd_pcm_uframes_t _snd_pcm_boundary(snd_pcm_t *pcm) +@@ -7557,8 +7557,8 @@ snd_pcm_uframes_t _snd_pcm_boundary(snd_pcm_t *pcm) } #ifndef DOC_HIDDEN @@ -452,7 +452,7 @@ index 1064044c..557e51fb 100644 #endif static const char *const names[SND_PCM_HW_PARAM_LAST_INTERVAL + 1] = { -@@ -7804,13 +7804,13 @@ void snd_pcm_unlink_appl_ptr(snd_pcm_t *pcm, snd_pcm_t *slave) +@@ -7823,13 +7823,13 @@ void snd_pcm_unlink_appl_ptr(snd_pcm_t *pcm, snd_pcm_t *slave) #ifdef USE_VERSIONED_SYMBOLS #define OBSOLETE1(name, what, new) \ @@ -514,10 +514,10 @@ index 4c099acd..f7769f22 100644 +SND_DLSYM_BUILD_VERSION(_snd_pcm_copy_open, SND_PCM_DLSYM_VERSION) #endif diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c -index d533f40c..b29e295d 100644 +index 843fa316..ad39c31d 100644 --- a/src/pcm/pcm_dmix.c +++ b/src/pcm/pcm_dmix.c -@@ -1428,5 +1428,5 @@ int _snd_pcm_dmix_open(snd_pcm_t **pcmp, const char *name, +@@ -1432,5 +1432,5 @@ int _snd_pcm_dmix_open(snd_pcm_t **pcmp, const char *name, return err; } #ifndef DOC_HIDDEN @@ -525,10 +525,10 @@ index d533f40c..b29e295d 100644 +SND_DLSYM_BUILD_VERSION(_snd_pcm_dmix_open, SND_PCM_DLSYM_VERSION) #endif diff --git a/src/pcm/pcm_dshare.c b/src/pcm/pcm_dshare.c -index 59448cfb..3f804c02 100644 +index 6a99452b..efd1c25a 100644 --- a/src/pcm/pcm_dshare.c +++ b/src/pcm/pcm_dshare.c -@@ -1045,5 +1045,5 @@ int _snd_pcm_dshare_open(snd_pcm_t **pcmp, const char *name, +@@ -1049,5 +1049,5 @@ int _snd_pcm_dshare_open(snd_pcm_t **pcmp, const char *name, return err; } #ifndef DOC_HIDDEN @@ -536,10 +536,10 @@ index 59448cfb..3f804c02 100644 +SND_DLSYM_BUILD_VERSION(_snd_pcm_dshare_open, SND_PCM_DLSYM_VERSION) #endif diff --git a/src/pcm/pcm_dsnoop.c b/src/pcm/pcm_dsnoop.c -index 24f472c7..a8720bfd 100644 +index c64df381..320325be 100644 --- a/src/pcm/pcm_dsnoop.c +++ b/src/pcm/pcm_dsnoop.c -@@ -894,5 +894,5 @@ int _snd_pcm_dsnoop_open(snd_pcm_t **pcmp, const char *name, +@@ -898,5 +898,5 @@ int _snd_pcm_dsnoop_open(snd_pcm_t **pcmp, const char *name, return err; } #ifndef DOC_HIDDEN @@ -716,10 +716,10 @@ index abf6f1ab..ce48cc45 100644 +SND_DLSYM_BUILD_VERSION(_snd_pcm_plug_open, SND_PCM_DLSYM_VERSION) #endif diff --git a/src/pcm/pcm_rate.c b/src/pcm/pcm_rate.c -index fdcaa8de..0e82a9ed 100644 +index 5bf7dbb9..11c3bb7c 100644 --- a/src/pcm/pcm_rate.c +++ b/src/pcm/pcm_rate.c -@@ -1595,5 +1595,5 @@ int _snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name, +@@ -1613,5 +1613,5 @@ int _snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name, return err; } #ifndef DOC_HIDDEN @@ -727,10 +727,10 @@ index fdcaa8de..0e82a9ed 100644 +SND_DLSYM_BUILD_VERSION(_snd_pcm_rate_open, SND_PCM_DLSYM_VERSION) #endif diff --git a/src/pcm/pcm_route.c b/src/pcm/pcm_route.c -index bbcc6118..325eee62 100644 +index d3e5f3ff..975029d6 100644 --- a/src/pcm/pcm_route.c +++ b/src/pcm/pcm_route.c -@@ -1393,5 +1393,5 @@ int _snd_pcm_route_open(snd_pcm_t **pcmp, const char *name, +@@ -1430,5 +1430,5 @@ int _snd_pcm_route_open(snd_pcm_t **pcmp, const char *name, return err; } #ifndef DOC_HIDDEN @@ -900,5 +900,5 @@ index dad228c8..7fc7cf4d 100644 -SND_DLSYM_BUILD_VERSION(_snd_timer_query_hw_open, SND_TIMER_QUERY_DLSYM_VERSION); +SND_DLSYM_BUILD_VERSION(_snd_timer_query_hw_open, SND_TIMER_QUERY_DLSYM_VERSION) -- -2.25.0 +2.27.0 diff --git a/pkg/alsa-lib/patch/0004-Use-switch-statements-instead-of-labels-as-values.patch b/pkg/alsa-lib/patch/0004-Use-switch-statements-instead-of-labels-as-values.patch @@ -1,4 +1,4 @@ -From 9e429a5ce747070338395bebffe575083fa94aa9 Mon Sep 17 00:00:00 2001 +From 6c5ae6c275df9cb44475d69b140e3e822907824c Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Fri, 31 May 2019 17:47:08 -0700 Subject: [PATCH] Use switch statements instead of labels as values @@ -349,7 +349,7 @@ index 58f741b6..1bab7edd 100644 src += src_step; dst += dst_step; diff --git a/src/pcm/pcm_rate.c b/src/pcm/pcm_rate.c -index 0e82a9ed..f15cea81 100644 +index 11c3bb7c..383d7e0e 100644 --- a/src/pcm/pcm_rate.c +++ b/src/pcm/pcm_rate.c @@ -431,12 +431,6 @@ static void convert_to_s16(snd_pcm_rate_t *rate, int16_t *buf, @@ -409,7 +409,7 @@ index 0e82a9ed..f15cea81 100644 } } diff --git a/src/pcm/pcm_rate_linear.c b/src/pcm/pcm_rate_linear.c -index 7fe943d2..2789136e 100644 +index 53ce902d..6e74fa71 100644 --- a/src/pcm/pcm_rate_linear.c +++ b/src/pcm/pcm_rate_linear.c @@ -71,13 +71,6 @@ static void linear_expand(struct rate_linear *rate, @@ -494,10 +494,10 @@ index 7fe943d2..2789136e 100644 dst_frames1++; if (CHECK_SANITY(dst_frames1 > dst_frames)) { diff --git a/src/pcm/pcm_route.c b/src/pcm/pcm_route.c -index 325eee62..b93b8bd9 100644 +index 975029d6..460676f5 100644 --- a/src/pcm/pcm_route.c +++ b/src/pcm/pcm_route.c -@@ -131,10 +131,6 @@ static void snd_pcm_route_convert1_one(const snd_pcm_channel_area_t *dst_area, +@@ -132,10 +132,6 @@ static void snd_pcm_route_convert1_one(const snd_pcm_channel_area_t *dst_area, const snd_pcm_route_ttable_dst_t* ttable, const snd_pcm_route_params_t *params) { @@ -508,7 +508,7 @@ index 325eee62..b93b8bd9 100644 const snd_pcm_channel_area_t *src_area = 0; unsigned int srcidx; const char *src; -@@ -156,17 +152,12 @@ static void snd_pcm_route_convert1_one(const snd_pcm_channel_area_t *dst_area, +@@ -157,17 +153,12 @@ static void snd_pcm_route_convert1_one(const snd_pcm_channel_area_t *dst_area, return; } @@ -527,7 +527,7 @@ index 325eee62..b93b8bd9 100644 src += src_step; dst += dst_step; } -@@ -181,10 +172,6 @@ static void snd_pcm_route_convert1_one_getput(const snd_pcm_channel_area_t *dst_ +@@ -182,10 +173,6 @@ static void snd_pcm_route_convert1_one_getput(const snd_pcm_channel_area_t *dst_ const snd_pcm_route_ttable_dst_t* ttable, const snd_pcm_route_params_t *params) { @@ -538,7 +538,7 @@ index 325eee62..b93b8bd9 100644 const snd_pcm_channel_area_t *src_area = 0; unsigned int srcidx; const char *src; -@@ -207,18 +194,13 @@ static void snd_pcm_route_convert1_one_getput(const snd_pcm_channel_area_t *dst_ +@@ -208,18 +195,13 @@ static void snd_pcm_route_convert1_one_getput(const snd_pcm_channel_area_t *dst_ return; } @@ -559,7 +559,7 @@ index 325eee62..b93b8bd9 100644 src += src_step; dst += dst_step; } -@@ -233,34 +215,6 @@ static void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area, +@@ -234,34 +216,6 @@ static void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area, const snd_pcm_route_ttable_dst_t* ttable, const snd_pcm_route_params_t *params) { @@ -594,7 +594,7 @@ index 325eee62..b93b8bd9 100644 int nsrcs = ttable->nsrcs; char *dst; int dst_step; -@@ -301,11 +255,6 @@ static void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area, +@@ -302,11 +256,6 @@ static void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area, return; } @@ -606,7 +606,7 @@ index 325eee62..b93b8bd9 100644 dst = snd_pcm_channel_area_addr(dst_area, dst_offset); dst_step = snd_pcm_channel_area_step(dst_area); -@@ -314,83 +263,71 @@ static void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area, +@@ -315,83 +264,71 @@ static void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area, sum_t sum; /* Zero sum */ @@ -1704,5 +1704,5 @@ index 6392073c..ab9bf42e 100644 #undef as_u8 #undef as_u16 -- -2.22.0 +2.27.0 diff --git a/pkg/alsa-lib/ver b/pkg/alsa-lib/ver @@ -1 +1 @@ -1.2.2 r0 +1.2.3 r0