head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.2 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.3.0.78 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.76 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.74 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.72 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.70 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.68 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.66 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.64 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.62 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.60 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.58 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.56 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.54 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.52 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.50 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.48 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.46 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.44 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.42 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.40 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.38 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.36 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.32 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.12 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.34 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.30 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.28 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.26 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.24 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.22 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.20 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.18 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.16 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.14 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.10 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.8 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.6 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.4 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.2 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.2.0.34 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.32 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.30 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.28 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.26 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.24 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.22 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.20 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.18 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.16 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.14 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.12 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.10 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.8 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.6 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.4 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.2 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.1.1.1.0.26 pkgsrc-2011Q4-base:1.1.1.1 pkgsrc-2011Q3:1.1.1.1.0.24 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-2011Q2:1.1.1.1.0.22 pkgsrc-2011Q2-base:1.1.1.1 pkgsrc-2011Q1:1.1.1.1.0.20 pkgsrc-2011Q1-base:1.1.1.1 pkgsrc-2010Q4:1.1.1.1.0.18 pkgsrc-2010Q4-base:1.1.1.1 pkgsrc-2010Q3:1.1.1.1.0.16 pkgsrc-2010Q3-base:1.1.1.1 pkgsrc-2010Q2:1.1.1.1.0.14 pkgsrc-2010Q2-base:1.1.1.1 pkgsrc-2010Q1:1.1.1.1.0.12 pkgsrc-2010Q1-base:1.1.1.1 pkgsrc-2009Q4:1.1.1.1.0.10 pkgsrc-2009Q4-base:1.1.1.1 pkgsrc-2009Q3:1.1.1.1.0.8 pkgsrc-2009Q3-base:1.1.1.1 pkgsrc-2009Q2:1.1.1.1.0.6 pkgsrc-2009Q2-base:1.1.1.1 pkgsrc-2009Q1:1.1.1.1.0.4 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-2008Q4:1.1.1.1.0.2 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2026.01.08.09.16.32; author wiz; state Exp; branches; next 1.3; commitid QDQC7BTvrx1aozpG; 1.3 date 2016.04.15.08.47.50; author wiz; state Exp; branches; next 1.2; commitid 0BzBLNGSehu0vH2z; 1.2 date 2012.02.15.19.43.51; author hans; state Exp; branches; next 1.1; 1.1 date 2008.12.19.03.33.00; author jmcneill; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.12.19.03.33.00; author jmcneill; state Exp; branches; next ; desc @@ 1.4 log @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 @ text @$NetBSD: patch-bg,v 1.3 2016/04/15 08:47:50 wiz Exp $ --- 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_async(snd_timer_t *timer, int static int snd_timer_hw_async(snd_timer_t *timer, int sig, pid_t pid) { +#ifndef __sun long flags; +#endif int fd; assert(timer); fd = timer->poll_fd; +#ifndef __sun if ((flags = fcntl(fd, F_GETFL)) < 0) { snd_errornum(TIMER, "F_GETFL failed"); return -errno; @@@@ -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 if (sig < 0) return 0; +#ifndef __sun #ifdef F_SETSIG if (fcntl(fd, F_SETSIG, (long)sig) < 0) { snd_errornum(TIMER, "F_SETSIG failed"); return -errno; } +#else + if (fcntl(fd, F_SETFL, O_ASYNC) < 0) { + SYSERR("F_SETFL failed"); + return -errno; + } +#endif #endif if (fcntl(fd, F_SETOWN, (long)pid) < 0) { snd_errornum(TIMER, "F_SETOWN failed"); @ 1.3 log @Update alsa-lib to 1.1.1. I got many patches integrated upstream, still more to go. Core Release v1.1.1 Define some types if missing Define EBADFD in terms of EBADF if it doesn't exist. Control API control: keep consistent usage of assertion control: initialize element channel values according to identification number at adding a new element control: fulfill a description about element type with integer64 coverity fixes control: add missing asserts to ctl_elem_set functions PCM API pcm: fix 'unable to create IPC shm instance' caused by fork from a thread Introduce bswap.h for portable definitions of byte swap macros. coverity fixes pcm_hw: fix possible memory leak (coverity) pcm: simple: Fix asserts Sequencer API seq: Provide sequencer sound card number / PID via alsa-lib Timer API Only use F_SETSIG fcntl where it exists. Topology API topology: Add support for widget byte controls topology: add support for CTL access flags to config file topology: add support for pasring external ops in conf files topology: Add ops to bytes control. topology: Remove unnecessary includes topology: fix debug output to print correct "max" value. topology: Quit and show error message on big-endian machines topology: Not compare a for loop iterator with ABI __le32 variables topology: Fix comparison of unsigned expression < 0 topology: Remove unused variables topology: Remove unused function write_data_block() topology: open topology files with O_TRUNC topology: Add missing include sys/stat.h Use Case Manager API Use alphasort where versionsort is not available. /include/Makefile.am Introduce bswap.h for portable definitions of byte swap macros. Define some types if missing ALSA Server coverity fixes Compatibility routines Add more compatibility defines. Introduce bswap.h for portable definitions of byte swap macros. Define some types if missing Configuration Use alphasort where versionsort is not available. config files - do not include ucm/topology configuration when not requested Kernel Headers seq: Provide sequencer sound card number / PID via alsa-lib Update include/sound/asequencer.h from 4.6-pre kernel uapi Update include/sound/asound.h from 4.6-pre kernel uapi @ text @d1 1 a1 1 $NetBSD: patch-bg,v 1.2 2012/02/15 19:43:51 hans Exp $ d3 1 a3 1 --- src/timer/timer_hw.c.orig 2016-03-07 10:09:24.000000000 +0000 d5 1 a5 1 @@@@ -66,11 +66,14 @@@@ static int snd_timer_hw_nonblock(snd_tim d18 1 a18 1 SYSERR("F_GETFL failed"); d20 2 a21 2 @@@@ -83,13 +86,21 @@@@ static int snd_timer_hw_async(snd_timer_ SYSERR("F_SETFL for O_ASYNC failed"); d30 1 a30 1 SYSERR("F_SETSIG failed"); d32 1 a32 2 - } + } d34 4 a37 4 + if (fcntl(fd, F_SETFL, O_ASYNC) < 0) { + SYSERR("F_SETFL failed"); + return -errno; + } d41 1 a41 1 SYSERR("F_SETOWN failed"); @ 1.2 log @Fix build on SunOS. Inspired by the patches used for the native package in OI. @ text @d1 1 a1 1 $NetBSD: patch-bg,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ d3 1 a3 1 --- src/timer/timer_hw.c.orig 2008-10-29 08:42:10.000000000 -0400 d5 1 a5 1 @@@@ -72,11 +72,14 @@@@ static int snd_timer_hw_nonblock(snd_tim d20 1 a20 1 @@@@ -89,12 +92,22 @@@@ static int snd_timer_hw_async(snd_timer_ d28 1 a28 1 +#ifdef F_SETSIG d32 2 a33 1 } d35 4 a38 5 + if (fcntl(fd, F_SETFL, O_ASYNC) < 0) { + SYSERR("F_SETFL failed"); + return -errno; + } +#endif d40 1 a42 1 return -errno; @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d5 18 a22 1 @@@@ -92,10 +92,17 @@@@ static int snd_timer_hw_async(snd_timer_ d24 1 d27 1 d39 1 @ 1.1.1.1 log @Import alsa-lib version 1.0.18. The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI functionality to the Linux operating system. ALSA has the following significant features: * Efficient support for all types of audio interfaces, from consumer sound cards to professional multichannel audio interfaces. * Fully modularized sound drivers. * SMP and thread-safe design. * User space library (alsa-lib) to simplify application programming and provide higher level functionality. * Support for the older Open Sound System (OSS) API, providing binary compatibility for most OSS programs. @ text @@