pkgsrc-Changes archive

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

CVS commit: pkgsrc/audio/alsa-lib



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Jun 28 10:10:50 UTC 2021

Modified Files:
        pkgsrc/audio/alsa-lib: Makefile PLIST distinfo
        pkgsrc/audio/alsa-lib/patches: patch-src_ucm_parser.c
Added Files:
        pkgsrc/audio/alsa-lib/patches: patch-src_ucm_ucm__exec.c

Log Message:
alsa-lib: update to 1.2.5.1.

1.2.5.1

Core

    Release v1.2.5.1
    Fix EXPORT_SYMBOL attribute for clang
    configure: check if eaccess() is available

Control API

    control: remap - fix an infinite recursive call in the async callback
    control: remap - fix uninitialized value in parse_map_vindex()

PCM API

    pcm: direct - remove dead code
    pcm: softvol - fix early exit in add_tlv_info()
    pcm: remove extra NULL checks in snd_pcm_dshare_open()
    pcm: remove extra NULL checks in snd_pcm_dsnoop_open()
    pcm: remove extra NULL checks in snd_pcm_dmix_open()
    pcm: direct - fix pcmp error path in _snd_pcm_direct_new()

Timer API

    timer: remove dead code in _snd_timer_hw_open()

Use Case Manager API

    configure: check if eaccess() is available
    ucm: include sys/wait.h to fix build on Android
    ucm_exec.c: Include limits.h explicitly to fix build on musl
    ucm: compound_merge() - fix use after free (and logic)
    ucm: fix possible memory leak in parse_verb_file()
    ucm: fix out-of-array access in rval_device_lookup_init()
    ucm: check error value in parse_lookup_query()
    ucm: fix possible NULL pointer dereference in uc_mgr_exec()
    ucm: find_exec() - fix memory leak (dir)
    ucm: fix if_eval_path() - access NULL pointer
    ucm: fix use after free in if_eval_regex_match()
    ucm: fix error path in execute_cfgsave()
    ucm: fix _alibpref string (add '.' delimiter to the end)
    ucm: add _alibpref to get the private device prefix

Configuration

    conf: snd_config_get_card() remove unused assignment
    conf: remove dead code in snd_config_get_card()
    conf: fix load_for_all_cards()

1.2.5

Core

    Release v1.2.5
    control: add missing src/conf/ctl/Makefile.am
    ucm: add LibraryConfig support
    control: remap plugin - initial version
    configure: bumb version to 1.2.5pre1 (for CI tests)

Config API

    conf: add snd_config_make_path() function
    conf: add snd_config_is_empty() function
    conf: add snd_config_merge() function
    conf: introduce snd_config_get_card() function

Control API

    control: remap - add no-op when the remapping is not active
    control: remap - don't allow I/O on renamed IDs
    ucm: add LibraryConfig support
    control: add empty plugin
    control: remap plugin - add docs
    control: doc - create controls plugin page
    control: remap plugin - initial version
    control: add _snd_ctl_open_child()
    control: shm - add missing continue to _snd_ctl_shm_open()
    ucm: move __snd_ctl_ascii_elem_id_parse prototype to control_local.h
    control: add __snd_ctl_add_elem_set() helper
    control: add snd_ctl_elem_id_compare_numid() function
    control: rename snd_ctl_elem_id_compare() to snd_ctl_elem_id_compare_set()
    control: fix the subdevice fields comparison in snd_ctl_elem_id_compare()
    control: better docs for snd_ctl_elem_id_compare()
    control: add snd_ctl_elem_id_compare() function
    control: snd_ctl_ascii_elem_id_get() - do not show unset numid
    conf: introduce snd_config_get_card() function
    control: improve snd_ctl_add_*_elem_set functions (access flags)
    control: fix iformation -> information typos

Control Plugin API

    control: remap plugin - add docs
    control: doc - create controls plugin page

HWDEP API

    conf: introduce snd_config_get_card() function

I/O API

    output: Add snd_output_buffer_steal() function

Mixer API

    mixer: simple - Fix "Capture Volume" and "Capture Switch" being seen as global controls
    mixer: simple - use for loop in base_len()
    mixer: simple - Unify simple_none: base_len() exception handling

PCM API

    pcm: hw - correct the comment in snd_pcm_hw_state()
    pcm: hw - fix again snd_pcm_hw_state() when the driver was disconnected
    pcm: hw - fix snd_pcm_hw_state()
    pcm: fix open in direct plugins - wrong pointer assignment
    pcm: direct - move the direct struct init to _snd_pcm_direct_new()
    pcm: dshare - fix shared memory pointer check
    ucm: add LibraryConfig support
    pcm: empty plugin - fix the docs
    pcm: softvol - improve TLV data check for new configs
    pcm: fix snd_pcm_plugin_status()
    conf: introduce snd_config_get_card() function
    pcm: softvol - make snd_pcm_parse_control_id private
    pcm: softvol - do not set TLV access flags for the switch
    pcm: pcm_ioplug - fix the avail_update mmap capture copy issue
    pcm: share: Pass appl_ptr and hw_ptr in snd_pcm_status()
    pcm: null: Pass appl_ptr and hw_ptr in snd_pcm_status()
    pcm: ioplug: Pass appl_ptr and hw_ptr in snd_pcm_status()
    pcm: direct: Fix the missing appl_ptr update
    pcm: dmix/dshare - delay calculation fixes and cleanups
    pcm_plugin: set the initial hw_ptr/appl_ptr from the child pcm
    pcm: rate - fix the capture delay values
    pcm: rate - use pcm_frame_diff() on related places
    pcm: plugin - fix status code for capture
    pcm: rate - use pcm_frame_diff() in snd_pcm_rate_playback_internal_delay()
    pcm: ioplug - fix the delay calculation for old plugins
    pcm: rate - tidy up snd_pcm_rate_avail_update()
    pcm: ioplug - fix the delay calculation in the status callback
    Revert "pcm_plugin: fix delay"
    pcm: plugin - optimize sync in snd_pcm_plugin_status()
    pcm: plugin - tidy snd_pcm_plugin_avail_update()
    pcm: plugin status - revert the recent changes
    pcm: plugin status - fix the return value (regression)
    pcm: fix __snd_pcm_state() return value
    pcm_multi: remove dead assignment from _snd_pcm_multi_open
    pcm: remove dead assignments from snd_pcm_rate_(commit_area|grab_next_period)
    pcm: Fix a typo in SND_PCM_AUDIO_TSTAMP_TYPE_LAST definition
    pcm: Add snd_pcm_audio_tstamp_type_t constants
    pcm: set the snd_pcm_ioplug_status() tstamp field
    pcm: snd_pcm_mmap_readi - fix typo in comment

RawMidi API

    ucm: add LibraryConfig support
    conf: introduce snd_config_get_card() function
    rawmidi: fix memory leak in snd_rawmidi_virtual_open

Sequencer API

    seq: fix snd_seq_parse_address()
    ucm: add LibraryConfig support

Timer API

    timer: fix sizeof operator mismatch in snd_timer_query_hw_open

Topology API

    topology/pcm.c: remove duplicated AC97 hw format
    topology: fix 'parse_tuple_set() - remove dead condition code'
    topology: sort_config() cleanups - use goto for the error path
    topology: parse_tuple_set() - remove dead condition code
    topology: tplg_decode_pcm() - add missing log argument (compress)
    topology: tplg_add_widget_object() - do not use invalid elem_ctl
    topology: tplg_pprint_integer() fix coverity uninitalized variable error
    topology: use inclusive language in documentation
    topology: use inclusive language for fsync
    topology: use inclusive language for bclk

Use Case Manager API

    ucm: compound_merge - use snd_config_merge()
    ucm: recognize first '-' character as ignore error for exec/shell
    ucm: cfg-save - allow to save the sub-tree including root keys
    ucm: libconfig - merge not override items
    ucm: libconfig parser - fix memory leaks
    ucm: add cfg-save command
    ucm: fix memory leak in execute_cset()
    ucm: parse LibraryConfig also in the toplevel file
    ucm: fix regexec() REG_NOMATCH state handling for define regex
    ucm: add exec sequence command
    ucm: Fix sysw sequence command not working when requesting to ignore errors
    ucm: fix the local ucm control device name caching
    ucm: limit the master config scan to conf.virt.d
    ucm: fixed find-device substitution (non-continuous PCM devices)
    ucm: allow to escape the trailing variable substitution character
    ucm: find-device / pcm - the ctl_list may be empty
    ucm: add missing uc_mgr_card_close() call to snd_use_case_mgr_open()
    ucm: cosmetic code reshuffle in rval_lookup_main()
    ucm: fix uc_mgr_has_local_config()
    ucm: rewrite device value only when the local config exists
    ucm: return error if fixedboot_list is empty
    ucm: return error if boot_list is empty
    ucm: ucm_filename() - avoid double //
    ucm: handle better the system() call
    ucm: add LibraryConfig support
    ucm: add ${ConfLibDir} substitution
    ucm: add ctl-remove sequence command to delete controls from UCM
    ucm: add cset-new sequence command to create new controls from UCM
    ucm: move __snd_ctl_ascii_elem_id_parse prototype to control_local.h
    ucm: add Path condition type
    ucm: rename sysset to sysw
    ucm: warn about unknown sequence commands
    ucm: implement sysset sequence command
    ucm: ucm_main.c - cosmetic tab cleanups
    ucm: add _fboot / FixedBootSequence
    ucm: fix two error messages
    ucm: add ${find-card} and ${find-device} substitutions
    ucm: uc_mgr_substitute_tree() fix use after free
    ucm: fix possible memory leak in parse_verb_file()
    ucm: fix bad frees in get_list0 and get_list20

/Makefile.am

    Makefile: Add README.md to EXTRA_DIST

/include/Makefile.am

    include: try to fix the out-of-source-tree build
    include: fix out-of-source-tree build
    include: fix SND_LIB_VER() macro
    include: add SND_LIB_VER() macro
    control: remap plugin - add docs

Configuration

    conf: snd_config_merge() - substitute non-compound config handles
    conf: snd_config_merge() - merge (concat) correctly arrays
    conf: return count of items in snd_config_is_array()
    conf: print quoted string more wisely
    ucm: cfg-save - allow to save the sub-tree including root keys
    conf: fix snd_config_merge() - merge schema
    conf: load the card specific configurations to the config sub-tree
    conf: add snd_config_make_path() function
    conf: add snd_config_is_empty() function
    conf: _snd_config_evaluate - remove 'delete compound members' call
    conf: fix snd_config_substitute() - memory leak
    conf: fix snd_config_merge() - double free in overwrite mode
    alsa: conf - use card number roots for device redirects
    conf: extend load_for_all_cards hook (id/value table)
    control: add missing src/conf/ctl/Makefile.am
    conf: usb - correct 'SB Omni Surround 5.1' iec958 device
    conf: USB - add "Cmedia Audio" to USB-Audio.pcm.iec958_device
    Remove non-existent SPDIF output on Dell AE515
    conf: No SPDIF on Plantronics 3220 headset
    conf: add snd_config_merge() function
    conf: add /var/lib/alsa/conf.d directory lookup
    conf: add /var/lib/alsa/card<NUMBER>.conf.d directory lookups
    conf: extend hook load_for_all_cards
    conf: make ctl.default and sysdefault devices more universal
    conf: Fix invalid free at parse_args()
    conf: fix memory leak on the error path in parse_args()
    conf: snd_config_save() - print arrays as [] not the internal representation
    conf: improve the tabulator level prints
    conf: introduce snd_config_get_card() function
    conf: HDA-Intel: increase the max number of HDMI/DP output to 11
    conf: USB - add "Xonar U7 MKII" to USB-Audio.pcm.iec958_device
    conf: fix return code in _snd_config_load_with_include
    confmisc: fix memory leak in snd_func_concat
    conf: fix get_hexachar() return value
    conf: fix use after free in _snd_config_load_with_include

Documentation

    control: doc - create controls plugin page

Dynamic Loader helpers

    dlmisc: fix snd_plugin_dir locking for not DL_ORIGIN_AVAILABLE
    dlmisc: the snd_plugin_dir_set / snd_plugin_dir must be declared even for \!DL_ORIGIN_AVAILABLE

I/O subsystem

    output: Add snd_output_buffer_steal() function

Kernel Headers

    topology: use inclusive language for fsync
    topology: use inclusive language for bclk

Test/Example code

    test: audio_time - fix timestamp2ns() and usage()
    test/audio_time: Make use of SND_PCM_AUDIO_TSTAMP_TYPE constants

Utils

    utils/alsa.m4: another quick fix for the brackets
    utils/alsa.m4: a quick fix for missing end brackets
    utils/alsa.m4: update for newer autoconf.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/audio/alsa-lib/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/audio/alsa-lib/PLIST
cvs rdiff -u -r1.29 -r1.30 pkgsrc/audio/alsa-lib/distinfo
cvs rdiff -u -r1.8 -r1.9 pkgsrc/audio/alsa-lib/patches/patch-src_ucm_parser.c
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/audio/alsa-lib/patches/patch-src_ucm_ucm__exec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/audio/alsa-lib/Makefile
diff -u pkgsrc/audio/alsa-lib/Makefile:1.23 pkgsrc/audio/alsa-lib/Makefile:1.24
--- pkgsrc/audio/alsa-lib/Makefile:1.23 Wed May 12 14:12:13 2021
+++ pkgsrc/audio/alsa-lib/Makefile      Mon Jun 28 10:10:50 2021
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2021/05/12 14:12:13 ryoon Exp $
+# $NetBSD: Makefile,v 1.24 2021/06/28 10:10:50 wiz Exp $
 
-DISTNAME=      alsa-lib-1.2.4
+DISTNAME=      alsa-lib-1.2.5.1
 CATEGORIES=    audio
 MASTER_SITES=  ftp://ftp.alsa-project.org/pub/lib/
 EXTRACT_SUFX=  .tar.bz2

Index: pkgsrc/audio/alsa-lib/PLIST
diff -u pkgsrc/audio/alsa-lib/PLIST:1.8 pkgsrc/audio/alsa-lib/PLIST:1.9
--- pkgsrc/audio/alsa-lib/PLIST:1.8     Wed May 12 14:12:13 2021
+++ pkgsrc/audio/alsa-lib/PLIST Mon Jun 28 10:10:50 2021
@@ -1,10 +1,11 @@
-@comment $NetBSD: PLIST,v 1.8 2021/05/12 14:12:13 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.9 2021/06/28 10:10:50 wiz Exp $
 bin/aserver
 include/alsa/asoundef.h
 include/alsa/asoundlib.h
 include/alsa/conf.h
 include/alsa/control.h
 include/alsa/control_external.h
+include/alsa/control_plugin.h
 include/alsa/error.h
 include/alsa/global.h
 include/alsa/hwdep.h
@@ -112,6 +113,7 @@ share/alsa/cards/YMF744.conf
 share/alsa/cards/aliases.conf
 share/alsa/cards/pistachio-card.conf
 share/alsa/cards/vc4-hdmi.conf
+share/alsa/ctl/default.conf
 share/alsa/pcm/center_lfe.conf
 share/alsa/pcm/default.conf
 share/alsa/pcm/dmix.conf

Index: pkgsrc/audio/alsa-lib/distinfo
diff -u pkgsrc/audio/alsa-lib/distinfo:1.29 pkgsrc/audio/alsa-lib/distinfo:1.30
--- pkgsrc/audio/alsa-lib/distinfo:1.29 Wed May 12 14:12:13 2021
+++ pkgsrc/audio/alsa-lib/distinfo      Mon Jun 28 10:10:50 2021
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.29 2021/05/12 14:12:13 ryoon Exp $
+$NetBSD: distinfo,v 1.30 2021/06/28 10:10:50 wiz Exp $
 
-SHA1 (alsa-lib-1.2.4.tar.bz2) = 5404393a44906f92ba87189b6fd7fa0c031a037e
-RMD160 (alsa-lib-1.2.4.tar.bz2) = d59abf8ef810f000df484b4e6cd33db54d8f0b45
-SHA512 (alsa-lib-1.2.4.tar.bz2) = 12086952dc8f16f1cb6946517858e17b1c3276aeda9ff5703a84bb38aa78eb4c4e9cb4485c5b3f21f174fdbd976b3bcbbc481e85cb2460652858490df51ae844
-Size (alsa-lib-1.2.4.tar.bz2) = 1044405 bytes
+SHA1 (alsa-lib-1.2.5.1.tar.bz2) = 842612c57e47c36b6f0f9f08de8255f6ba7ba065
+RMD160 (alsa-lib-1.2.5.1.tar.bz2) = bdffee4ce2f51f643a7264d475c1ec1c475ebc8e
+SHA512 (alsa-lib-1.2.5.1.tar.bz2) = 01998ffa449e925ff552c13aea47f9540903afdc533086067c78dcaba4d239c347180d3d28bb0000e6d19b7779c7249fcc77a30057930ca22d18ba55e163fa1c
+Size (alsa-lib-1.2.5.1.tar.bz2) = 1069073 bytes
 SHA1 (patch-ad) = 79a0f048751899247ec12990cd02332b977af248
 SHA1 (patch-ae) = 7ad3a3c3ee4be2c80fa6b0a2ea28563efd399a60
 SHA1 (patch-af) = 257b06f10616c04c2724e30777b027e5e7e443f9
@@ -21,8 +21,8 @@ SHA1 (patch-include_sound_uapi_asound.h)
 SHA1 (patch-include_type__compat.h) = 3cb245d8ea171f987859e1b5a89b0908c2037492
 SHA1 (patch-src_conf.c) = 432e04179798c54a76f5ce072dd9c0b79221df85
 SHA1 (patch-src_control_control__hw.c) = 07cfe3abe586b32f6b989403cd162599da07e865
-SHA1 (patch-src_dlmisc.c) = 65eff0df7e182992868b75784ee07c797b3fbb4d
 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_parser.c) = 57a99eb617eb8e8f290ddd821fe8a4c99506d536
+SHA1 (patch-src_ucm_parser.c) = cf53012d24ff7df16800be4b0e6287ae0c3b0799
+SHA1 (patch-src_ucm_ucm__exec.c) = 491ae849901285dd8eb89bfd4cac8b57eb23328b

Index: pkgsrc/audio/alsa-lib/patches/patch-src_ucm_parser.c
diff -u pkgsrc/audio/alsa-lib/patches/patch-src_ucm_parser.c:1.8 pkgsrc/audio/alsa-lib/patches/patch-src_ucm_parser.c:1.9
--- pkgsrc/audio/alsa-lib/patches/patch-src_ucm_parser.c:1.8    Wed May 12 14:12:13 2021
+++ pkgsrc/audio/alsa-lib/patches/patch-src_ucm_parser.c        Mon Jun 28 10:10:50 2021
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_ucm_parser.c,v 1.8 2021/05/12 14:12:13 ryoon Exp $
+$NetBSD: patch-src_ucm_parser.c,v 1.9 2021/06/28 10:10:50 wiz Exp $
 
 * SunOS has no dirent d_type
 
@@ -18,14 +18,3 @@ $NetBSD: patch-src_ucm_parser.c,v 1.8 20
                if (dirent->d_name[0] == '.') {
                        if (dirent->d_name[1] == '\0')
                                return 0;
-@@ -2316,8 +2322,10 @@ int uc_mgr_scan_master_configs(const cha
- 
-               snprintf(fn, sizeof(fn), "%s.conf", d_name);
-               ucm_filename(filename, sizeof(filename), 2, d_name, fn);
-+#if defined(__linux__)
-               if (eaccess(filename, R_OK))
-                       continue;
-+#endif
- 
-               err = uc_mgr_config_load(2, filename, &cfg);
-               if (err < 0)

Added files:

Index: pkgsrc/audio/alsa-lib/patches/patch-src_ucm_ucm__exec.c
diff -u /dev/null pkgsrc/audio/alsa-lib/patches/patch-src_ucm_ucm__exec.c:1.1
--- /dev/null   Mon Jun 28 10:10:50 2021
+++ pkgsrc/audio/alsa-lib/patches/patch-src_ucm_ucm__exec.c     Mon Jun 28 10:10:50 2021
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_ucm_ucm__exec.c,v 1.1 2021/06/28 10:10:50 wiz Exp $
+
+Add missing header and remove undefined variable.
+
+--- src/ucm/ucm_exec.c.orig    2021-06-14 10:28:44.000000000 +0000
++++ src/ucm/ucm_exec.c
+@@ -32,6 +32,7 @@
+ #include <sys/wait.h>
+ #include <limits.h>
+ #include <dirent.h>
++#include <signal.h>
+ 
+ static pthread_mutex_t fork_lock = PTHREAD_MUTEX_INITIALIZER;
+ 
+@@ -252,7 +253,7 @@ int uc_mgr_exec(const char *prog)
+               signal(SIGINT, SIG_DFL);
+               signal(SIGQUIT, SIG_DFL);
+ 
+-              execve(prog, argv, environ);
++              execve(prog, argv, NULL);
+               exit(1);
+       }
+ 



Home | Main Index | Thread Index | Old Index