From nobody Thu Jul 25 18:51:58 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WVKk64hKxz5R4jG; Thu, 25 Jul 2024 18:51:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WVKk64Tlhz58NP; Thu, 25 Jul 2024 18:51:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721933518; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pERiymeTVsNnKCY/EGwqh31zUdOvAFP2XLLMFyMjQR4=; b=cPNCm1Cn66YVw2b1GPuXwoF5IVhlCwlRWSrBgszCkYqY4V+YqJkWs8PcmbkivusVyjHxH7 Iwa0XKH4GJzN/wxUGftUAA7SZtL7qdwTqgF4b+GJNRSaFagGPB12eiRSspEFo+h+rcVwTS WGMCV9rfXuyUZVvaYKkD1cmHrHiBU7x9q9uCwFVSpvPor/fUSlvV+jefUeqAsYAcU4odyI mz2wGjhDxlNzw2kblEXnRIJGG3KmZ2AqWI4PVogw29Any0iJ7QEK22y9iYtHJqR73zL7Bw aVCfY6pMPm+Da/Hx0CKzkoywVYZs1Suogx78YxA3FLvanLFc01wENjLtQYmZYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721933518; a=rsa-sha256; cv=none; b=ccr/gTkWCA4SnXhTtalr+s7yLPBiuknh2UFMxEOQ252RaWI+/UPOWkQ1v4wyZSbjgrJhwG bPvsC79u9EzkFqR1eYzp9CxG587uXghthAqIMu0O/HmxCtifVZaGnVgy2fyW7Le9zu6kAf aBw94HPS9UCB7K0cFFpz+cToeuUIa50fk3XKeAejrGJKLopA5Zy+GIN47pxfn6dZl/I4iu +D2ZOBn5qoWEOD8R2bg+7/ak7hWpzSrD/ApTE0BQabp8YV/q6hcxqRyt82imHIvVcJRyvB zh2XAObKdaydmdGX+i2wxCvc0A0xuql9cUENnWi8q+z/A+CVBD7aONWze4ItQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721933518; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pERiymeTVsNnKCY/EGwqh31zUdOvAFP2XLLMFyMjQR4=; b=KdEN4o6wc8Uw14lS+k4j+k9rshVwtqAtU7eqoqLjxNlDH859IXSBMf6mBTEW2gdacw+FC2 W/jRjpRekEl3QH6wHDoBtbzDd3toZXAhJbSKwR+U4jaIKrm5DPzXUPbHV1G3y8KOYttrcP fLYTkNg9N7qR6O8aYuRVgCFG+ZQYm10ymuiCHgVJwtTwjwGrsEtVYu6cJ443aHJYNhRxOh YwqIcIVFJv80HzBlztJQEDXOpK6qhdI0+ep4c2Q9z+aMVEh8hkkVb/aeLZLRCrHK6YSxGi Dqjv4m9jfcV/D+WCbK3zu0GnOUNPkyFPPqjPMlg8EZzolNx2Vo8+BLs084sYAg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WVKk642tSz1611; Thu, 25 Jul 2024 18:51:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46PIpwJV072864; Thu, 25 Jul 2024 18:51:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46PIpwGw072861; Thu, 25 Jul 2024 18:51:58 GMT (envelope-from git) Date: Thu, 25 Jul 2024 18:51:58 GMT Message-Id: <202407251851.46PIpwGw072861@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: 1a782b315786 - main - audio/alsa-plugins: update 1.2.7.1 =?utf-8?Q?=E2=86=92?= 1.2.12 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1a782b3157860d35e79a7b9dceb50bee7a7b7684 Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=1a782b3157860d35e79a7b9dceb50bee7a7b7684 commit 1a782b3157860d35e79a7b9dceb50bee7a7b7684 Author: Vladimir Druzenko AuthorDate: 2024-07-25 18:45:39 +0000 Commit: Vladimir Druzenko CommitDate: 2024-07-25 18:50:52 +0000 audio/alsa-plugins: update 1.2.7.1 → 1.2.12 Also: * refresh patches; * change maintainer from ports@ to rodrigo@ - maintainer other alsa ports: audio/alsa-lib audio/alsa-utils (if he is against changing the maintainer, then I will return the old value ports@). PR: 280144 Approved by: rodrigo (maintainer, timeout > 2 weeks) --- audio/alsa-plugins/Makefile | 5 ++- audio/alsa-plugins/distinfo | 6 ++-- .../alsa-plugins/files/patch-arcam-av_arcam__av.c | 18 +++------- audio/alsa-plugins/files/patch-configure | 40 +++++++++++----------- audio/alsa-plugins/files/patch-jack_pcm__jack.c | 11 ------ audio/alsa-plugins/files/patch-oss_ctl__oss.c | 20 +++-------- audio/alsa-plugins/files/patch-oss_pcm__oss.c | 34 +++++++++--------- .../files/patch-usb__stream_pcm__usb__stream.c | 8 ++--- 8 files changed, 54 insertions(+), 88 deletions(-) diff --git a/audio/alsa-plugins/Makefile b/audio/alsa-plugins/Makefile index 3fa4c416249c..dd7f404f7f0c 100644 --- a/audio/alsa-plugins/Makefile +++ b/audio/alsa-plugins/Makefile @@ -1,10 +1,9 @@ PORTNAME= alsa-plugins -PORTVERSION= 1.2.7.1 -PORTREVISION= 3 +PORTVERSION= 1.2.12 CATEGORIES= audio MASTER_SITES= https://www.alsa-project.org/files/pub/plugins/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= rodrigo@FreeBSD.org COMMENT= ALSA compatibility library plugins WWW= https://www.alsa-project.org/ diff --git a/audio/alsa-plugins/distinfo b/audio/alsa-plugins/distinfo index 89ae30e80e4a..6627b261bd5a 100644 --- a/audio/alsa-plugins/distinfo +++ b/audio/alsa-plugins/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1695516677 -SHA256 (alsa-plugins-1.2.7.1.tar.bz2) = 8c337814954bb7c167456733a6046142a2931f12eccba3ec2a4ae618a3432511 -SIZE (alsa-plugins-1.2.7.1.tar.bz2) = 408801 +TIMESTAMP = 1720213741 +SHA256 (alsa-plugins-1.2.12.tar.bz2) = 7bd8a83d304e8e2d86a25895d8dcb0ef0245a8df32e271959cdbdc6af39b66f2 +SIZE (alsa-plugins-1.2.12.tar.bz2) = 409514 diff --git a/audio/alsa-plugins/files/patch-arcam-av_arcam__av.c b/audio/alsa-plugins/files/patch-arcam-av_arcam__av.c index 8f3167f854b7..39f026884fc4 100644 --- a/audio/alsa-plugins/files/patch-arcam-av_arcam__av.c +++ b/audio/alsa-plugins/files/patch-arcam-av_arcam__av.c @@ -1,19 +1,11 @@ ---- arcam-av/arcam_av.c.orig 2016-03-31 13:11:29 UTC +--- arcam-av/arcam_av.c.orig 2024-06-10 09:18:39 UTC +++ arcam-av/arcam_av.c -@@ -27,6 +27,7 @@ - #include - #include - #include -+#include - #include - #include - -@@ -37,6 +38,8 @@ - #include +@@ -39,6 +39,8 @@ #include #include -+ -+#define AF_FILE AF_UNIX ++#define AF_FILE AF_UNIX ++ #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) + diff --git a/audio/alsa-plugins/files/patch-configure b/audio/alsa-plugins/files/patch-configure index 8ca3ddc4b4a0..1c1791b6902a 100644 --- a/audio/alsa-plugins/files/patch-configure +++ b/audio/alsa-plugins/files/patch-configure @@ -1,6 +1,6 @@ ---- configure.orig 2022-03-17 16:36:30 UTC +--- configure.orig 2024-06-10 09:22:07 UTC +++ configure -@@ -743,6 +743,9 @@ +@@ -743,6 +743,9 @@ AM_V AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V @@ -10,7 +10,7 @@ am__untar am__tar AMTAR -@@ -785,7 +788,6 @@ +@@ -785,7 +788,6 @@ includedir docdir oldincludedir includedir @@ -18,7 +18,7 @@ localstatedir sharedstatedir sysconfdir -@@ -909,7 +911,6 @@ +@@ -909,7 +911,6 @@ localstatedir='${prefix}/var' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' @@ -26,7 +26,7 @@ includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' -@@ -1162,15 +1163,6 @@ +@@ -1162,15 +1163,6 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; @@ -42,7 +42,7 @@ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ -@@ -1308,7 +1300,7 @@ +@@ -1308,7 +1300,7 @@ for ac_var in exec_prefix prefix bindir sbindir libexe for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ @@ -51,7 +51,7 @@ do eval ac_val=\$$ac_var # Remove trailing slashes. -@@ -1461,7 +1453,6 @@ +@@ -1461,7 +1453,6 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] @@ -59,7 +59,7 @@ --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] -@@ -2578,12 +2569,7 @@ +@@ -2578,12 +2569,7 @@ if test x"${MISSING+set}" != xset; then am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then @@ -73,7 +73,7 @@ fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then -@@ -2938,7 +2924,21 @@ +@@ -2938,7 +2924,21 @@ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${ @@ -95,7 +95,7 @@ # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is -@@ -9015,7 +9015,7 @@ +@@ -9015,7 +9015,7 @@ $as_echo_n "checking whether the $compiler linker ($LD hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no @@ -104,7 +104,7 @@ module_cmds= module_expsym_cmds= old_archive_from_new_cmds= -@@ -9314,7 +9314,7 @@ +@@ -9314,7 +9314,7 @@ _LT_EOF wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' @@ -113,7 +113,7 @@ fi ;; -@@ -9333,7 +9333,7 @@ +@@ -9333,7 +9333,7 @@ _LT_EOF _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' @@ -122,7 +122,7 @@ else ld_shlibs=no fi -@@ -9362,7 +9362,7 @@ +@@ -9362,7 +9362,7 @@ _LT_EOF if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' @@ -131,7 +131,7 @@ else ld_shlibs=no fi -@@ -9380,7 +9380,7 @@ +@@ -9380,7 +9380,7 @@ _LT_EOF *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' @@ -140,7 +140,7 @@ else ld_shlibs=no fi -@@ -10028,7 +10028,7 @@ +@@ -10028,7 +10028,7 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; } hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' @@ -149,7 +149,7 @@ hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else -@@ -10877,7 +10877,7 @@ +@@ -10877,7 +10877,7 @@ freebsd* | dragonfly*) version_type=freebsd-$objformat case $version_type in freebsd-elf*) @@ -158,7 +158,7 @@ soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no -@@ -11094,9 +11094,6 @@ +@@ -11094,9 +11094,6 @@ fi # before this can be enabled. hardcode_into_libs=yes @@ -168,7 +168,7 @@ # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command -@@ -11105,7 +11102,7 @@ +@@ -11105,7 +11102,7 @@ fi # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` @@ -177,7 +177,7 @@ fi # We used to test for /lib/ld.so.1 and disable shared libraries on -@@ -12012,7 +12009,7 @@ +@@ -12012,7 +12009,7 @@ $as_echo_n "checking whether stripping libraries is po old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } @@ -186,7 +186,7 @@ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -@@ -13293,21 +13290,22 @@ +@@ -13359,21 +13356,22 @@ fi HAVE_SPEEXDSP="yes" fi fi diff --git a/audio/alsa-plugins/files/patch-jack_pcm__jack.c b/audio/alsa-plugins/files/patch-jack_pcm__jack.c deleted file mode 100644 index 12ad92846719..000000000000 --- a/audio/alsa-plugins/files/patch-jack_pcm__jack.c +++ /dev/null @@ -1,11 +0,0 @@ ---- jack/pcm_jack.c.orig 2023-11-03 22:31:39 UTC -+++ jack/pcm_jack.c -@@ -603,7 +603,7 @@ static int snd_pcm_jack_open(snd_pcm_t **pcmp, const c - } - - if (client_name == NULL) { -- const char *pname = program_invocation_short_name; -+ const char *pname = getprogname(); - if (!pname[0]) { - pname = "alsa-jack"; - } diff --git a/audio/alsa-plugins/files/patch-oss_ctl__oss.c b/audio/alsa-plugins/files/patch-oss_ctl__oss.c index d36de65b15f0..c862b6d325c5 100644 --- a/audio/alsa-plugins/files/patch-oss_ctl__oss.c +++ b/audio/alsa-plugins/files/patch-oss_ctl__oss.c @@ -1,18 +1,6 @@ ---- oss/ctl_oss.c.orig 2022-01-29 13:06:39 UTC +--- oss/ctl_oss.c.orig 2024-06-10 09:18:39 UTC +++ oss/ctl_oss.c -@@ -26,7 +26,11 @@ - #include - #include - #include -+#ifdef __linux__ - #include -+#else -+#include -+#endif - - typedef struct snd_ctl_oss { - snd_ctl_ext_t ext; -@@ -52,7 +56,7 @@ static const char *const vol_devices[SOUND_MIXER_NRDEV +@@ -59,7 +59,7 @@ static const char *const vol_devices[SOUND_MIXER_NRDEV [SOUND_MIXER_CD] = "CD Playback Volume", [SOUND_MIXER_IMIX] = "Monitor Mix Playback Volume", [SOUND_MIXER_ALTPCM] = "Headphone Playback Volume", @@ -21,7 +9,7 @@ [SOUND_MIXER_IGAIN] = "Capture Volume", [SOUND_MIXER_OGAIN] = "Playback Volume", [SOUND_MIXER_LINE1] = "Aux Playback Volume", -@@ -362,7 +366,9 @@ SND_CTL_PLUGIN_DEFINE_FUNC(oss) +@@ -369,7 +369,9 @@ SND_CTL_PLUGIN_DEFINE_FUNC(oss) { snd_config_iterator_t it, next; const char *device = "/dev/mixer"; @@ -31,7 +19,7 @@ int i, err, val; snd_ctl_oss_t *oss; -@@ -399,19 +405,29 @@ SND_CTL_PLUGIN_DEFINE_FUNC(oss) +@@ -406,19 +408,29 @@ SND_CTL_PLUGIN_DEFINE_FUNC(oss) goto error; } diff --git a/audio/alsa-plugins/files/patch-oss_pcm__oss.c b/audio/alsa-plugins/files/patch-oss_pcm__oss.c index df0d91c02417..8824efd6561d 100644 --- a/audio/alsa-plugins/files/patch-oss_pcm__oss.c +++ b/audio/alsa-plugins/files/patch-oss_pcm__oss.c @@ -1,18 +1,16 @@ ---- oss/pcm_oss.c.orig 2020-02-19 09:35:42 UTC +--- oss/pcm_oss.c.orig 2024-06-10 09:18:39 UTC +++ oss/pcm_oss.c -@@ -19,21 +19,42 @@ - */ +@@ -20,6 +20,7 @@ + #include "config.h" #include +#include #include #include #include -+#ifdef __linux__ - #include -+#else -+#include -+#endif +@@ -31,16 +32,32 @@ + #include + #endif +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) @@ -48,7 +46,7 @@ } snd_pcm_oss_t; static snd_pcm_sframes_t oss_write(snd_pcm_ioplug_t *io, -@@ -49,8 +70,21 @@ static snd_pcm_sframes_t oss_write(snd_pcm_ioplug_t *i +@@ -56,8 +73,21 @@ static snd_pcm_sframes_t oss_write(snd_pcm_ioplug_t *i buf = (char *)areas->addr + (areas->first + areas->step * offset) / 8; size *= oss->frame_bytes; result = write(oss->fd, buf, size); @@ -72,7 +70,7 @@ return result / oss->frame_bytes; } -@@ -67,37 +101,122 @@ static snd_pcm_sframes_t oss_read(snd_pcm_ioplug_t *io +@@ -74,37 +104,122 @@ static snd_pcm_sframes_t oss_read(snd_pcm_ioplug_t *io buf = (char *)areas->addr + (areas->first + areas->step * offset) / 8; size *= oss->frame_bytes; result = read(oss->fd, buf, size); @@ -204,7 +202,7 @@ } return 0; } -@@ -107,6 +226,10 @@ static int oss_stop(snd_pcm_ioplug_t *io) +@@ -114,6 +229,10 @@ static int oss_stop(snd_pcm_ioplug_t *io) snd_pcm_oss_t *oss = io->private_data; int tmp = 0; @@ -215,7 +213,7 @@ ioctl(oss->fd, SNDCTL_DSP_SETTRIGGER, &tmp); return 0; } -@@ -115,101 +238,164 @@ static int oss_drain(snd_pcm_ioplug_t *io) +@@ -122,101 +241,164 @@ static int oss_drain(snd_pcm_ioplug_t *io) { snd_pcm_oss_t *oss = io->private_data; @@ -445,7 +443,7 @@ if ((flags = fcntl(oss->fd, F_GETFL)) < 0) { err = -errno; perror("F_GETFL"); -@@ -229,16 +415,148 @@ static int oss_hw_params(snd_pcm_ioplug_t *io, +@@ -236,16 +418,148 @@ static int oss_hw_params(snd_pcm_ioplug_t *io, return 0; } @@ -596,7 +594,7 @@ unsigned int format[5]; unsigned int nchannels; unsigned int channel[6]; -@@ -317,6 +635,7 @@ static int oss_hw_constraint(snd_pcm_oss_t *oss) +@@ -324,6 +638,7 @@ static int oss_hw_constraint(snd_pcm_oss_t *oss) return err; return 0; @@ -604,7 +602,7 @@ } -@@ -324,6 +643,10 @@ static int oss_close(snd_pcm_ioplug_t *io) +@@ -331,6 +646,10 @@ static int oss_close(snd_pcm_ioplug_t *io) { snd_pcm_oss_t *oss = io->private_data; @@ -615,7 +613,7 @@ close(oss->fd); free(oss->device); free(oss); -@@ -339,6 +662,7 @@ static const snd_pcm_ioplug_callback_t oss_playback_ca +@@ -346,6 +665,7 @@ static const snd_pcm_ioplug_callback_t oss_playback_ca .hw_params = oss_hw_params, .prepare = oss_prepare, .drain = oss_drain, @@ -623,7 +621,7 @@ }; static const snd_pcm_ioplug_callback_t oss_capture_callback = { -@@ -350,6 +674,7 @@ static const snd_pcm_ioplug_callback_t oss_capture_cal +@@ -357,6 +677,7 @@ static const snd_pcm_ioplug_callback_t oss_capture_cal .hw_params = oss_hw_params, .prepare = oss_prepare, .drain = oss_drain, @@ -631,7 +629,7 @@ }; -@@ -360,6 +685,10 @@ SND_PCM_PLUGIN_DEFINE_FUNC(oss) +@@ -367,6 +688,10 @@ SND_PCM_PLUGIN_DEFINE_FUNC(oss) int err; snd_pcm_oss_t *oss; diff --git a/audio/alsa-plugins/files/patch-usb__stream_pcm__usb__stream.c b/audio/alsa-plugins/files/patch-usb__stream_pcm__usb__stream.c index 14c83dd206db..3d0d390e1606 100644 --- a/audio/alsa-plugins/files/patch-usb__stream_pcm__usb__stream.c +++ b/audio/alsa-plugins/files/patch-usb__stream_pcm__usb__stream.c @@ -1,7 +1,7 @@ based on https://github.com/dankamongmen/libdank/blob/master/libdank/compat-FreeBSD.c ---- ./usb_stream/pcm_usb_stream.c.orig 2022-03-17 16:51:58 UTC -+++ ./usb_stream/pcm_usb_stream.c -@@ -78,6 +78,69 @@ +--- usb_stream/pcm_usb_stream.c.orig 2024-06-10 09:18:39 UTC ++++ usb_stream/pcm_usb_stream.c +@@ -77,6 +77,69 @@ static pthread_mutex_t uus_mutex = PTHREAD_MUTEX_INITI static struct user_usb_stream *uus; static pthread_mutex_t uus_mutex = PTHREAD_MUTEX_INITIALIZER; @@ -71,7 +71,7 @@ based on https://github.com/dankamongmen/libdank/blob/master/libdank/compat-Free static struct user_usb_stream *get_uus(int card) { pthread_mutex_lock(&uus_mutex); -@@ -218,7 +281,11 @@ +@@ -217,7 +280,11 @@ static int snd_pcm_us_prepare(snd_pcm_ioplug_t *io) }