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:           Thu Jan  8 09:16:32 UTC 2026

Modified Files:
        pkgsrc/audio/alsa-lib: Makefile distinfo
        pkgsrc/audio/alsa-lib/patches: patch-ad patch-ae patch-aq patch-bg
            patch-bj patch-src_control_control__hw.c patch-src_ucm_main.c

Log Message:
alsa-lib: update to 1.2.15.1.

1.12.5.1

alsa-lib
Core

    Release v1.2.15.1
    ucm: use closefrom instead of close_range

Use Case Manager API

    ucm: exec - fix maxfd used warning
    ucm: use closefrom instead of close_range

Configuration

    conf: cards: unify whitespace - use tabs and remove trailing spaces
    conf: pistachio-card: define pcm configuration block only one time
    conf: YMF744: define pcm configuration block only one time
    conf: VX222,VXPocket: define pcm configuration block only one time
    conf: VIA686A,VIA82xx: define pcm configuration block only one time
    conf: TRID4DWAVENX: define pcm configuration block only one time
    conf: SI7018: define pcm configuration block only one time
    conf: SB-XFi: define pcm configuration block only one time
    conf: RME96[35][26]: define pcm configuration block only one time
    conf: PS3: define pcm configuration block only one time
    conf: PMac,PMacToonie: define pcm configuration block only one time
    conf: PC-Speaker: define pcm configuration block only one time
    conf: NFORCE: define pcm configuration block only one time
    conf: Maestro3: define pcm configuration block only one time
    conf: Loopback: define pcm configuration block only one time
    conf: ICH,ICH4,ICH-MODEM: define pcm configuration block only one time
    conf: ICE17[12][24]: define pcm configuration block only one time
    conf: HdmiLpeAudio: define pcm configuration block only one time
    conf: GUS: define pcm configuration block only one time
    conf: FWSpeakers: define pcm configuration block only one time
    conf: FM801: define pcm configuration block only one time
    conf: FireWave: define pcm configuration block only one time
    conf: ES1968: define pcm configuration block only one time
    conf: ENS137[01]: define pcm configuration block only one time
    conf: EMU10K1X: define pcm configuration block only one time
    conf: EMU10K1: define pcm configuration block only one time
    conf: Aureon51: define pcm configuration block only one time
    conf: Echo3G: define pcm configuration block only one time
    conf: CS46xx: define pcm configuration block only one time
    conf: CMI8xxx: define pcm configuration block only one time
    conf: CA0106: define pcm configuration block only one time
    conf: AU88[123]0: define pcm configuration block only one time
    conf: Aureon: define pcm configuration block only one time
    conf: Audigy: define pcm configuration block only one time
    conf: AACI,ATIIXP: define pcm configuration block only one time
    conf: vc4-hdmi: define pcm configuration block only one time
    conf: HDA-Intel: define pcm configuration block only one time
    conf: USB-Audio: define pcm configuration block only one time
    Revert "conf: fix load_for_all_cards() - do not merge the card specific contents"
    conf: fix possible memory leak in config_file_open() - error path
    conf: merge card specific contents per file (whole) after parsing

1.12.5

alsa-lib
Core

    Release v1.2.15
    include: fix typo in error.h to avoid compile error when gcc <= 2.95
    include: list.h - add list_splice() and list_splice_init() functions
    github: add coverity.yml
    doxygen: fix warnings and add missing ALSA_LIBRARY_BUILD define
    error: add missing log_priority/interface functions to header file
    configure: bumb version to 1.2.13pre1 (for alsa-utils)
    include: remove local SNDMSG/SYSMSG defines (no longer used)
    huge correction of tabulators and whitespaces
    log: implement filter based on string configuration (env LIBASOUND_DEBUG).
    error: add priority and interface strings to the log messages
    redesign the message log functions
    error: do not export internal snd_err_msg variable
    github: fix Fedora workflow (awk package dependency)

Config API

    doxygen: fix warnings and add missing ALSA_LIBRARY_BUILD define
    huge correction of tabulators and whitespaces

Control API

    coverity.com fixes - initial round
    snd_tlv_convert_to_dB: Fix mute handling for MINMAX_MUTE type
    doxygen: fix warnings and add missing ALSA_LIBRARY_BUILD define
    huge correction of tabulators and whitespaces
    redesign the message log functions

HWDEP API

    doxygen: fix warnings and add missing ALSA_LIBRARY_BUILD define

Mixer API

    mixer: abst - reshuffle snd_mixer_simple_basic_register code to be more logical
    doxygen: fix warnings and add missing ALSA_LIBRARY_BUILD define
    huge correction of tabulators and whitespaces
    mixer: bag - fix bag_del_all implementation (missing free)

Mixer Abstraction API

    huge correction of tabulators and whitespaces

PCM API

    pcm: plugin - avoid 32-bit to 64-bit return value conversions
    add missing return value changes for snd_config_get_string() calls
    add missing return value changes for snd_config_get_id() calls
    doxygen: fix warnings and add missing ALSA_LIBRARY_BUILD define
    pcm route: suppress false positive warning for gcc 8+
    pcm: add a loop to snd_pcm_avail_delay() to avoid bogus delay values

Rawmidi API

    rawmidi: Fix SNDRV_RAWMIDI_INFO_STREAM_INACTIVE duplicate definition
    rawmidi: Fix the prefix of the inactive stream flag

Sequencer API

    seq: fix snd_seq_drain_output return value for partial drain
    seq: hw - notify if running mode / pversion ioctl fails

Topology API

    add missing return value changes for snd_config_get_id() calls
    topology: fix nibble warning in tplg_save_quoted()

Use Case Manager API

    ucm: add ValueGlobals section to the top configuration file
    ucm: fix the DefineRegex issue where multiple variables were set to empty string
    ucm: Include directive - add optional behaviour
    ucm: complete dependency graphs for conflicting/supported device lists
    ucm: implement DeviceVariant configuration extension
    ucm: implement ValueDefaults.BootCardGroup and define use
    ucm: keep original device name for logs
    ucm: sort devices by priority
    ucm: doc - add examples for device name with descriptors (colon)
    ucm: be more restrictive for device name with descriptor
    ucm: strip device index when the device type is present only one time
    ucm: add support for device names with colon (':')
    ucm: normalize device names
    ucm: add possibility to inline Verb configurations to the main configuration file
    ucm: add Prepend and Append block handling for If conditions (syntax 8+)
    add missing return value changes for snd_config_get_string() calls
    ucm: add missing stdbool.h include to ucm_local.h
    ucm: fix variant issue where variables or macros are overwritten
    ucm: remove 'error: ' prefix from error messages (duplication)
    ucm: remove uc_dbg macro and callers
    ucm: replace uc_error with snd_error calls
    ucm: add a basic set of trace/debug log calls
    ucm: use close_range on _GNU_SOURCE
    Force to use alphasort64() sorting function for Harmony OS
    ucm: regex: fix the error message (missing argument)
    Revert "ucm: do not bump syntax version to 8"

ALSA Server

    coverity.com fixes - initial round
    huge correction of tabulators and whitespaces
    replace SNDMSG,SYSMSG,SNDERR,SYSERR with new log macros

Async helpers

    coverity.com fixes - initial round
    replace SNDMSG,SYSMSG,SNDERR,SYSERR with new log macros

Configuration

    coverity.com fixes - initial round
    add missing return value changes for snd_config_get_string() calls
    add missing return value changes for snd_config_get_id() calls
    conf/pistachio: fix syntax
    config: do not print errno in snd_config_check_hop()
    redesign the message log functions
    conf: fix load_for_all_cards() - do not merge the card specific contents
    conf: fix parse_array_def - merge arrays
    conf: Revert "conf: fix load_for_all_cards()"
    conf: fix parse_array_def override code path
    Force to use alphasort64() sorting function for Harmony OS
    conf: aliases: add hda-acpi -> HDA-Intel alias

Documentation

    doc: add missing include pcm_plugin.h to source files
    doxygen: fix warnings and add missing ALSA_LIBRARY_BUILD define

Error handler

    coverity.com fixes - initial round
    error: make prio/interface output a bit shorter in default log handler
    log: implement filter based on string configuration (env LIBASOUND_DEBUG).
    error: add priority and interface strings to the log messages
    redesign the message log functions
    error: do not export internal snd_err_msg variable

Simple Abstraction Mixer Modules

    replace SNDMSG,SYSMSG,SNDERR,SYSERR with new log macros

Test/Example code

    test: ucm - remove old syntax configuration files (incomplete anyway)
    test: update midifile library to ANSI C


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 pkgsrc/audio/alsa-lib/Makefile
cvs rdiff -u -r1.46 -r1.47 pkgsrc/audio/alsa-lib/distinfo
cvs rdiff -u -r1.10 -r1.11 pkgsrc/audio/alsa-lib/patches/patch-ad
cvs rdiff -u -r1.12 -r1.13 pkgsrc/audio/alsa-lib/patches/patch-ae
cvs rdiff -u -r1.5 -r1.6 pkgsrc/audio/alsa-lib/patches/patch-aq
cvs rdiff -u -r1.3 -r1.4 pkgsrc/audio/alsa-lib/patches/patch-bg \
    pkgsrc/audio/alsa-lib/patches/patch-src_ucm_main.c
cvs rdiff -u -r1.2 -r1.3 pkgsrc/audio/alsa-lib/patches/patch-bj
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/audio/alsa-lib/patches/patch-src_control_control__hw.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.36 pkgsrc/audio/alsa-lib/Makefile:1.37
--- pkgsrc/audio/alsa-lib/Makefile:1.36 Mon Apr 28 11:05:35 2025
+++ pkgsrc/audio/alsa-lib/Makefile      Thu Jan  8 09:16:32 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.36 2025/04/28 11:05:35 wiz Exp $
+# $NetBSD: Makefile,v 1.37 2026/01/08 09:16:32 wiz Exp $
 
-DISTNAME=      alsa-lib-1.2.14
+DISTNAME=      alsa-lib-1.2.15.1
 CATEGORIES=    audio
 MASTER_SITES=  ftp://ftp.alsa-project.org/pub/lib/
 EXTRACT_SUFX=  .tar.bz2

Index: pkgsrc/audio/alsa-lib/distinfo
diff -u pkgsrc/audio/alsa-lib/distinfo:1.46 pkgsrc/audio/alsa-lib/distinfo:1.47
--- pkgsrc/audio/alsa-lib/distinfo:1.46 Thu Jul 10 14:41:01 2025
+++ pkgsrc/audio/alsa-lib/distinfo      Thu Jan  8 09:16:32 2026
@@ -1,26 +1,26 @@
-$NetBSD: distinfo,v 1.46 2025/07/10 14:41:01 jperkin Exp $
+$NetBSD: distinfo,v 1.47 2026/01/08 09:16:32 wiz Exp $
 
-BLAKE2s (alsa-lib-1.2.14.tar.bz2) = 04fdbd69e52b2eb53e60ca9f07be3fb0d42d328d4a587d21066cf3ebc9c1958a
-SHA512 (alsa-lib-1.2.14.tar.bz2) = 2716cc3a2299da4a1a170d734af082d78dc452b253179d0f1a9ec190140734aecf002b6924eec4ff2699ce88ce1ae5c56821c267f36384910984db726d1f9626
-Size (alsa-lib-1.2.14.tar.bz2) = 1115517 bytes
-SHA1 (patch-ad) = 7ab8f4225920bb54ddd16fba9dfa7c481c2a81d0
-SHA1 (patch-ae) = f7a0b5b287c93f3dfcd2b47d4880872ae6f0e9a6
+BLAKE2s (alsa-lib-1.2.15.1.tar.bz2) = 2902f8d6944f12b3bf5ef3390efe2bd03ed3c37731f136e324f4265ee1d5223a
+SHA512 (alsa-lib-1.2.15.1.tar.bz2) = 36d79055537cf516dd435db56559ee59f3efbbea72ae0dbe5244191cfba4e181ed13100d908eb51bfd3a3be70aa87081df9b56921e7d24c3b3728e4374507236
+Size (alsa-lib-1.2.15.1.tar.bz2) = 1125631 bytes
+SHA1 (patch-ad) = efddfa1c7dc4d09f840443417d2a27c93d2275c9
+SHA1 (patch-ae) = 57f6f38f9cf831cfad78c6090504291775338fe7
 SHA1 (patch-af) = 257b06f10616c04c2724e30777b027e5e7e443f9
 SHA1 (patch-ah) = 37079a0b99fba9bd16b2318c9a17359d9c4edb54
-SHA1 (patch-aq) = 29fc896b2acad44e5fa9619aca1df5dddd76fa5e
-SHA1 (patch-bg) = b726769272dd214e67f2407ed5a0199189540557
+SHA1 (patch-aq) = e03afa5a420139d0b3e9bbf8eb228f8e4e3f69a1
+SHA1 (patch-bg) = d1380d5789e7645ac5030d549f96e5b627bfe78e
 SHA1 (patch-bi) = 4c60911fe949b858abca9ebecdefc794b008b1c6
-SHA1 (patch-bj) = 59f94d9b54386aa7d1a7edd7ec329211184a8c94
+SHA1 (patch-bj) = 8f569a234916522a1629c262e7225c2e062574d4
 SHA1 (patch-configure.ac) = bdeaecdd1f0f603b9ace14d8fff5d57cb0339887
 SHA1 (patch-include_error.h) = 9e92d4a51badda1d46305d1e5e36b8197788aa89
 SHA1 (patch-include_output.h) = 0a073b53c40293aa7cfa250586c087084002eefe
 SHA1 (patch-include_sound_uapi_asound.h) = 8596b866ac1392530d21bb52b890a6f34dce7749
 SHA1 (patch-src_conf.c) = 6f8887c2831de6fb2d58b098e6894278ee145560
 SHA1 (patch-src_conf_alsa.conf) = 1a3d2a0ce15b2f903095bc7103c7765fcd6270c0
-SHA1 (patch-src_control_control__hw.c) = 07cfe3abe586b32f6b989403cd162599da07e865
+SHA1 (patch-src_control_control__hw.c) = 044dd8ed42372a2e2b2c6e6ee0127c2997141a61
 SHA1 (patch-src_pcm_pcm__mmap.c) = bf5b59af96110bf8f51269b86bcf60ec0e23a06e
 SHA1 (patch-src_seq_seq__midi__event.c) = c5a673a14c23aeefc512f04ac550b906fa4f7d30
 SHA1 (patch-src_shmarea.c) = 1a3b508fafe3ef7fda76620ed1c06035f32e9096
-SHA1 (patch-src_ucm_main.c) = 3bcf60e49bf34059cb5d2eb7aca7e5354bd0e304
+SHA1 (patch-src_ucm_main.c) = afda7909da31522d0b70eb88b645a4b5fb242d3a
 SHA1 (patch-src_ucm_parser.c) = cf53012d24ff7df16800be4b0e6287ae0c3b0799
 SHA1 (patch-src_ucm_ucm__exec.c) = 93380f00497c0f645d4bc5375b66f9f05b4934f1

Index: pkgsrc/audio/alsa-lib/patches/patch-ad
diff -u pkgsrc/audio/alsa-lib/patches/patch-ad:1.10 pkgsrc/audio/alsa-lib/patches/patch-ad:1.11
--- pkgsrc/audio/alsa-lib/patches/patch-ad:1.10 Mon Apr 28 11:05:35 2025
+++ pkgsrc/audio/alsa-lib/patches/patch-ad      Thu Jan  8 09:16:32 2026
@@ -1,29 +1,27 @@
-$NetBSD: patch-ad,v 1.10 2025/04/28 11:05:35 wiz Exp $
+$NetBSD: patch-ad,v 1.11 2026/01/08 09:16:32 wiz Exp $
 
 SunOS needs alloca.h.
 
---- include/global.h.orig      2025-04-14 16:42:04.000000000 +0000
+--- include/global.h.orig      2025-12-19 10:31:58.000000000 +0000
 +++ include/global.h
-@@ -30,7 +30,6 @@
+@@ -30,12 +30,19 @@
  #warning "use #include <alsa/asoundlib.h>, <alsa/global.h> should not be used directly"
  #include <alsa/asoundlib.h>
  #endif
 -
  #ifndef __ALSA_GLOBAL_H_
- #define __ALSA_GLOBAL_H_
+ #define __ALSA_GLOBAL_H_ /**< header include loop protection */
  
-@@ -38,6 +37,14 @@
+ #ifdef __cplusplus
  extern "C" {
- #endif
- 
++#endif
++
 +#if defined(__FreeBSD__)
 +#include <sys/timespec.h>
 +#endif
 +
 +#ifdef __sun
 +#include <alloca.h>
-+#endif
-+
+ #endif
+ 
  /**
-  *  \defgroup Global Global defines and functions
-  *  Global defines and functions.

Index: pkgsrc/audio/alsa-lib/patches/patch-ae
diff -u pkgsrc/audio/alsa-lib/patches/patch-ae:1.12 pkgsrc/audio/alsa-lib/patches/patch-ae:1.13
--- pkgsrc/audio/alsa-lib/patches/patch-ae:1.12 Wed Feb 21 08:58:00 2024
+++ pkgsrc/audio/alsa-lib/patches/patch-ae      Thu Jan  8 09:16:32 2026
@@ -1,11 +1,11 @@
-$NetBSD: patch-ae,v 1.12 2024/02/21 08:58:00 wiz Exp $
+$NetBSD: patch-ae,v 1.13 2026/01/08 09:16:32 wiz Exp $
 
  - Don't assert GNU ld on Solaris, where it might not be true.
  - Add endian compat.
 
---- include/local.h.orig       2024-01-29 16:16:07.000000000 +0000
+--- include/local.h.orig       2025-12-19 10:31:58.000000000 +0000
 +++ include/local.h
-@@ -34,6 +34,15 @@
+@@ -37,7 +37,16 @@
  #include <endian.h>
  #elif defined(HAVE_SYS_ENDIAN_H)
  #include <sys/endian.h>
@@ -15,13 +15,14 @@ $NetBSD: patch-ae,v 1.12 2024/02/21 08:5
 +#define __BIG_ENDIAN 4321
 +#ifdef _BIG_ENDIAN
 +#define __BYTE_ORDER __BIG_ENDIAN
-+#else
+ #else
 +#define __BYTE_ORDER __LITTLE_ENDIAN
 +#endif
- #else
++#else
  #error Header defining endianness not defined
  #endif
-@@ -279,7 +288,9 @@ extern snd_lib_error_handler_t snd_err_m
+ #ifndef __BYTE_ORDER
+@@ -280,7 +289,9 @@ size_t snd_strlcat(char *dst, const char *src, size_t 
  
  /*
   */

Index: pkgsrc/audio/alsa-lib/patches/patch-aq
diff -u pkgsrc/audio/alsa-lib/patches/patch-aq:1.5 pkgsrc/audio/alsa-lib/patches/patch-aq:1.6
--- pkgsrc/audio/alsa-lib/patches/patch-aq:1.5  Wed May 12 14:12:13 2021
+++ pkgsrc/audio/alsa-lib/patches/patch-aq      Thu Jan  8 09:16:32 2026
@@ -1,8 +1,8 @@
-$NetBSD: patch-aq,v 1.5 2021/05/12 14:12:13 ryoon Exp $
+$NetBSD: patch-aq,v 1.6 2026/01/08 09:16:32 wiz Exp $
 
---- src/pcm/pcm_hw.c.orig      2020-06-29 10:51:08.000000000 +0000
+--- src/pcm/pcm_hw.c.orig      2025-12-19 10:31:58.000000000 +0000
 +++ src/pcm/pcm_hw.c
-@@ -278,10 +278,11 @@ static int snd_pcm_hw_nonblock(snd_pcm_t
+@@ -285,10 +285,11 @@ static int snd_pcm_hw_async(snd_pcm_t *pcm, int sig, p
  
  static int snd_pcm_hw_async(snd_pcm_t *pcm, int sig, pid_t pid)
  {
@@ -14,9 +14,9 @@ $NetBSD: patch-aq,v 1.5 2021/05/12 14:12
 +      long flags;
        if ((flags = fcntl(fd, F_GETFL)) < 0) {
                err = -errno;
-               SYSMSG("F_GETFL failed (%i)", err);
-@@ -296,13 +297,16 @@ static int snd_pcm_hw_async(snd_pcm_t *p
-               SYSMSG("F_SETFL for O_ASYNC failed (%i)", err);
+               snd_checknum(PCM, "F_GETFL failed (%i)", err);
+@@ -303,13 +304,16 @@ static int snd_pcm_hw_async(snd_pcm_t *pcm, int sig, p
+               snd_checknum(PCM, "F_SETFL for O_ASYNC failed (%i)", err);
                return err;
        }
 +#endif
@@ -25,14 +25,14 @@ $NetBSD: patch-aq,v 1.5 2021/05/12 14:12
 +#ifndef __sun
        if (fcntl(fd, F_SETSIG, (long)sig) < 0) {
                err = -errno;
-               SYSMSG("F_SETSIG failed (%i)", err);
+               snd_checknum(PCM, "F_SETSIG failed (%i)", err);
                return err;
        }
 +#endif
        if (fcntl(fd, F_SETOWN, (long)pid) < 0) {
                err = -errno;
-               SYSMSG("F_SETOWN failed (%i)", err);
-@@ -1555,8 +1559,10 @@ int snd_pcm_hw_open_fd(snd_pcm_t **pcmp,
+               snd_checknum(PCM, "F_SETOWN failed (%i)", err);
+@@ -1645,8 +1649,10 @@ int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *n
        mode = 0;
        if (fmode & O_NONBLOCK)
                mode |= SND_PCM_NONBLOCK;
@@ -43,7 +43,7 @@ $NetBSD: patch-aq,v 1.5 2021/05/12 14:12
        if (fmode & O_APPEND)
                mode |= SND_PCM_APPEND;
  
-@@ -1705,8 +1711,10 @@ int snd_pcm_hw_open(snd_pcm_t **pcmp, co
+@@ -1797,8 +1803,10 @@ int snd_pcm_hw_open(snd_pcm_t **pcmp, const char *name
        fmode = O_RDWR;
        if (mode & SND_PCM_NONBLOCK)
                fmode |= O_NONBLOCK;

Index: pkgsrc/audio/alsa-lib/patches/patch-bg
diff -u pkgsrc/audio/alsa-lib/patches/patch-bg:1.3 pkgsrc/audio/alsa-lib/patches/patch-bg:1.4
--- pkgsrc/audio/alsa-lib/patches/patch-bg:1.3  Fri Apr 15 08:47:50 2016
+++ pkgsrc/audio/alsa-lib/patches/patch-bg      Thu Jan  8 09:16:32 2026
@@ -1,8 +1,8 @@
-$NetBSD: patch-bg,v 1.3 2016/04/15 08:47:50 wiz Exp $
+$NetBSD: patch-bg,v 1.4 2026/01/08 09:16:32 wiz Exp $
 
---- src/timer/timer_hw.c.orig  2016-03-07 10:09:24.000000000 +0000
+--- src/timer/timer_hw.c.orig  2025-12-19 10:31:58.000000000 +0000
 +++ src/timer/timer_hw.c
-@@ -66,11 +66,14 @@ static int snd_timer_hw_nonblock(snd_tim
+@@ -66,11 +66,14 @@ static int snd_timer_hw_async(snd_timer_t *timer, int 
  
  static int snd_timer_hw_async(snd_timer_t *timer, int sig, pid_t pid)
  {
@@ -15,10 +15,10 @@ $NetBSD: patch-bg,v 1.3 2016/04/15 08:47
        fd = timer->poll_fd;
 +#ifndef __sun
        if ((flags = fcntl(fd, F_GETFL)) < 0) {
-               SYSERR("F_GETFL failed");
+               snd_errornum(TIMER, "F_GETFL failed");
                return -errno;
-@@ -83,13 +86,21 @@ static int snd_timer_hw_async(snd_timer_
-               SYSERR("F_SETFL for O_ASYNC failed");
+@@ -83,13 +86,21 @@ static int snd_timer_hw_async(snd_timer_t *timer, int 
+               snd_errornum(TIMER, "F_SETFL for O_ASYNC failed");
                return -errno;
        }
 +#endif
@@ -27,16 +27,15 @@ $NetBSD: patch-bg,v 1.3 2016/04/15 08:47
 +#ifndef __sun
  #ifdef F_SETSIG
        if (fcntl(fd, F_SETSIG, (long)sig) < 0) {
-               SYSERR("F_SETSIG failed");
+               snd_errornum(TIMER, "F_SETSIG failed");
                return -errno;
--      }
-+       }
+       }
 +#else
-+       if (fcntl(fd, F_SETFL, O_ASYNC) < 0) {
-+               SYSERR("F_SETFL failed");
-+               return -errno;
-+       }
++      if (fcntl(fd, F_SETFL, O_ASYNC) < 0) {
++              SYSERR("F_SETFL failed");
++              return -errno;
++      }
 +#endif
  #endif
        if (fcntl(fd, F_SETOWN, (long)pid) < 0) {
-               SYSERR("F_SETOWN failed");
+               snd_errornum(TIMER, "F_SETOWN failed");
Index: pkgsrc/audio/alsa-lib/patches/patch-src_ucm_main.c
diff -u pkgsrc/audio/alsa-lib/patches/patch-src_ucm_main.c:1.3 pkgsrc/audio/alsa-lib/patches/patch-src_ucm_main.c:1.4
--- pkgsrc/audio/alsa-lib/patches/patch-src_ucm_main.c:1.3      Thu Jul 10 14:41:01 2025
+++ pkgsrc/audio/alsa-lib/patches/patch-src_ucm_main.c  Thu Jan  8 09:16:32 2026
@@ -1,12 +1,23 @@
-$NetBSD: patch-src_ucm_main.c,v 1.3 2025/07/10 14:41:01 jperkin Exp $
+$NetBSD: patch-src_ucm_main.c,v 1.4 2026/01/08 09:16:32 wiz Exp $
 
 fstat64 does not exist everywhere, fall back to fstat
 
---- src/ucm/main.c.orig        2025-04-14 16:42:04.000000000 +0000
+--- src/ucm/main.c.orig        2025-12-19 10:31:58.000000000 +0000
 +++ src/ucm/main.c
-@@ -176,6 +176,9 @@ static int read_tlv_file(unsigned int **
+@@ -40,6 +40,10 @@
+ #include <sys/wait.h>
+ #include <limits.h>
+ 
++#ifndef CLOCK_MONOTONIC_RAW
++#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
++#endif
++
+ /*
+  * misc
+  */
+@@ -176,6 +180,9 @@ static int read_tlv_file(unsigned int **res,
                err = -errno;
-               return err;
+               goto __fail;
        }
 +#if !defined(fstat64) && !defined(__linux__) && !defined(__illumos__)
 +#define fstat64 fstat

Index: pkgsrc/audio/alsa-lib/patches/patch-bj
diff -u pkgsrc/audio/alsa-lib/patches/patch-bj:1.2 pkgsrc/audio/alsa-lib/patches/patch-bj:1.3
--- pkgsrc/audio/alsa-lib/patches/patch-bj:1.2  Thu Nov 23 16:15:04 2023
+++ pkgsrc/audio/alsa-lib/patches/patch-bj      Thu Jan  8 09:16:32 2026
@@ -1,17 +1,17 @@
-$NetBSD: patch-bj,v 1.2 2023/11/23 16:15:04 ryoon Exp $
+$NetBSD: patch-bj,v 1.3 2026/01/08 09:16:32 wiz Exp $
 
---- src/pcm/pcm_direct.c.orig  2023-05-04 07:16:16.000000000 +0000
+--- src/pcm/pcm_direct.c.orig  2025-12-19 10:31:58.000000000 +0000
 +++ src/pcm/pcm_direct.c
-@@ -45,7 +45,7 @@
+@@ -46,7 +46,7 @@
   */
-  
+ 
  #if !defined(__OpenBSD__) && !defined(__DragonFly__) && !defined(__ANDROID__)
 -union semun {
 +union semun_l {
        int              val;    /* Value for SETVAL */
        struct semid_ds *buf;    /* Buffer for IPC_STAT, IPC_SET */
        unsigned short  *array;  /* Array for GETALL, SETALL */
-@@ -62,7 +62,7 @@ union semun {
+@@ -63,7 +63,7 @@ int snd_pcm_direct_semaphore_create_or_connect(snd_pcm
  
  int snd_pcm_direct_semaphore_create_or_connect(snd_pcm_direct_t *dmix)
  {

Index: pkgsrc/audio/alsa-lib/patches/patch-src_control_control__hw.c
diff -u pkgsrc/audio/alsa-lib/patches/patch-src_control_control__hw.c:1.1 pkgsrc/audio/alsa-lib/patches/patch-src_control_control__hw.c:1.2
--- pkgsrc/audio/alsa-lib/patches/patch-src_control_control__hw.c:1.1   Wed Feb 15 19:43:51 2012
+++ pkgsrc/audio/alsa-lib/patches/patch-src_control_control__hw.c       Thu Jan  8 09:16:32 2026
@@ -1,8 +1,8 @@
-$NetBSD: patch-src_control_control__hw.c,v 1.1 2012/02/15 19:43:51 hans Exp $
+$NetBSD: patch-src_control_control__hw.c,v 1.2 2026/01/08 09:16:32 wiz Exp $
 
---- src/control/control_hw.c.orig      2009-12-16 16:18:51.000000000 +0100
-+++ src/control/control_hw.c   2012-01-15 01:48:06.780384687 +0100
-@@ -80,10 +80,11 @@ static int snd_ctl_hw_nonblock(snd_ctl_t
+--- src/control/control_hw.c.orig      2025-12-19 10:31:58.000000000 +0000
++++ src/control/control_hw.c
+@@ -87,10 +87,11 @@ static int snd_ctl_hw_async(snd_ctl_t *ctl, int sig, p
  
  static int snd_ctl_hw_async(snd_ctl_t *ctl, int sig, pid_t pid)
  {
@@ -13,10 +13,10 @@ $NetBSD: patch-src_control_control__hw.c
 +#ifndef __sun
 +      long flags;
        if ((flags = fcntl(fd, F_GETFL)) < 0) {
-               SYSERR("F_GETFL failed");
+               snd_errornum(CONTROL, "F_GETFL failed");
                return -errno;
-@@ -96,12 +97,15 @@ static int snd_ctl_hw_async(snd_ctl_t *c
-               SYSERR("F_SETFL for O_ASYNC failed");
+@@ -103,12 +104,15 @@ static int snd_ctl_hw_async(snd_ctl_t *ctl, int sig, p
+               snd_errornum(CONTROL, "F_SETFL for O_ASYNC failed");
                return -errno;
        }
 +#endif
@@ -24,14 +24,14 @@ $NetBSD: patch-src_control_control__hw.c
                return 0;
 +#ifndef __sun
        if (fcntl(fd, F_SETSIG, (long)sig) < 0) {
-               SYSERR("F_SETSIG failed");
+               snd_errornum(CONTROL, "F_SETSIG failed");
                return -errno;
        }
 +#endif
        if (fcntl(fd, F_SETOWN, (long)pid) < 0) {
-               SYSERR("F_SETOWN failed");
+               snd_errornum(CONTROL, "F_SETOWN failed");
                return -errno;
-@@ -383,8 +387,10 @@ int snd_ctl_hw_open(snd_ctl_t **handle, 
+@@ -448,8 +452,10 @@ int snd_ctl_hw_open(snd_ctl_t **handle, const char *na
                fmode = O_RDWR;
        if (mode & SND_CTL_NONBLOCK)
                fmode |= O_NONBLOCK;



Home | Main Index | Thread Index | Old Index