pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/alsa-lib alsa-lib: update to 1.2.7.2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ae2d8874855b
branches:  trunk
changeset: 381931:ae2d8874855b
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Jul 15 21:17:25 2022 +0000

description:
alsa-lib: update to 1.2.7.2.

1.2.7.2

 Core

    Release v1.2.7.2

Mixer API

    mixer: add documentation about postcondition of removal event processing

PCM API

    pcm: share plugin: handle -EINTR
    pcm: share plugin: return error if socket read or write call fails

RawMidi API

    rawmidi: fix the params_mode check condition in snd_rawmidi_tread()

Use Case Manager API

    ucm: fix st_mode check for symbolic links

Kernel Headers

    include/sound/type_compat.h: fix include guard

1.2.7.1

 Core

    Release v1.2.7.1
    conf: Use ino64_t to save and compare inode numbers

Control API

    control: eld - fix the decoding for older hw

I/O API

    output: include stdarg.h

PCM API

    pcm: dmix - Add error handler for `fgets`

Use Case Manager API

    ucm: list also hardware configs (hw:X) in uc_mgr_scan_master_configs() fcn

Configuration

    conf: Use ino64_t to save and compare inode numbers

1.2.7

 Core

    Release v1.2.7
    configure: remove --with-lfs option, but keep the autodetection code
    configure: add --with-lfs option
    gitcompile: fix 32 bit compilation support
    remove .travis.yml (using github actions)
    github actions: move to checkout@v3
    conf: fix the export of safe_strto* functions from libasound

Config API

    ucm: add ${evali:} substitution

Control API

    control: eld - add missing ctype.h header inclusion
    control: shm - initialize write buffer
    control: decode HDMI device name from ELD

PCM API

    pcm: hw: change rate range syntax
    pcm: hw: add "min_rate" and "max_rate" as alternatives to single "rate" parameter
    pcm: rate - rewrite the may_wait_for_avail_min callback for the rate plugin
    pcm: plugin - fix avail_min calculation on rate plugin
    pcm: dmix: fix wrong scaling in 32bits pcm mixing
    pcm: ladspa - Use LFS calls (readdir64)
    pcm: fix for the unitialized write buffer
    control: decode HDMI device name from ELD
    pcm: multi: return correct hwptr and avail from snd_pcm_multi_status()
    pcm: direct - allow 'off' string for hw_ptr_alignment
    pcm: direct - cleanups for snd_pcm_direct_reset_slave_ptr()
    pcm: direct - add support for channel bindings in snd_pcm_direct_query_chmaps()
    pcm: direct: Check xrun/suspend before the slave hwptr update
    pcm: direct: Move slave PCM state checks into XRUN check helper
    pcm: direct: Improved suspend/resume support
    pcm: direct: Propagate error code from snd_pcm_direct_client_chk_xrun()
    pcm: rate: fix drain of partial period at end of buffer

Topology API

    src/topology/parser.c: drop duplicate safe_strtol_base

Use Case Manager API

    ucm: fix the reload call (snd_use_case_mgr_reload)
    ucm: implement disdevall sequence command
    use-case.h: add Channels/ChannelPos values to the documentation
    ucm: fix memory leak in the error path (Include)
    ucm: Use LFS calls (stat, scandir)
    ucm: main - fix the compilation error (signess)
    ucm: macro - make argument names shorter
    ucm: doc - describe variants, minor corrections
    ucm: implement enadev2 and disdev2 sequence commands
    ucm: add support for verb variants
    ucm: set SYNTAX_VERSION_MAX to 6
    ucm: move macros and evali substitution to Syntax 6
    ucm: macro - add deep call protection (recursion)
    ucm: macro call inplace evaluate inside macro
    ucm: macro - fix the error message, print id
    ucm: return empty string for undefined "open" variables (arguments)
    ucm: allow '-' prefix to avoid errors when the variable is not defined
    ucm: allow passing variables through ucm open string
    use-case.h: add SND_USE_CASE_DEV_DIRECT define
    ucm: implement MacroDefine and Macro subtree evaluation
    ucm: local_config may be NULL (error path)
    ucm: add ${evali:} substitution
    ucm: fix the '${eval:EXPR}' substitution
    ucm: top-level path - set directory from symlink

ALSA Server

    pcm: fix for the unitialized write buffer

Configuration

    conf: Use LFS calls when reading config files
    conf: vc4-hdmi: use a proper hdmi pcm, fix broken default pcm
    conf: fix memory leak in snd_config_substitute() for strings
    conf: snd_config_merge - fix comment (overwrite / override)
    conf: fix the export of safe_strto* functions from libasound

Documentation

    README: Add link to GitHub Actions

Simple Abstraction Mixer Modules

    mixer: simple module: python 3.10 PyTuple_SET_ITEM() fix

diffstat:

 audio/alsa-lib/Makefile                                   |   5 +--
 audio/alsa-lib/distinfo                                   |  15 +++++++------
 audio/alsa-lib/patches/patch-bi                           |  10 ++++----
 audio/alsa-lib/patches/patch-include_sound_type__compat.h |  16 +--------------
 audio/alsa-lib/patches/patch-src_conf.c                   |   8 +++---
 audio/alsa-lib/patches/patch-src_ucm_main.c               |  16 +++++++++++++++
 6 files changed, 36 insertions(+), 34 deletions(-)

diffs (147 lines):

diff -r abf7693ab070 -r ae2d8874855b audio/alsa-lib/Makefile
--- a/audio/alsa-lib/Makefile   Fri Jul 15 21:05:32 2022 +0000
+++ b/audio/alsa-lib/Makefile   Fri Jul 15 21:17:25 2022 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.28 2022/03/14 14:08:42 wiz Exp $
+# $NetBSD: Makefile,v 1.29 2022/07/15 21:17:25 wiz Exp $
 
-DISTNAME=      alsa-lib-1.2.6.1
-PKGREVISION=   1
+DISTNAME=      alsa-lib-1.2.7.2
 CATEGORIES=    audio
 MASTER_SITES=  ftp://ftp.alsa-project.org/pub/lib/
 EXTRACT_SUFX=  .tar.bz2
diff -r abf7693ab070 -r ae2d8874855b audio/alsa-lib/distinfo
--- a/audio/alsa-lib/distinfo   Fri Jul 15 21:05:32 2022 +0000
+++ b/audio/alsa-lib/distinfo   Fri Jul 15 21:17:25 2022 +0000
@@ -1,29 +1,30 @@
-$NetBSD: distinfo,v 1.36 2022/03/14 14:08:42 wiz Exp $
+$NetBSD: distinfo,v 1.37 2022/07/15 21:17:25 wiz Exp $
 
-BLAKE2s (alsa-lib-1.2.6.1.tar.bz2) = efef5241c5060a795b451199dd0724b233fed3cdbdee84192c0f65ca1b8b26d2
-SHA512 (alsa-lib-1.2.6.1.tar.bz2) = 70e539cf092b5d43e00e4134d8a3e184f0dc34312823e4b58a574320cbf06cb7369bc3251ecb1858033756a7a8c35d36faa8da48d49f6efe0cec905784adbd45
-Size (alsa-lib-1.2.6.1.tar.bz2) = 1079670 bytes
+BLAKE2s (alsa-lib-1.2.7.2.tar.bz2) = 97354678a84cadf3103f09086c609c59ac068cd3e27ccce49d0d75c6096a8241
+SHA512 (alsa-lib-1.2.7.2.tar.bz2) = 79e5920384e570a1acd8ecd1eb8812879333c3cedb1d15780080afc40125b97df893c33f4163d9dd863871b628bc6026265f8ace2c8634fc1af5b52b62ac9cfe
+Size (alsa-lib-1.2.7.2.tar.bz2) = 1085117 bytes
 SHA1 (patch-ad) = 79a0f048751899247ec12990cd02332b977af248
 SHA1 (patch-ae) = 7ad3a3c3ee4be2c80fa6b0a2ea28563efd399a60
 SHA1 (patch-af) = 257b06f10616c04c2724e30777b027e5e7e443f9
 SHA1 (patch-ah) = 4dd4e27d0dfb6cedf79775b6d01a0b8c6617cdf0
 SHA1 (patch-aq) = 29fc896b2acad44e5fa9619aca1df5dddd76fa5e
 SHA1 (patch-bg) = b726769272dd214e67f2407ed5a0199189540557
-SHA1 (patch-bi) = 7e74ebe53cc2ab273f5235775e391a6ef28d1006
+SHA1 (patch-bi) = 5c16d5a9421dcaa131bea8442848e6ab460d1c31
 SHA1 (patch-bj) = 5b7a36747e57e41eddb05cd1b1d9771a36b0c4f7
 SHA1 (patch-bk) = 55754e4d0ac947c2e7e59b604a21fb5798ae5b39
 SHA1 (patch-configure.ac) = cc034d07eab13caa5ff8748e8eea37ae9dd367f5
 SHA1 (patch-include_error.h) = 9e92d4a51badda1d46305d1e5e36b8197788aa89
 SHA1 (patch-include_output.h) = 0a073b53c40293aa7cfa250586c087084002eefe
-SHA1 (patch-include_sound_type__compat.h) = 0148823ade8dadc8772a85621a83e4fa41da796a
+SHA1 (patch-include_sound_type__compat.h) = 5199b01f3a6960d5e856277fd43e3e9a2e0e212b
 SHA1 (patch-include_sound_uapi_asoc.h) = 5f1da418a2ad4ae066b34c75c9106108711b5d3d
 SHA1 (patch-include_sound_uapi_asound.h) = 051616bbbab3339d20818ddb40cde8502295a026
 SHA1 (patch-include_type__compat.h) = 3cb245d8ea171f987859e1b5a89b0908c2037492
-SHA1 (patch-src_conf.c) = 432e04179798c54a76f5ce072dd9c0b79221df85
+SHA1 (patch-src_conf.c) = 6f8887c2831de6fb2d58b098e6894278ee145560
 SHA1 (patch-src_conf_alsa.conf) = 1a3d2a0ce15b2f903095bc7103c7765fcd6270c0
 SHA1 (patch-src_control_control__hw.c) = 07cfe3abe586b32f6b989403cd162599da07e865
 SHA1 (patch-src_pcm_pcm__mmap.c) = 6d2325ebbc029e0b964f3a2de0516705ca8263e2
 SHA1 (patch-src_seq_seq__midi__event.c) = cf4ff866cf2cff3e78dc589b43840e16a1cf40b1
 SHA1 (patch-src_shmarea.c) = 44e21f48c4cb5d8b82888ea92b7f55b73fcee21a
+SHA1 (patch-src_ucm_main.c) = 1e12f2d8734a98aecd7bbea2d9d80d27d45c1173
 SHA1 (patch-src_ucm_parser.c) = cf53012d24ff7df16800be4b0e6287ae0c3b0799
 SHA1 (patch-src_ucm_ucm__exec.c) = 491ae849901285dd8eb89bfd4cac8b57eb23328b
diff -r abf7693ab070 -r ae2d8874855b audio/alsa-lib/patches/patch-bi
--- a/audio/alsa-lib/patches/patch-bi   Fri Jul 15 21:05:32 2022 +0000
+++ b/audio/alsa-lib/patches/patch-bi   Fri Jul 15 21:17:25 2022 +0000
@@ -1,12 +1,12 @@
-$NetBSD: patch-bi,v 1.2 2016/04/15 08:47:50 wiz Exp $
+$NetBSD: patch-bi,v 1.3 2022/07/15 21:17:25 wiz Exp $
 
 For dlopen(), dlclose()...
 
---- src/pcm/pcm_ladspa.c.orig  2008-12-19 00:06:18.000000000 -0500
-+++ src/pcm/pcm_ladspa.c       2008-12-19 00:06:31.000000000 -0500
-@@ -33,6 +33,7 @@
-  */
+--- src/pcm/pcm_ladspa.c.orig  2022-06-17 09:42:05.000000000 +0000
++++ src/pcm/pcm_ladspa.c
+@@ -34,6 +34,7 @@
    
+ #include "config.h"
  #include <dirent.h>
 +#include <dlfcn.h>
  #include <locale.h>
diff -r abf7693ab070 -r ae2d8874855b audio/alsa-lib/patches/patch-include_sound_type__compat.h
--- a/audio/alsa-lib/patches/patch-include_sound_type__compat.h Fri Jul 15 21:05:32 2022 +0000
+++ b/audio/alsa-lib/patches/patch-include_sound_type__compat.h Fri Jul 15 21:17:25 2022 +0000
@@ -1,17 +1,9 @@
-$NetBSD: patch-include_sound_type__compat.h,v 1.2 2022/03/14 14:08:42 wiz Exp $
+$NetBSD: patch-include_sound_type__compat.h,v 1.3 2022/07/15 21:17:25 wiz Exp $
 
 NetBSD and Solaris support.
 
 --- include/sound/type_compat.h.orig   2020-06-29 10:51:08.000000000 +0000
 +++ include/sound/type_compat.h
-@@ -1,5 +1,5 @@
--#ifndef __TYPE_COMPAT_H
--#define __TYPE_COMPAT_H
-+#ifndef __SOUND_TYPE_COMPAT_H
-+#define __SOUND_TYPE_COMPAT_H
- 
- #ifndef DOC_HIDDEN
- #include <stdint.h>
 @@ -15,7 +15,30 @@ typedef int16_t __s16;
  typedef int32_t __s32;
  typedef int64_t __s64;
@@ -52,9 +44,3 @@
  
  #define __le32_to_cpu __cpu_to_le32
  #define __be32_to_cpu __cpu_to_be32
-@@ -54,4 +79,4 @@ typedef int64_t __s64;
- 
- #endif /* DOC_HIDDEN */
- 
--#endif /* __TYPE_COMPAT_H */
-+#endif /* __SOUND_TYPE_COMPAT_H */
diff -r abf7693ab070 -r ae2d8874855b audio/alsa-lib/patches/patch-src_conf.c
--- a/audio/alsa-lib/patches/patch-src_conf.c   Fri Jul 15 21:05:32 2022 +0000
+++ b/audio/alsa-lib/patches/patch-src_conf.c   Fri Jul 15 21:17:25 2022 +0000
@@ -1,12 +1,12 @@
-$NetBSD: patch-src_conf.c,v 1.5 2016/04/15 08:47:50 wiz Exp $
+$NetBSD: patch-src_conf.c,v 1.6 2022/07/15 21:17:25 wiz Exp $
 
 * SunOS has no dirent d_type
 
---- src/conf.c.orig    2015-11-09 07:39:18.000000000 +0000
+--- src/conf.c.orig    2022-06-17 09:42:05.000000000 +0000
 +++ src/conf.c
-@@ -3419,11 +3419,19 @@ static int snd_config_hooks(snd_config_t
+@@ -4066,11 +4066,19 @@ static int snd_config_hooks(snd_config_t
  
- static int config_filename_filter(const struct dirent *dirent)
+ static int config_filename_filter(const struct dirent64 *dirent)
  {
 +#ifdef __sun
 +      struct stat s;
diff -r abf7693ab070 -r ae2d8874855b audio/alsa-lib/patches/patch-src_ucm_main.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/alsa-lib/patches/patch-src_ucm_main.c       Fri Jul 15 21:17:25 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_ucm_main.c,v 1.1 2022/07/15 21:17:25 wiz Exp $
+
+fstat64 does not exist everywhere, fall back to fstat
+
+--- src/ucm/main.c.orig        2022-06-17 09:42:05.000000000 +0000
++++ src/ucm/main.c
+@@ -176,6 +176,9 @@ static int read_tlv_file(unsigned int **
+               err = -errno;
+               return err;
+       }
++#ifndef fstat64
++#define fstat64 fstat
++#endif
+       if (fstat64(fd, &st) == -1) {
+               err = -errno;
+               goto __fail;



Home | Main Index | Thread Index | Old Index