pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/audio
Module Name: pkgsrc
Committed By: ryoon
Date: Thu Nov 23 16:15:04 UTC 2023
Modified Files:
pkgsrc/audio/alsa-lib: Makefile PLIST distinfo
pkgsrc/audio/alsa-lib/patches: patch-ae patch-ah patch-bi patch-bj
patch-src_pcm_pcm__mmap.c patch-src_seq_seq__midi__event.c
patch-src_shmarea.c patch-src_ucm_ucm__exec.c
pkgsrc/audio/alsa-utils: Makefile PLIST distinfo
pkgsrc/audio/alsa-utils/patches: patch-alsaloop_alsaloop.c
patch-alsaloop_pcmjob.c patch-amidi_amidi.c patch-bat_alsa.c
Added Files:
pkgsrc/audio/alsa-utils/patches: patch-alsaucm_dump.c
patch-axfer_container-raw.c patch-axfer_mapper-single.c
patch-axfer_subcmd-list.c patch-axfer_subcmd-transfer.c
patch-axfer_waiter-poll.c patch-axfer_waiter-select.c
patch-axfer_waiter.h patch-axfer_xfer-libasound-irq-rw.c
patch-axfer_xfer-libasound.c patch-axfer_xfer-options.c
patch-bat_bat.c patch-bat_common.c patch-bat_common.h
patch-seq_aconnect_aconnect.c patch-seq_aplaymidi_arecordmidi.c
patch-seq_aseqdump_aseqdump.c patch-seq_aseqnet_aseqnet.c
patch-topology_nhlt_intel_dmic-nhlt.c
patch-topology_nhlt_intel_dmic_dmic-debug.c
patch-topology_nhlt_intel_ssp_ssp-debug.c
patch-topology_nhlt_intel_ssp_ssp-process.c
patch-topology_nhlt_nhlt-processor.c
patch-topology_pre-process-class.c
patch-topology_pre-process-object.c patch-topology_pre-processor.c
Removed Files:
pkgsrc/audio/alsa-lib/patches: patch-bk
patch-include_sound_type__compat.h patch-include_sound_uapi_asoc.h
patch-include_type__compat.h
pkgsrc/audio/alsa-utils/patches: patch-ac patch-ad
Log Message:
alsa-lib, alsa-utils: Update to 1.2.10
Changelog:
1.2.10:
alsa-lib
Core
Release v1.2.10
Fix symver build error on non-ELF platforms
doxygen: include docs for shmarea functions
doxygen: silence warning from asoundlib.h
doxygen: global: silence 'not documented' warnings
doxygen: Fix missing group end markers
configure: add AC_SYS_LARGEFILE
seq: Add UMP 1.1 features
seq: Add UMP support
ump: Add helpers to parse / set UMP packet data
control: Add UMP Endpoint and Block info query support
control: Add UMP device query support
ump: Add initial support
include: fix SND_DLSYM_BUILD_VERSION() for static build
Config API
doxygen: conf: silence 'not documented' warnings
Control API
doxygen: namehint: silence 'not documented' warnings
doxygen: control: silence 'not documented' item warnings
doxygen: include external control docs
reshuffle included files to include config.h as first
control: Add UMP Endpoint and Block info query support
control: Add UMP device query support
remove extra trailing new line in SNDMSG and SNDERR calls
Mixer API
topology: fix src/mixer/mixer.c return value warning
doxygen: fix broken parameter name tags
PCM API
doxygen: fix broken examples links
doxygen: pcm: silence 'not documented' warnings
doxygen: fix inadvertent link requests
doxygen: fix broken parameter name tags
pcm: hw: fix minor bug in sw_params ioctl
remove extra trailing new line in SNDMSG and SNDERR calls
pcm: hw - prevent divide by zero for broken apps
RawMidi API
doxygen: fix broken examples links
doxygen: rawmidi: silence 'not documented' warnings
doxygen: fix broken parameter name tags
rawmidi: Suppress error messages for non-fatal errors
ump: Add UMP 1.1 features
ump: Add helpers for handling SysEx data
ump: Add helpers to parse / set UMP packet data
ump: Add initial support
rawmidi: Add UMP ioctl support
Rawmidi API
ump: Add initial support
Sequencer API
doxygen: seq: silence 'not documented' warnings
seq: Fix wrong seq version update at snd_seq_hw_get_client_info()
seq: Add overflow check in snd_seq_ev_set_ump_data()
seq: ump: Fix typo in function name containing "group"
seq: Add UMP 1.1 features
seq: Add UMP support
Timer API
doxygen: fix broken examples links
Topology API
dogyxen: fix topology.h warnings
doxygen: topology: silence 'not documented' warnings
doxygen: fix inadvertent link requests
doxygen: escape xml tags
doxygen: Fix missing group end markers
remove extra trailing new line in SNDMSG and SNDERR calls
Use Case Manager API
ucm: main - remove cast to pointer from integer of different size warning
ucm: mark internal functions static
doxygen: ucm: silence warnings
doxygen: fix list indentation errors
doxygen: escape xml tags
doxygen: fix broken parameter name tags
usecase: add CaptureMicInfoFile field to documentation
/include/Makefile.am
ump: Add helpers to parse / set UMP packet data
ump: Add initial support
ALSA Lisp
reshuffle included files to include config.h as first
ALSA Server
reshuffle included files to include config.h as first
Async helpers
doxygen: global: silence 'not documented' warnings
Configuration
doxygen: conf: do not hide PCM specific function
doxygen: conf: silence 'not documented' warnings
doxygen: fix broken parameter name tags
reshuffle included files to include config.h as first
Documentation
doxygen: include docs for shmarea functions
doxygen: namehint: silence 'not documented' warnings
doxygen: seq: silence 'not documented' warnings
doxygen: conf: silence 'not documented' warnings
doxygen: include external control docs
doxygen: fix image path
Dynamic Loader helpers
doxygen: global: silence 'not documented' warnings
reshuffle included files to include config.h as first
Kernel Headers
seq: Add UMP 1.1 features
uapi: Update rawmidi API to 2.0.4
uapi: Update asequencer.h definitions for 1.0.3
uapi: Update control API to 2.0.9
uapi: Update rawmidi API to 2.0.3
MIDI 2.0 (UMP)
ump: Add UMP 1.1 features
ump: Add helpers for handling SysEx data
ump: Add helpers to parse / set UMP packet data
ump: Add initial support
SHM helpers
doxygen: global: silence 'not documented' warnings
Test/Example code
test: oldapi - fix the clang-16 compilation error
alsa-utils
Core
Release v1.2.10
github: update build.yml
aseqdump: Add UMP support
nhlt: add nhlt-dmic-info utility
ALSA Control (alsactl)
alsactl: fix compilation when building in a subdir
alsactl: fix the verbose compilation warnings for latest gcc
alsactl: fix the copy-n-paste typo (SND_RAWMIDI_STREAM_*)
alsactl: add define to compile with glibc 2.38
ALSA RawMidi Utility (amidi)
reshuffle included files to include config.h as first
amidi: fix the verbose compilation warnings for latest gcc
Audio Transfer utility
reshuffle included files to include config.h as first
axfer: fix the verbose compilation warnings for latest gcc
NHLT ACPI parser
nhlt-dmic-info: fix the verbose compilation warnings for latest gcc
nhlt: add nhlt-dmic-info utility
Speaker Test
speaker-test: fix the verbose compilation warnings for latest gcc
speaker-test: allow large buffer and period time setup - up to 100 seconds
aconnect
aconnect: fix the verbose compilation warnings for latest gcc
aconnect: Add UMP support
alsaloop
reshuffle included files to include config.h as first
alsaloop: fix the verbose compilation warnings for latest gcc
alsamixer
alsamixer: fix the verbose compilation warnings for latest gcc
alsatplg (topology)
topology: fix the verbose compilation warnings for latest gcc
topology: plugins: nhlt: remove dmic error print
Topology: NHLT: Intel: Update DMIC FIR coefficients
topology: nhlt: intel: support more device types and directions
topology: pre-processor: Add support for CombineArrays
topology: plugins: nhlt: set dmic stereo mode only in hw version 1
alsaucm
alsaucm: fix the verbose compilation warnings for latest gcc
amixer
reshuffle included files to include config.h as first
amixer: fix the verbose compilation warnings for latest gcc
aplay/arecord
aplay: fix the verbose compilation warnings for latest gcc
aplaymidi/arecordmidi
aplaymidi: fix the verbose compilation warnings for latest gcc
aplaymidi: Add UMP support
aseqdump
aseqdump: fix MIDI 2.0 code - it compiles now
aseqdump: fix the verbose compilation warnings for latest gcc
aseqdump: Add options to switch view mode
aseqdump: Correct wrong channel number
aseqdump: Align outputs of UMP MIDI 1.0 with legacy MIDI 1.0
aseqdump: Add UMP support
aseqnet
aseqnet: fix the verbose compilation warnings for latest gcc
bat (basic audio tester)
bat: fix the verbose compilation warnings for latest gcc
gitcompile
gitcompile: set more verbose compilation warnings
iecset
iecset: fix the verbose compilation warnings for latest gcc
alsa-ucm-conf
Configuration
mtk-rt5650: remove duplicate JackControl "Headset Jack" lines
USB-Audio: ALC4080 - 26ce:0a08 - Z790 PG-ITX/TB4
USB-Audio: ALC4080 - 26ce:0a06 - ASRock X670E Taichi
tegra: Add UCM for MAX98089 based LG Optimus 4X HD and Vu
tegra: Add UCM for WM8903 based ASUS Transformers
tegra: Add UCM for RT5631 based ASUS Transformers
ucm2: Rockchip: Add UCM support for ES8316 on Rock 5B
USB-Audio: Added Universal Audio Volt 2 config
SplitPCM: Fix Device variable in SplitPCMDevice macro
USB-Audio: Do not use 4ch playback stream for stereo Focusrite Scarlet devices
ucm2: USB-Audio: Add support for more Focusrite Scarlet 2-input devices
USB-Audio: Arturia: set S32_LE format for SplitPCM
Intel/sof-essx8336: Fix HiFi.conf
USB-Audio: ALC4080: Add USB ID 0b05:1a5c (ASUS ROG Strix B650E-I)
Add Asus ROG STRIX X670E-F Gaming Wifi to USB-Audio.conf
ucm2: PinePhone: use "Mix Mono" routing for earpiece
Add support for Steinberg UR44C
ucm2: Qualcomm: sc8280xp: fix device numbers
acp62: add initial support for AMD ACP v6.2 RPL
acp63.conf: use symbolic link
acp63: add initial support for AMD Pink Sardine - ACP63
sof-hda-dsp: move card-init include to top
sof-hda-dsp,sof-soundwire: add CaptureMicInfoFile fields for dmics
sof-essx8336: Dmic is not a valid UCM device identifier, use Mic
Description
Release v1.2.10
1.2.9:
alsa-lib
Core
Release v1.2.9
pcm: add new symbols to Versions.in
configure: avoid libdl detecion on *BSD
include: alsa-symbols.h - use newer gcc symver function attribute
Control API
pcm: add SND_CTL_EINTR open mode
PCM API
pcm: hw: fix the silence size setup in drain
pcm: remove duplicate SND_PCM_HW_PARAM_{FIRST,LAST}_* #defines
pcm: add SND_PCM_EINTR open mode
pcm: improve handling for snd_pcm_wait()
pcm: hw: introduce SNDRV_PCM_HW_PARAMS_DRAIN_SILENCE
pcm: hw: introduce SNDRV_PCM_INFO_PERFECT_DRAIN
pcm: hw: add drain_silence configuration keyword
pcm: hw: setup explicit silencing for snd_pcm_drain by default
compilation: fix ANDROID -> __ANDROID__ define detection
pcm: avoid endless loop in snd_pcm_sw_params_default()
pcm: hw - fix return code checking in snd_pcm_hw_hw_refine
pcm: rate: fix last_commit_ptr boundary wrapping
pcm: route/softvol use snd_config_get_ireal vs get_real to handle also integers
pcm: fix the fast_ops pcm argument for fast_ops
include: pcm_old.h - use a macro for the symbol versioning
pcm: rate - correct the previous fix for snd_pcm_rate_may_wait_for_avail_min()
pcm: rate - fix the crash in snd_pcm_rate_may_wait_for_avail_min()
Topology API
topology: Parse ignore_suspend property for dapm widget
topology: Add decompilation support for ignore_suspend
topology: Parse ignore_suspend flag
topology: ctl - remove the wrong (debug) code
test: latency - use snd_pcm_format_physical_width()
Use Case Manager API
compilation: fix ANDROID -> __ANDROID__ define detection
ucm: fix geti() macro - return zero on success
ucm: simplify and fix the previous patch (geti)
ucm: add existence checks to geti calls
ucm: fix possible memory leak in execute_sysw()
ucm: execute_sysw - fix possible use-after-free
ucm: handle empty string also for ${env:} substitution
ucm: clarify set_defaults calls
ucm: fix enhanced ID parsing in snd_use_case_parse_ctl_elem_id()
Compatibility routines
type_compat.h: use ESPIPE instead of EPIPE when ESTRPIPE not defined
Configuration
conf/emu10k1: remove compat with two decades old drivers
compilation: fix ANDROID -> __ANDROID__ define detection
alsa-lib: conf - fix possible use-after-free in get_char_skip_comments
Kernel Headers
pcm: hw: introduce SNDRV_PCM_HW_PARAMS_DRAIN_SILENCE
pcm: hw: introduce SNDRV_PCM_INFO_PERFECT_DRAIN
Test/Example code
test: BSD-like fixes
type_compat.h: use ESPIPE instead of EPIPE when ESTRPIPE not defined
test: latency - --policy option - allow using SCHED_OTHER
test: latency - add --policy option to allow using SCHED_FIFO
test: latency - usleep should not be used in the block mode
test: latency - add -y option (I/O usleep)
latency: add timestamps to the POS lines
test: latency - add more realtime tests
test: latency - use snd_pcm_format_physical_width()
Utils
utils/alsa.m4: include <stdlib.h> for exit()
alsa-utils
Core
Release v1.2.9
configure.ac: fix build without dlfcn.h
chore: Add link to master branch on GitHub Actions
chore: Delete .travis.yml because of using not Travis CI but GitHub Actions
/include/Makefile.am
include: fix package - add bswap.h and os_compat.h to noinst_HEADERS
ALSA Control (alsactl)
alsactl: fix OpenBSD compilation (add include of os_compat.h)
Add OpenBSD support
ALSA RawMidi Utility (amidi)
Add OpenBSD support
amidi: restore space between bytes
Audio Transfer utility
aplay,axfer: Replace off64_t with off_t
axfer: fix typo in manual
alsa-info.sh
alsa-info.sh: increase version to 0.5.3
alsa-info.sh: uname - reduce execs by four, and eliminate a logic bug
alsa-info.sh: Update `test` '-a' and '-o' to '&&' and '||'
alsa-info.sh: print ctl-led list from sysfs
alsaconf
Add Georgian translation
alsaloop
alsaloop: fix loopcount condition
Add OpenBSD support
alsamixer
alsamixer: add -B,--black-background option
alsatplg (topology)
topology: pre-processor: fix regular expression flags
topology: pre-process-object: Expand definitions within strings
topology: pre-process-object: Remove all trailing white space
topology: pre-processor: support to include conf block with IncludeByKey
topology: nhlt: intel: add support for ssp blob ver 1.5
topology: plugins: nhlt: add ssp aux controls
topology: propagate nhlt plugin error to main program
topology: plugins: nhlt: fix ssp debug
topology: nhlt: intel: ssp: fix obvious typo for 'codec_provider'
topology: plugins: nhlt: fix ssp dai index
topology: plugins: nhlt: add dmic dai index
topology: plugins: fix off by 1 mem allocation error
alsaucm
alsaucm: fix typo in docs (can can)
alsaucm: add also card index for '-c' argument
aplay/arecord
arecord: use correct duration
aplay,axfer: Replace off64_t with off_t
aplay: Fix parsing of format with WAV_FMT_EXTENSIBLE header
bat (basic audio tester)
alsabat: improve error handling in bat_init()
bat: Add 'readcapture' option to support analyzing external audio
alsa-ucm-conf
Configuration
Gigabyte Z690I AORUS ULTRA DDR4, Realtek alc4080
USB-Audio: fix bad Conditio in If.minifuse4
USB-Audio: Add Minifuse 4
USB-Audio: Add Sony inzone H7/H9 headset default/HiFi usecase
ucm2: codecs: va-macro: fix dmic1 mux setting
USB: Adding UCM2 configuration for Roland/BridgeCast
sof-hda-dsp: Add speaker led support
USB-Audio: ALC4080 on Gigabyte Z690 AORUS ULTRA
USB-Audio: ALC4080 on MSI PRO X670-P WIFI
USB-Audio: ALC4080 on MSI MPG Z590 Gaming Force
USB-Audio: ALC4080 - Add MSI MAG B650M MORTAR WIFI (USB ID: 0db0:7696)
wcd938x codec: remove empty DefaultDisableSeq.conf
ucm2: Qualcomm: sc8280xp: add LENOVO Thinkpad X13s support
ucm2: codecs: lpass: tx: add dmics via tx macro
ucm2: codecs: lpass: make sure va dec mux is set correctly
ucm2: codecs: lpass: add codec sequences for va dmic1
ucm2: codecs: lpass-tx-macro: add codec sequences
ucm2: codecs: lpass-rx-macro: add codec sequences
ucm2: codecs: wcd938x: add codec sequences
ucm2: codecs: wsa883x: add codec sequences
ucm2: Rockchip: rk817: Add ALSA UCM support
USB-Audio: ALC4080 - add wrx80e sage se wifi (ID: 0b05:1984)
sof-soundwire: Initialize PGA switch controls in the BootSequence
USB-Audio: ALC4080 - adds support for USB ID 0414:a010 (Gigabyte Z590 Vision G)
USB-Audio: ALC4080 - Add support for MSI MAG Z590 Tomahawk WiFi motherboard
max98090: drop Record Path DC Blocking to fix int mic
USB-Audio: ALC4080 - Support for MSI B650 Tomahawk Wifi - USB ID 0db0:422d
DEBUG.md: add systemctl restart command for pipewire
ucm: USB-Audio - Add support for Focusrite Scarlett 2i2 gen3
USB-Audio: ALC4080 - add Z690 AERO G DDR4 (USB ID 0414:a012)
ucm2: MediaTek: mt8365-evk: Add alsa-ucm support
Add UCM for PinePhone
USB-Audio: ALC4080 - add MSI MPG Z790I Edge WiFi (ID: 0db0:62a4)
USB-Audio: ALC4082 - add MSI MEG X670E ACE (0db0:961e)
USB-Audio: ALC4080: detect MSI MPG Z790 Carbon Wifi
USB-Audio: ALC4080: Add Support for MSI MPG Z790 Edge Wifi
ucm2: sof-soundwire: Update Mic LED settings
USB-Audio: Update quirk for Aorus Pro WiFi Rev 1.2
ucm2: Add initial support for AMD Vangogh (acp5x) on Steam Deck
Add: 0b05:1999 ASUS ROG Strix Z590-A Gaming WiFi
ucm2: alc4080 - add support for MSI PRO Z790-A WIFI (ID 0db0:d1d7)
USB-Audio: ALC4080 - Add support for ASUS ROG Crosshair X670 Extreme (ID 0b05:1a53)
USB-Audio: alc4080 - add MSI MAG B650I Edge WiFi (ID 0db0:36e7)
sof-hda-dsp: Set Dmic0 Capture Switch on
sof-soundwire: set PGA capture switch for rt715 mic in BootSequence
ucm2: sof-hda-dsp - If.devdmic cleanup
ucm2: HDA: Update Mic LED settings for ACP DMIC
ucm2: sof-hda-dsp: Update Mic LED settings
HDA: DualCodecs - handle S/PDIF without analog connections
USB-Audio: the environment variable UCM_USB_PERIOD_TIME may be undefined
mt8195-demo: fix soundcard initialization
USB-Audio: allow to configure period size for PCM split
ucm2: add profile for the Librem 5
ucm2: sof-soundwire: add basic settings for RT1318 SDCA device
USB-Audio: ALC4080 - add 0db0:6cc9 MSI MPG Z590 Gaming Plus device
ucm2: Alc4080 - add support for ASUS ROG Strix Z790-E Gaming Wifi
ucm2: USB-Audio - Added Digidesign Mbox 3 support
ucm: USB-Audio - Add support for Focusrite Scarlett 2i2 gen2
ucm2: Add support for MT8192 Asurada Spherion Chromebook
Description
Release v1.2.9
README.md: add --wildcards also for the second tar command
add --wildcards to tar options in README
1.2.8:
alsa-utils
Core
Release v1.2.8
configure: automake - use subdir-objects option
configure: use AC_DISABLE_STATIC (for topology modules)
ALSA Control (alsactl)
alsactl: Print driver name in info
alsatplg (topology)
configure: use AC_DISABLE_STATIC (for topology modules)
amixer
amixer: fix the help for 'events' command
aplay/arecord
aplay: remove wrongly merged UCM code
aplay: fix the capture file length regression
Changelog between 1.2.5 and 1.2.8 releases
tinycompress
Core
Release v1.2.8
README: mention official mirror
README: remove old alsa-project link
Utilities
cplay: add parentheses around comparison in operand of ‘&’
cplay: remove set but not used warnings
utils: cplay: Add support for ID3v2 tag skip
utils: cplay: Add support for pause/resume
utils: cplay: Reset file cursor after MP3 header parse
Changelog between 1.2.7.2 and 1.2.8 releases
alsa-lib
Core
Release v1.2.8
add FreeBSD build support (except test/)
add NetBSD/OpenBSD build support (except test/)
Control API
control: namehint - do not support 'card' devices
control: eld - skip trailing spaces
PCM API
pcm: rate: fix the crash for the partial period copy
add DragonFlyBSD build support (except test/)
pcm: hw_params - copy periods and buffer_time to the local variable
pcm: fix the dshare delay reporting
pcm: direct plugins: make three more symbols private to library
Use Case Manager API
ucm: do not handle multiple Syntax field updates
add DragonFlyBSD build support (except test/)
add FreeBSD build support (except test/)
doc: ucm - more volume notes
doc: ucm - add sequence graphs
ucm: add NULL check for card_name in open
ucm: fix few memory-leaks in the error paths
Async helpers
add NetBSD/OpenBSD build support (except test/)
Compatibility routines
add NetBSD/OpenBSD build support (except test/)
Configuration
Remove non existent SPDIF output on ThinkPad USB-C Dock Gen2
add DragonFlyBSD build support (except test/)
add NetBSD/OpenBSD build support (except test/)
Documentation
doc: ucm - more volume notes
doc: ucm - add sequence graphs
Kernel Headers
add FreeBSD build support (except test/)
add NetBSD/OpenBSD build support (except test/)
alsa-ucm-conf
Configuration
USB-Audio: Add support for Arturia Minifuse 1
Rockchip/max98090: add HDMI device
USB-Audio: ALC4080: Add MSI MPG X670E Carbon Wifi (USB0db0:d6e7)
USB-Audio: ALC4080 - add back SPDIF switch
USB-Audio: ALC4080 - detect Speaker / Front Headphone controls
ucm2: simplify acp3xalc5682m98.conf
ucm2: Support acp3xalc5682m98 on Chromebook "zork"
ucm2: mt8195-sof: Fix wrong JackControl for headphone
USB-Audio: UR24C - add Steinberg UR24C (USB0499:174d)
USB-Audio: alc4080 - add MSI MEG X570S Ace Max (ID 0db0:a47c)
USB-Audio: alc4080 - add MSI MPG Z690 CARBON WIFI DDR5 (ID 0db0:005a)
USB-Audio: Fix Motu M2/M4 regex expression (wrong field)
sdm845: add LENOVO Yoga C630 support
ucm2: codecs: wcd934x: Add enable disable sequences
ucm2: USB-Audio: Add correct support for Rane SL-1
ucm2: Add support for MT8195 Cherry Tomato Chromebook with SOF
USB-Audio: Motu M4 - add new USB ID 07fd:0008
USB-Audio: ALC4080 - add MSI X570S EDGE MAX WIFI USB ID 0db0:151f
USB-Audio: ALC4080 - add Gigabyte Z590 Aorus Pro AX (USB 0414:a00e)
ucm2: update DEBUG.md (download latest)
USB-Audio: ALC4080 - correct S/PDIF PCM device for USB 0db0:1feb
USB-Audio: ALC4080 - fix S/PDIF and Mic2 PCM values
USB-Audio: ALC4080 - fix PCM,1 mixer control value settings
ucm2: add DEBUG.md
USB-Audio: ALC4080 - add 0db0:b202 MSI MAG Z690 Tomahawk Wifi
ucm2: sof-glkda7219max: add initial support
ucm2: HDA - add support for Internal Mic
USB-Audio: Add Behringer UMC202HD configuration
USB-Audio: Adding Focusrite Scarlett 2i4 gen2
USB-Audio: ALC4080 - add ASUS ROG Strix B660-F Gaming WiFi USB ID
USB-Audio: Add profile for MSI MEG Z690I Unify
USB-Audio: Realtek ALC4080 cleanups
USB-Audio: alc4080 - add multichannel variants
USB-Audio: Aorus-Master-Main-Audio - fix the secondary card lookup
Behringer UCM204HD - use S32_LE format for dshare/dsnoop
rt715-sdca: use sensible capture gain value
USB-Audio: add MOTU M2 config
Description
Release v1.2.8
README: fix tar compress arguments in README
README: add the latest config download info
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/audio/alsa-lib/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/audio/alsa-lib/PLIST
cvs rdiff -u -r1.37 -r1.38 pkgsrc/audio/alsa-lib/distinfo
cvs rdiff -u -r1.9 -r1.10 pkgsrc/audio/alsa-lib/patches/patch-ae
cvs rdiff -u -r1.4 -r1.5 pkgsrc/audio/alsa-lib/patches/patch-ah
cvs rdiff -u -r1.3 -r1.4 pkgsrc/audio/alsa-lib/patches/patch-bi \
pkgsrc/audio/alsa-lib/patches/patch-src_pcm_pcm__mmap.c \
pkgsrc/audio/alsa-lib/patches/patch-src_shmarea.c
cvs rdiff -u -r1.1 -r1.2 pkgsrc/audio/alsa-lib/patches/patch-bj \
pkgsrc/audio/alsa-lib/patches/patch-src_ucm_ucm__exec.c
cvs rdiff -u -r1.2 -r0 pkgsrc/audio/alsa-lib/patches/patch-bk
cvs rdiff -u -r1.3 -r0 \
pkgsrc/audio/alsa-lib/patches/patch-include_sound_type__compat.h
cvs rdiff -u -r1.1 -r0 \
pkgsrc/audio/alsa-lib/patches/patch-include_sound_uapi_asoc.h \
pkgsrc/audio/alsa-lib/patches/patch-include_type__compat.h
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/audio/alsa-lib/patches/patch-src_seq_seq__midi__event.c
cvs rdiff -u -r1.27 -r1.28 pkgsrc/audio/alsa-utils/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/audio/alsa-utils/PLIST
cvs rdiff -u -r1.16 -r1.17 pkgsrc/audio/alsa-utils/distinfo
cvs rdiff -u -r1.4 -r0 pkgsrc/audio/alsa-utils/patches/patch-ac
cvs rdiff -u -r1.6 -r0 pkgsrc/audio/alsa-utils/patches/patch-ad
cvs rdiff -u -r1.3 -r1.4 \
pkgsrc/audio/alsa-utils/patches/patch-alsaloop_alsaloop.c
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/audio/alsa-utils/patches/patch-alsaloop_pcmjob.c
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/alsa-utils/patches/patch-alsaucm_dump.c \
pkgsrc/audio/alsa-utils/patches/patch-axfer_container-raw.c \
pkgsrc/audio/alsa-utils/patches/patch-axfer_mapper-single.c \
pkgsrc/audio/alsa-utils/patches/patch-axfer_subcmd-list.c \
pkgsrc/audio/alsa-utils/patches/patch-axfer_subcmd-transfer.c \
pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter-poll.c \
pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter-select.c \
pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter.h \
pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-libasound-irq-rw.c \
pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-libasound.c \
pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-options.c \
pkgsrc/audio/alsa-utils/patches/patch-bat_bat.c \
pkgsrc/audio/alsa-utils/patches/patch-bat_common.c \
pkgsrc/audio/alsa-utils/patches/patch-bat_common.h \
pkgsrc/audio/alsa-utils/patches/patch-seq_aconnect_aconnect.c \
pkgsrc/audio/alsa-utils/patches/patch-seq_aplaymidi_arecordmidi.c \
pkgsrc/audio/alsa-utils/patches/patch-seq_aseqdump_aseqdump.c \
pkgsrc/audio/alsa-utils/patches/patch-seq_aseqnet_aseqnet.c \
pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_dmic-nhlt.c \
pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_dmic_dmic-debug.c \
pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_ssp_ssp-debug.c \
pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_ssp_ssp-process.c \
pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_nhlt-processor.c \
pkgsrc/audio/alsa-utils/patches/patch-topology_pre-process-class.c \
pkgsrc/audio/alsa-utils/patches/patch-topology_pre-process-object.c \
pkgsrc/audio/alsa-utils/patches/patch-topology_pre-processor.c
cvs rdiff -u -r1.1 -r1.2 pkgsrc/audio/alsa-utils/patches/patch-amidi_amidi.c \
pkgsrc/audio/alsa-utils/patches/patch-bat_alsa.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.30 pkgsrc/audio/alsa-lib/Makefile:1.31
--- pkgsrc/audio/alsa-lib/Makefile:1.30 Mon Aug 14 05:23:46 2023
+++ pkgsrc/audio/alsa-lib/Makefile Thu Nov 23 16:15:04 2023
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2023/08/14 05:23:46 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2023/11/23 16:15:04 ryoon Exp $
-DISTNAME= alsa-lib-1.2.7.2
-PKGREVISION= 1
+DISTNAME= alsa-lib-1.2.10
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.9 pkgsrc/audio/alsa-lib/PLIST:1.10
--- pkgsrc/audio/alsa-lib/PLIST:1.9 Mon Jun 28 10:10:50 2021
+++ pkgsrc/audio/alsa-lib/PLIST Thu Nov 23 16:15:04 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2021/06/28 10:10:50 wiz Exp $
+@comment $NetBSD: PLIST,v 1.10 2023/11/23 16:15:04 ryoon Exp $
bin/aserver
include/alsa/asoundef.h
include/alsa/asoundlib.h
@@ -44,6 +44,8 @@ include/alsa/sound/uapi/sscape_ioctl.h
include/alsa/sound/uapi/tlv.h
include/alsa/timer.h
include/alsa/topology.h
+include/alsa/ump.h
+include/alsa/ump_msg.h
include/alsa/use-case.h
include/alsa/version.h
include/asoundlib.h
Index: pkgsrc/audio/alsa-lib/distinfo
diff -u pkgsrc/audio/alsa-lib/distinfo:1.37 pkgsrc/audio/alsa-lib/distinfo:1.38
--- pkgsrc/audio/alsa-lib/distinfo:1.37 Fri Jul 15 21:17:25 2022
+++ pkgsrc/audio/alsa-lib/distinfo Thu Nov 23 16:15:04 2023
@@ -1,30 +1,26 @@
-$NetBSD: distinfo,v 1.37 2022/07/15 21:17:25 wiz Exp $
+$NetBSD: distinfo,v 1.38 2023/11/23 16:15:04 ryoon Exp $
-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
+BLAKE2s (alsa-lib-1.2.10.tar.bz2) = 25ee95e555f6dd9f790eefc6da792b0744f123a281327dc70d20cc3cffe5d80b
+SHA512 (alsa-lib-1.2.10.tar.bz2) = 4ccbd1dc5a612044571c26290923009e4c3f7959b30a5d0bed47daa68bbefaff9059c4f0fa3bc16f22c1eed2d36f079139369f40243da5921ae4de02a4541939
+Size (alsa-lib-1.2.10.tar.bz2) = 1107007 bytes
SHA1 (patch-ad) = 79a0f048751899247ec12990cd02332b977af248
-SHA1 (patch-ae) = 7ad3a3c3ee4be2c80fa6b0a2ea28563efd399a60
+SHA1 (patch-ae) = aa730a8e5b5ed9c12564e05937bfc81c94d53e91
SHA1 (patch-af) = 257b06f10616c04c2724e30777b027e5e7e443f9
-SHA1 (patch-ah) = 4dd4e27d0dfb6cedf79775b6d01a0b8c6617cdf0
+SHA1 (patch-ah) = 37079a0b99fba9bd16b2318c9a17359d9c4edb54
SHA1 (patch-aq) = 29fc896b2acad44e5fa9619aca1df5dddd76fa5e
SHA1 (patch-bg) = b726769272dd214e67f2407ed5a0199189540557
-SHA1 (patch-bi) = 5c16d5a9421dcaa131bea8442848e6ab460d1c31
-SHA1 (patch-bj) = 5b7a36747e57e41eddb05cd1b1d9771a36b0c4f7
-SHA1 (patch-bk) = 55754e4d0ac947c2e7e59b604a21fb5798ae5b39
+SHA1 (patch-bi) = 4c60911fe949b858abca9ebecdefc794b008b1c6
+SHA1 (patch-bj) = 59f94d9b54386aa7d1a7edd7ec329211184a8c94
SHA1 (patch-configure.ac) = cc034d07eab13caa5ff8748e8eea37ae9dd367f5
SHA1 (patch-include_error.h) = 9e92d4a51badda1d46305d1e5e36b8197788aa89
SHA1 (patch-include_output.h) = 0a073b53c40293aa7cfa250586c087084002eefe
-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) = 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_pcm_pcm__mmap.c) = bf5b59af96110bf8f51269b86bcf60ec0e23a06e
+SHA1 (patch-src_seq_seq__midi__event.c) = 0201b01b44d6c91716ad1ce5958badadf0cdb264
+SHA1 (patch-src_shmarea.c) = 1a3b508fafe3ef7fda76620ed1c06035f32e9096
SHA1 (patch-src_ucm_main.c) = 1e12f2d8734a98aecd7bbea2d9d80d27d45c1173
SHA1 (patch-src_ucm_parser.c) = cf53012d24ff7df16800be4b0e6287ae0c3b0799
-SHA1 (patch-src_ucm_ucm__exec.c) = 491ae849901285dd8eb89bfd4cac8b57eb23328b
+SHA1 (patch-src_ucm_ucm__exec.c) = 93380f00497c0f645d4bc5375b66f9f05b4934f1
Index: pkgsrc/audio/alsa-lib/patches/patch-ae
diff -u pkgsrc/audio/alsa-lib/patches/patch-ae:1.9 pkgsrc/audio/alsa-lib/patches/patch-ae:1.10
--- pkgsrc/audio/alsa-lib/patches/patch-ae:1.9 Fri Jun 3 15:45:44 2016
+++ pkgsrc/audio/alsa-lib/patches/patch-ae Thu Nov 23 16:15:04 2023
@@ -1,14 +1,14 @@
-$NetBSD: patch-ae,v 1.9 2016/06/03 15:45:44 jperkin Exp $
+$NetBSD: patch-ae,v 1.10 2023/11/23 16:15:04 ryoon Exp $
- Don't assert GNU ld on Solaris, where it might not be true.
- Add endian compat.
---- include/local.h.orig 2016-03-31 13:10:39.000000000 +0000
+--- include/local.h.orig 2023-05-04 07:16:16.000000000 +0000
+++ include/local.h
-@@ -43,6 +43,15 @@
+@@ -45,6 +45,15 @@
+ #endif
#ifndef __BIG_ENDIAN
#define __BIG_ENDIAN BIG_ENDIAN
- #endif
+#elif defined(__sun)
+#include <sys/byteorder.h>
+#define __LITTLE_ENDIAN 1234
@@ -18,10 +18,10 @@ $NetBSD: patch-ae,v 1.9 2016/06/03 15:45
+#else
+#define __BYTE_ORDER __LITTLE_ENDIAN
+#endif
- #else
- #error Header defining endianness not defined
#endif
-@@ -253,7 +262,9 @@ extern snd_lib_error_handler_t snd_err_m
+ #include <stdarg.h>
+ #include <poll.h>
+@@ -274,7 +283,9 @@ extern snd_lib_error_handler_t snd_err_m
/*
*/
Index: pkgsrc/audio/alsa-lib/patches/patch-ah
diff -u pkgsrc/audio/alsa-lib/patches/patch-ah:1.4 pkgsrc/audio/alsa-lib/patches/patch-ah:1.5
--- pkgsrc/audio/alsa-lib/patches/patch-ah:1.4 Fri Apr 15 08:47:50 2016
+++ pkgsrc/audio/alsa-lib/patches/patch-ah Thu Nov 23 16:15:04 2023
@@ -1,13 +1,13 @@
-$NetBSD: patch-ah,v 1.4 2016/04/15 08:47:50 wiz Exp $
+$NetBSD: patch-ah,v 1.5 2023/11/23 16:15:04 ryoon Exp $
---- src/pcm/pcm.c.orig 2013-07-08 12:31:36.000000000 +0000
+--- src/pcm/pcm.c.orig 2023-05-04 07:16:16.000000000 +0000
+++ src/pcm/pcm.c
-@@ -630,7 +630,7 @@ playback devices.
-
- #include <stdio.h>
+@@ -662,6 +662,8 @@ playback devices.
#include <string.h>
--#include <malloc.h>
+ #if HAVE_MALLOC_H
+ #include <malloc.h>
++#else
+#include <stdlib.h>
+ #endif
#include <stdarg.h>
#include <signal.h>
- #include <ctype.h>
Index: pkgsrc/audio/alsa-lib/patches/patch-bi
diff -u pkgsrc/audio/alsa-lib/patches/patch-bi:1.3 pkgsrc/audio/alsa-lib/patches/patch-bi:1.4
--- pkgsrc/audio/alsa-lib/patches/patch-bi:1.3 Fri Jul 15 21:17:25 2022
+++ pkgsrc/audio/alsa-lib/patches/patch-bi Thu Nov 23 16:15:04 2023
@@ -1,14 +1,14 @@
-$NetBSD: patch-bi,v 1.3 2022/07/15 21:17:25 wiz Exp $
+$NetBSD: patch-bi,v 1.4 2023/11/23 16:15:04 ryoon Exp $
For dlopen(), dlclose()...
---- src/pcm/pcm_ladspa.c.orig 2022-06-17 09:42:05.000000000 +0000
+--- src/pcm/pcm_ladspa.c.orig 2023-09-01 15:35:48.000000000 +0000
+++ src/pcm/pcm_ladspa.c
-@@ -34,6 +34,7 @@
-
- #include "config.h"
+@@ -35,6 +35,7 @@
+ #include "pcm_local.h"
+ #include "pcm_plugin.h"
#include <dirent.h>
+#include <dlfcn.h>
#include <locale.h>
#include <math.h>
- #include "pcm_local.h"
+
Index: pkgsrc/audio/alsa-lib/patches/patch-src_pcm_pcm__mmap.c
diff -u pkgsrc/audio/alsa-lib/patches/patch-src_pcm_pcm__mmap.c:1.3 pkgsrc/audio/alsa-lib/patches/patch-src_pcm_pcm__mmap.c:1.4
--- pkgsrc/audio/alsa-lib/patches/patch-src_pcm_pcm__mmap.c:1.3 Wed May 12 14:12:13 2021
+++ pkgsrc/audio/alsa-lib/patches/patch-src_pcm_pcm__mmap.c Thu Nov 23 16:15:04 2023
@@ -1,13 +1,13 @@
-$NetBSD: patch-src_pcm_pcm__mmap.c,v 1.3 2021/05/12 14:12:13 ryoon Exp $
+$NetBSD: patch-src_pcm_pcm__mmap.c,v 1.4 2023/11/23 16:15:04 ryoon Exp $
---- src/pcm/pcm_mmap.c.orig 2020-06-29 10:51:08.000000000 +0000
+--- src/pcm/pcm_mmap.c.orig 2023-05-04 07:16:16.000000000 +0000
+++ src/pcm/pcm_mmap.c
-@@ -20,7 +20,7 @@
-
- #include "config.h"
+@@ -22,6 +22,8 @@
#include <stdio.h>
--#include <malloc.h>
+ #if HAVE_MALLOC_H
+ #include <malloc.h>
++#else
+#include <stdlib.h>
+ #endif
#include <string.h>
#include <poll.h>
- #include <sys/mman.h>
Index: pkgsrc/audio/alsa-lib/patches/patch-src_shmarea.c
diff -u pkgsrc/audio/alsa-lib/patches/patch-src_shmarea.c:1.3 pkgsrc/audio/alsa-lib/patches/patch-src_shmarea.c:1.4
--- pkgsrc/audio/alsa-lib/patches/patch-src_shmarea.c:1.3 Wed May 12 14:12:13 2021
+++ pkgsrc/audio/alsa-lib/patches/patch-src_shmarea.c Thu Nov 23 16:15:04 2023
@@ -1,13 +1,13 @@
-$NetBSD: patch-src_shmarea.c,v 1.3 2021/05/12 14:12:13 ryoon Exp $
+$NetBSD: patch-src_shmarea.c,v 1.4 2023/11/23 16:15:04 ryoon Exp $
---- src/shmarea.c.orig 2020-06-29 10:51:08.000000000 +0000
+--- src/shmarea.c.orig 2023-05-04 07:16:16.000000000 +0000
+++ src/shmarea.c
-@@ -24,7 +24,7 @@
- #ifdef HAVE_SYS_SHM_H
-
- #include <stdio.h>
--#include <malloc.h>
+@@ -27,6 +27,8 @@
+ #include <stdlib.h>
+ #if HAVE_MALLOC_H
+ #include <malloc.h>
++#else
+#include <stdlib.h>
+ #endif
#include <string.h>
#include <errno.h>
- #include <poll.h>
Index: pkgsrc/audio/alsa-lib/patches/patch-bj
diff -u pkgsrc/audio/alsa-lib/patches/patch-bj:1.1 pkgsrc/audio/alsa-lib/patches/patch-bj:1.2
--- pkgsrc/audio/alsa-lib/patches/patch-bj:1.1 Thu Dec 25 13:18:00 2008
+++ pkgsrc/audio/alsa-lib/patches/patch-bj Thu Nov 23 16:15:04 2023
@@ -1,17 +1,17 @@
-$NetBSD: patch-bj,v 1.1 2008/12/25 13:18:00 hasso Exp $
+$NetBSD: patch-bj,v 1.2 2023/11/23 16:15:04 ryoon Exp $
---- src/pcm/pcm_direct.c.orig 2008-12-25 07:49:08 +0200
-+++ src/pcm/pcm_direct.c 2008-12-25 07:48:37 +0200
-@@ -44,7 +44,7 @@
- *
+--- src/pcm/pcm_direct.c.orig 2023-05-04 07:16:16.000000000 +0000
++++ src/pcm/pcm_direct.c
+@@ -45,7 +45,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 */
-@@ -58,7 +58,7 @@ union semun {
+@@ -62,7 +62,7 @@ union semun {
int snd_pcm_direct_semaphore_create_or_connect(snd_pcm_direct_t *dmix)
{
Index: pkgsrc/audio/alsa-lib/patches/patch-src_ucm_ucm__exec.c
diff -u pkgsrc/audio/alsa-lib/patches/patch-src_ucm_ucm__exec.c:1.1 pkgsrc/audio/alsa-lib/patches/patch-src_ucm_ucm__exec.c:1.2
--- pkgsrc/audio/alsa-lib/patches/patch-src_ucm_ucm__exec.c:1.1 Mon Jun 28 10:10:50 2021
+++ pkgsrc/audio/alsa-lib/patches/patch-src_ucm_ucm__exec.c Thu Nov 23 16:15:04 2023
@@ -1,8 +1,8 @@
-$NetBSD: patch-src_ucm_ucm__exec.c,v 1.1 2021/06/28 10:10:50 wiz Exp $
+$NetBSD: patch-src_ucm_ucm__exec.c,v 1.2 2023/11/23 16:15:04 ryoon 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.orig 2023-05-04 07:16:16.000000000 +0000
+++ src/ucm/ucm_exec.c
@@ -32,6 +32,7 @@
#include <sys/wait.h>
@@ -10,9 +10,9 @@ Add missing header and remove undefined
#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)
+ #if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <signal.h>
+@@ -261,7 +262,7 @@ int uc_mgr_exec(const char *prog)
signal(SIGINT, SIG_DFL);
signal(SIGQUIT, SIG_DFL);
Index: pkgsrc/audio/alsa-lib/patches/patch-src_seq_seq__midi__event.c
diff -u pkgsrc/audio/alsa-lib/patches/patch-src_seq_seq__midi__event.c:1.2 pkgsrc/audio/alsa-lib/patches/patch-src_seq_seq__midi__event.c:1.3
--- pkgsrc/audio/alsa-lib/patches/patch-src_seq_seq__midi__event.c:1.2 Wed May 12 14:12:13 2021
+++ pkgsrc/audio/alsa-lib/patches/patch-src_seq_seq__midi__event.c Thu Nov 23 16:15:04 2023
@@ -1,13 +1,13 @@
-$NetBSD: patch-src_seq_seq__midi__event.c,v 1.2 2021/05/12 14:12:13 ryoon Exp $
+$NetBSD: patch-src_seq_seq__midi__event.c,v 1.3 2023/11/23 16:15:04 ryoon Exp $
---- src/seq/seq_midi_event.c.orig 2020-06-29 10:51:08.000000000 +0000
+--- src/seq/seq_midi_event.c.orig 2023-05-04 07:16:16.000000000 +0000
+++ src/seq/seq_midi_event.c
-@@ -28,7 +28,7 @@
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
+@@ -30,6 +30,8 @@
--#include <malloc.h>
+ #if HAVE_MALLOC_H
+ #include <malloc.h>
++#else
+#include <stdlib.h>
+ #endif
#include "local.h"
- #ifndef DOC_HIDDEN
Index: pkgsrc/audio/alsa-utils/Makefile
diff -u pkgsrc/audio/alsa-utils/Makefile:1.27 pkgsrc/audio/alsa-utils/Makefile:1.28
--- pkgsrc/audio/alsa-utils/Makefile:1.27 Wed Jul 19 14:16:11 2023
+++ pkgsrc/audio/alsa-utils/Makefile Thu Nov 23 16:15:04 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2023/07/19 14:16:11 vins Exp $
+# $NetBSD: Makefile,v 1.28 2023/11/23 16:15:04 ryoon Exp $
-DISTNAME= alsa-utils-1.2.6
+DISTNAME= alsa-utils-1.2.10
CATEGORIES= audio
MASTER_SITES= ftp://ftp.alsa-project.org/pub/utils/
EXTRACT_SUFX= .tar.bz2
@@ -17,6 +17,7 @@ USE_NCURSES= yes
LDFLAGS.DragonFly= -lm
LDFLAGS.SunOS+= -lm -lsocket -lnsl
LDFLAGS.Linux+= -lm -lpthread
+LDFLAGS.NetBSD= -lm -pthread
CPPFLAGS.NetBSD+= -D__u32=uint32_t -D__u64=uint64_t
CPPFLAGS.NetBSD+= -Dbswap_16=bswap16 -Dbswap_32=bswap32
CPPFLAGS.NetBSD+= -Doff64_t=off_t
Index: pkgsrc/audio/alsa-utils/PLIST
diff -u pkgsrc/audio/alsa-utils/PLIST:1.6 pkgsrc/audio/alsa-utils/PLIST:1.7
--- pkgsrc/audio/alsa-utils/PLIST:1.6 Wed May 12 14:13:21 2021
+++ pkgsrc/audio/alsa-utils/PLIST Thu Nov 23 16:15:04 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2021/05/12 14:13:21 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.7 2023/11/23 16:15:04 ryoon Exp $
bin/aconnect
bin/alsabat
bin/alsaloop
@@ -15,7 +15,9 @@ bin/aseqdump
bin/aseqnet
bin/axfer
bin/iecset
+bin/nhlt-dmic-info
bin/speaker-test
+lib/alsa-topology/libalsatplg_module_nhlt.la
man/fr/man8/alsaconf.8
man/man1/aconnect.1
man/man1/alsa-info.sh.1
@@ -35,6 +37,7 @@ man/man1/axfer-list.1
man/man1/axfer-transfer.1
man/man1/axfer.1
man/man1/iecset.1
+man/man1/nhlt-dmic-info.1
man/man1/speaker-test.1
man/man7/alsactl_init.7
man/man8/alsaconf.8
@@ -49,7 +52,6 @@ share/alsa/init/hda
share/alsa/init/help
share/alsa/init/info
share/alsa/init/test
-share/alsa/speaker-test/sample_map.csv
share/sounds/alsa/Front_Center.wav
share/sounds/alsa/Front_Left.wav
share/sounds/alsa/Front_Right.wav
Index: pkgsrc/audio/alsa-utils/distinfo
diff -u pkgsrc/audio/alsa-utils/distinfo:1.16 pkgsrc/audio/alsa-utils/distinfo:1.17
--- pkgsrc/audio/alsa-utils/distinfo:1.16 Mon Jan 24 10:09:30 2022
+++ pkgsrc/audio/alsa-utils/distinfo Thu Nov 23 16:15:04 2023
@@ -1,14 +1,38 @@
-$NetBSD: distinfo,v 1.16 2022/01/24 10:09:30 wiz Exp $
+$NetBSD: distinfo,v 1.17 2023/11/23 16:15:04 ryoon Exp $
-BLAKE2s (alsa-utils-1.2.6.tar.bz2) = 9cf4cf315025288901f28a31cad5d77188577d220475d4a4c170a24eeb08f56d
-SHA512 (alsa-utils-1.2.6.tar.bz2) = 6842f0f4c2f7cc5ac3ba94736ee259d9988b5d3e0d2b522f858d712e16938d2845fa9ef64f4aa60222b8ef6738e053f9113a5ea24a197f2c0d6c4dbd70030f5e
-Size (alsa-utils-1.2.6.tar.bz2) = 1334063 bytes
+BLAKE2s (alsa-utils-1.2.10.tar.bz2) = 3153d5d33510b087101aa6fca597ab35558b2ab771e5a4ae487bcf6c1704f7f7
+SHA512 (alsa-utils-1.2.10.tar.bz2) = 22adedf6d491d7768d24f054262a9c12bc952049db8374e104c0477ebf84266dcbeb0a2a3a1765b89958073d341f64dedbae63e3cae66f4983a0424e5cb3243f
+Size (alsa-utils-1.2.10.tar.bz2) = 1625707 bytes
SHA1 (patch-aa) = c1f3ef3636640d7ccdc2430b4b6b417f3ea1363f
SHA1 (patch-ab) = a24b76ddf0573679113d99e428229c5c81a486eb
-SHA1 (patch-ac) = 19f9570bedfb00068aad244033eb6e6436a6546d
-SHA1 (patch-ad) = 4da5adfbd3fcc0611c6394bf00f2b684e735dbd2
SHA1 (patch-alsactl_alsactl.c) = e9e63fd8d4fe50da918faae8e77ac1cf71dd74d0
-SHA1 (patch-alsaloop_alsaloop.c) = f281b7cdc75a31a4b06fbce56fc2c51b2371cd0b
-SHA1 (patch-alsaloop_pcmjob.c) = 9a09a103d390ee5d7586e19c688a2c621ee1c6f6
-SHA1 (patch-amidi_amidi.c) = d968ea97ac0de93b53f667d27c7206bc7de07e37
-SHA1 (patch-bat_alsa.c) = e38111b0541c76f9d7d8330e59b2294e7f8ab820
+SHA1 (patch-alsaloop_alsaloop.c) = 44bd5b1fdc4ab36269cc011c30368521d110c55f
+SHA1 (patch-alsaloop_pcmjob.c) = 1bd1b5975aeba166ed5e2427cf56f0df1a556588
+SHA1 (patch-alsaucm_dump.c) = 0f53bbc001d7e2ec5beccfe472090b93656e4471
+SHA1 (patch-amidi_amidi.c) = cc42708be49986a92f1fb15f16b980d9d9a03459
+SHA1 (patch-axfer_container-raw.c) = d4c89f37278b53ca4c57d1e310789c71f685edec
+SHA1 (patch-axfer_mapper-single.c) = acaef762d199409753a3a64f52fe5d4e6b588842
+SHA1 (patch-axfer_subcmd-list.c) = 45393b04ed16397184562b936604ca0e9bdf619e
+SHA1 (patch-axfer_subcmd-transfer.c) = b44a82c165f2b0ea929ff64af044561f3d473e3a
+SHA1 (patch-axfer_waiter-poll.c) = 38664785ad2ac81c69e0d81e68b3586a43400d62
+SHA1 (patch-axfer_waiter-select.c) = 3773416e4f188ce726b2ba1c3ad0e81e11e7362a
+SHA1 (patch-axfer_waiter.h) = d4c9569ee39b4ca0d35a93f4bcc441b08db6921e
+SHA1 (patch-axfer_xfer-libasound-irq-rw.c) = 5800c03657206b5dad00124cfcba6dcbc4e330bc
+SHA1 (patch-axfer_xfer-libasound.c) = 8a85eeda59b8e5f692cf753187f0be47f1fa7e68
+SHA1 (patch-axfer_xfer-options.c) = 2cc12e67b54fa53e674cdb043f04e0f8c2e393b0
+SHA1 (patch-bat_alsa.c) = 9e07f6a3a27588c0e1e4a76532f9aa5a260bd614
+SHA1 (patch-bat_bat.c) = 019478e027b461e74e298a0bb88e3c0339ec2314
+SHA1 (patch-bat_common.c) = 9d9a0d0c34db6759684e703a459260d6568af521
+SHA1 (patch-bat_common.h) = cfbc32b2afa4222260a722348ca52ca08dbfbb4e
+SHA1 (patch-seq_aconnect_aconnect.c) = 06808297cc4e7cde6ae2cfc51549dfde78ede853
+SHA1 (patch-seq_aplaymidi_arecordmidi.c) = 888f357809e6938373f2d51dd84913e74589c18d
+SHA1 (patch-seq_aseqdump_aseqdump.c) = 35f0951cc07cc0eecfcf2f4b2561eedc32a0fc44
+SHA1 (patch-seq_aseqnet_aseqnet.c) = e794527dc4f62a6a603ed02066d85a88cb733ced
+SHA1 (patch-topology_nhlt_intel_dmic-nhlt.c) = 672e02fd3e3b4c81308c336394384b099783d159
+SHA1 (patch-topology_nhlt_intel_dmic_dmic-debug.c) = fd855801974dbcdfa87e0f3ae7e144d7f72fa8b5
+SHA1 (patch-topology_nhlt_intel_ssp_ssp-debug.c) = f644713340ac7aa4e194d5bbc6fe4885913ad540
+SHA1 (patch-topology_nhlt_intel_ssp_ssp-process.c) = 203b89236b592d9bece36ff1cb206da2e75c97bd
+SHA1 (patch-topology_nhlt_nhlt-processor.c) = 988896498f0fa7bcbf9839f7d185c709fcc08f6c
+SHA1 (patch-topology_pre-process-class.c) = 4d2a06ad62053bd5b59f3fc0c0207f5829231ff6
+SHA1 (patch-topology_pre-process-object.c) = 3e4546280a94a74c549722771e670832ed1772d6
+SHA1 (patch-topology_pre-processor.c) = e81801747fe5776b68d9b397b9954dac7690c386
Index: pkgsrc/audio/alsa-utils/patches/patch-alsaloop_alsaloop.c
diff -u pkgsrc/audio/alsa-utils/patches/patch-alsaloop_alsaloop.c:1.3 pkgsrc/audio/alsa-utils/patches/patch-alsaloop_alsaloop.c:1.4
--- pkgsrc/audio/alsa-utils/patches/patch-alsaloop_alsaloop.c:1.3 Thu Feb 18 15:16:33 2016
+++ pkgsrc/audio/alsa-utils/patches/patch-alsaloop_alsaloop.c Thu Nov 23 16:15:04 2023
@@ -1,8 +1,8 @@
-$NetBSD: patch-alsaloop_alsaloop.c,v 1.3 2016/02/18 15:16:33 wiz Exp $
+$NetBSD: patch-alsaloop_alsaloop.c,v 1.4 2023/11/23 16:15:04 ryoon Exp $
---- alsaloop/alsaloop.c.orig 2015-10-27 16:34:26.000000000 +0000
+--- alsaloop/alsaloop.c.orig 2023-09-01 15:36:26.000000000 +0000
+++ alsaloop/alsaloop.c
-@@ -24,6 +24,16 @@
+@@ -25,6 +25,16 @@
#include <stdlib.h>
#include <string.h>
#include <sched.h>
@@ -19,9 +19,9 @@ $NetBSD: patch-alsaloop_alsaloop.c,v 1.3
#include <errno.h>
#include <getopt.h>
#include <alsa/asoundlib.h>
-@@ -34,6 +44,10 @@
- #include <signal.h>
+@@ -36,6 +46,10 @@
#include "alsaloop.h"
+ #include "os_compat.h"
+#if !defined(ESTRPIPE)
+#define ESTRPIPE EPIPE
@@ -30,3 +30,12 @@ $NetBSD: patch-alsaloop_alsaloop.c,v 1.3
struct loopback_thread {
int threaded;
pthread_t thread;
+@@ -821,7 +835,7 @@ static void send_to_all(int sig)
+ }
+ }
+
+-static void signal_handler(int)
++static void signal_handler(int sig ATTRIBUTE_UNUSED)
+ {
+ quit = 1;
+ send_to_all(SIGUSR2);
Index: pkgsrc/audio/alsa-utils/patches/patch-alsaloop_pcmjob.c
diff -u pkgsrc/audio/alsa-utils/patches/patch-alsaloop_pcmjob.c:1.2 pkgsrc/audio/alsa-utils/patches/patch-alsaloop_pcmjob.c:1.3
--- pkgsrc/audio/alsa-utils/patches/patch-alsaloop_pcmjob.c:1.2 Thu Feb 18 15:16:33 2016
+++ pkgsrc/audio/alsa-utils/patches/patch-alsaloop_pcmjob.c Thu Nov 23 16:15:04 2023
@@ -1,8 +1,8 @@
-$NetBSD: patch-alsaloop_pcmjob.c,v 1.2 2016/02/18 15:16:33 wiz Exp $
+$NetBSD: patch-alsaloop_pcmjob.c,v 1.3 2023/11/23 16:15:04 ryoon Exp $
---- alsaloop/pcmjob.c.orig 2015-10-27 16:34:26.000000000 +0000
+--- alsaloop/pcmjob.c.orig 2023-09-01 15:36:26.000000000 +0000
+++ alsaloop/pcmjob.c
-@@ -25,6 +25,10 @@
+@@ -26,6 +26,10 @@
#include <stdlib.h>
#include <string.h>
#include <sched.h>
@@ -13,9 +13,9 @@ $NetBSD: patch-alsaloop_pcmjob.c,v 1.2 2
#include <errno.h>
#include <getopt.h>
#include <alsa/asoundlib.h>
-@@ -34,6 +38,10 @@
- #include <pthread.h>
+@@ -36,6 +40,10 @@
#include "alsaloop.h"
+ #include "os_compat.h"
+#if !defined(ESTRPIPE)
+#define ESTRPIPE EPIPE
@@ -24,3 +24,21 @@ $NetBSD: patch-alsaloop_pcmjob.c,v 1.2 2
#define XRUN_PROFILE_UNKNOWN (-10000000)
static int set_rate_shift(struct loopback_handle *lhandle, double pitch);
+@@ -625,7 +633,7 @@ static void buf_add_src(struct loopback
+ }
+ }
+ #else
+-static void buf_add_src(struct loopback *)
++static void buf_add_src(struct loopback *loop ATTRIBUTE_UNUSED)
+ {
+ }
+ #endif
+@@ -1794,7 +1802,7 @@ static int ctl_event_check(snd_ctl_elem_
+ }
+
+ static int handle_ctl_events(struct loopback_handle *lhandle,
+- unsigned short)
++ unsigned short events ATTRIBUTE_UNUSED)
+ {
+ struct loopback *loop = lhandle->loopback;
+ snd_ctl_event_t *ev;
Index: pkgsrc/audio/alsa-utils/patches/patch-amidi_amidi.c
diff -u pkgsrc/audio/alsa-utils/patches/patch-amidi_amidi.c:1.1 pkgsrc/audio/alsa-utils/patches/patch-amidi_amidi.c:1.2
--- pkgsrc/audio/alsa-utils/patches/patch-amidi_amidi.c:1.1 Mon Jan 24 10:09:30 2022
+++ pkgsrc/audio/alsa-utils/patches/patch-amidi_amidi.c Thu Nov 23 16:15:04 2023
@@ -1,17 +1,13 @@
-$NetBSD: patch-amidi_amidi.c,v 1.1 2022/01/24 10:09:30 wiz Exp $
+$NetBSD: patch-amidi_amidi.c,v 1.2 2023/11/23 16:15:04 ryoon Exp $
-NetBSD does not provide CLOCK_MONOTONIC_RAW.
-
---- amidi/amidi.c.orig 2021-12-06 10:17:28.000000000 +0000
+--- amidi/amidi.c.orig 2023-09-01 15:36:26.000000000 +0000
+++ amidi/amidi.c
-@@ -536,8 +536,10 @@ int main(int argc, char *argv[])
- cid = CLOCK_REALTIME;
- else if (strcasecmp(optarg, "monotonic") == 0)
- cid = CLOCK_MONOTONIC;
-+#if defined(CLOCK_MONOTONIC_RAW)
- else if (strcasecmp(optarg, "raw") == 0)
- cid = CLOCK_MONOTONIC_RAW;
-+#endif
- else
- error("Clock type not known");
- break;
+@@ -446,7 +446,7 @@ static void print_byte(unsigned char byt
+ printf("%02X", byte);
+ }
+
+-static void sig_handler(int)
++static void sig_handler(int sig ATTRIBUTE_UNUSED)
+ {
+ stop = 1;
+ }
Index: pkgsrc/audio/alsa-utils/patches/patch-bat_alsa.c
diff -u pkgsrc/audio/alsa-utils/patches/patch-bat_alsa.c:1.1 pkgsrc/audio/alsa-utils/patches/patch-bat_alsa.c:1.2
--- pkgsrc/audio/alsa-utils/patches/patch-bat_alsa.c:1.1 Wed May 12 14:13:22 2021
+++ pkgsrc/audio/alsa-utils/patches/patch-bat_alsa.c Thu Nov 23 16:15:04 2023
@@ -1,10 +1,10 @@
-$NetBSD: patch-bat_alsa.c,v 1.1 2021/05/12 14:13:22 ryoon Exp $
+$NetBSD: patch-bat_alsa.c,v 1.2 2023/11/23 16:15:04 ryoon Exp $
---- bat/alsa.c.orig 2020-10-15 11:32:33.000000000 +0000
+--- bat/alsa.c.orig 2023-09-01 15:36:26.000000000 +0000
+++ bat/alsa.c
-@@ -29,6 +29,10 @@
- #include "alsa.h"
+@@ -31,6 +31,10 @@
#include "latencytest.h"
+ #include "os_compat.h"
+#if !defined(ESTRPIPE)
+#define ESTRPIPE EPIPE
Added files:
Index: pkgsrc/audio/alsa-utils/patches/patch-alsaucm_dump.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-alsaucm_dump.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-alsaucm_dump.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,88 @@
+$NetBSD: patch-alsaucm_dump.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- alsaucm/dump.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ alsaucm/dump.c
+@@ -93,7 +93,8 @@ static char *tesc(const char *s, char *b
+
+ #define ESC(s, esc) tesc((s), (esc), sizeof(esc))
+
+-static int text_verb_start(struct renderer *, const char *verb, const char *comment)
++static int text_verb_start(struct renderer *r ATTRIBUTE_UNUSED,
++ const char *verb, const char *comment)
+ {
+ char buf1[128], buf2[128];
+ printf("Verb.%s {\n", ESC(verb, buf1));
+@@ -102,13 +103,13 @@ static int text_verb_start(struct render
+ return 0;
+ }
+
+-static int text_verb_end(struct renderer *)
++static int text_verb_end(struct renderer *r ATTRIBUTE_UNUSED)
+ {
+ printf("}\n");
+ return 0;
+ }
+
+-static int text_2nd_level_begin(struct renderer *,
++static int text_2nd_level_begin(struct renderer *r ATTRIBUTE_UNUSED,
+ const char *key,
+ const char *val,
+ const char *comment)
+@@ -120,19 +121,19 @@ static int text_2nd_level_begin(struct r
+ return 0;
+ }
+
+-static int text_2nd_level_end(struct renderer *)
++static int text_2nd_level_end(struct renderer *r ATTRIBUTE_UNUSED)
+ {
+ printf("\t}\n");
+ return 0;
+ }
+
+-static int text_2nd_level(struct renderer *, const char *txt)
++static int text_2nd_level(struct renderer *r ATTRIBUTE_UNUSED, const char *txt)
+ {
+ printf("\t\t%s", txt);
+ return 0;
+ }
+
+-static int text_3rd_level(struct renderer *, const char *txt)
++static int text_3rd_level(struct renderer *r ATTRIBUTE_UNUSED, const char *txt)
+ {
+ printf("\t\t\t%s", txt);
+ return 0;
+@@ -266,7 +267,7 @@ static void json_block(struct renderer *
+ j->block[level] = last ? 0 : 1;
+ }
+
+-static int json_init(struct renderer *)
++static int json_init(struct renderer *r ATTRIBUTE_UNUSED)
+ {
+ printf("{\n \"Verbs\": {");
+ return 0;
+@@ -325,13 +326,13 @@ static int json_2nd_level_end(struct ren
+ return 0;
+ }
+
+-static int json_2nd_level(struct renderer *, const char *txt)
++static int json_2nd_level(struct renderer *r ATTRIBUTE_UNUSED, const char *txt)
+ {
+ printf(" %s", txt);
+ return 0;
+ }
+
+-static int json_3rd_level(struct renderer *, const char *txt)
++static int json_3rd_level(struct renderer *r ATTRIBUTE_UNUSED, const char *txt)
+ {
+ printf(" %s", txt);
+ return 0;
+@@ -360,7 +361,8 @@ static int json_supcon_start(struct rend
+ return 0;
+ }
+
+-static int json_supcon_value(struct renderer *r, const char *value, int)
++static int json_supcon_value(struct renderer *r, const char *value,
++ int last ATTRIBUTE_UNUSED)
+ {
+ char buf[256];
+ JESC(value, buf);
Index: pkgsrc/audio/alsa-utils/patches/patch-axfer_container-raw.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-axfer_container-raw.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-axfer_container-raw.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,32 @@
+$NetBSD: patch-axfer_container-raw.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- axfer/container-raw.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ axfer/container-raw.c
+@@ -13,10 +13,10 @@
+ #include <sys/stat.h>
+ #include <unistd.h>
+
+-static int raw_builder_pre_process(struct container_context *,
+- snd_pcm_format_t *,
+- unsigned int *,
+- unsigned int *,
++static int raw_builder_pre_process(struct container_context *cntr ATTRIBUTE_UNUSED,
++ snd_pcm_format_t *format ATTRIBUTE_UNUSED,
++ unsigned int *samples_per_frame ATTRIBUTE_UNUSED,
++ unsigned int *frames_per_second ATTRIBUTE_UNUSED,
+ uint64_t *byte_count)
+ {
+ *byte_count = UINT64_MAX;
+@@ -25,9 +25,9 @@ static int raw_builder_pre_process(struc
+ }
+
+ static int raw_parser_pre_process(struct container_context *cntr,
+- snd_pcm_format_t *,
+- unsigned int *,
+- unsigned int *,
++ snd_pcm_format_t *format ATTRIBUTE_UNUSED,
++ unsigned int *samples_per_frame ATTRIBUTE_UNUSED,
++ unsigned int *frames_per_second ATTRIBUTE_UNUSED,
+ uint64_t *byte_count)
+ {
+ struct stat buf = {0};
Index: pkgsrc/audio/alsa-utils/patches/patch-axfer_mapper-single.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-axfer_mapper-single.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-axfer_mapper-single.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,31 @@
+$NetBSD: patch-axfer_mapper-single.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- axfer/mapper-single.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ axfer/mapper-single.c
+@@ -62,7 +62,7 @@ static void align_from_vector(void *fram
+
+ static int single_pre_process(struct mapper_context *mapper,
+ struct container_context *cntrs,
+- unsigned int)
++ unsigned int cntr_count ATTRIBUTE_UNUSED)
+ {
+ struct single_state *state = mapper->private_data;
+ unsigned int bytes_per_buffer;
+@@ -110,7 +110,7 @@ static int single_muxer_process_frames(s
+ void *frame_buf,
+ unsigned int *frame_count,
+ struct container_context *cntrs,
+- unsigned int)
++ unsigned int cntr_count ATTRIBUTE_UNUSED)
+ {
+ struct single_state *state = mapper->private_data;
+ void *src;
+@@ -141,7 +141,7 @@ static int single_demuxer_process_frames
+ void *frame_buf,
+ unsigned int *frame_count,
+ struct container_context *cntrs,
+- unsigned int)
++ unsigned int cntr_count ATTRIBUTE_UNUSED)
+ {
+ struct single_state *state = mapper->private_data;
+ void *dst;
Index: pkgsrc/audio/alsa-utils/patches/patch-axfer_subcmd-list.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-axfer_subcmd-list.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-axfer_subcmd-list.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,13 @@
+$NetBSD: patch-axfer_subcmd-list.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- axfer/subcmd-list.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ axfer/subcmd-list.c
+@@ -19,7 +19,7 @@ enum list_op {
+ };
+
+ static int dump_device(snd_ctl_t *handle, const char *id, const char *name,
+- snd_pcm_stream_t, snd_pcm_info_t *info)
++ snd_pcm_stream_t stream ATTRIBUTE_UNUSED, snd_pcm_info_t *info)
+ {
+ unsigned int i, count;
+ int err;
Index: pkgsrc/audio/alsa-utils/patches/patch-axfer_subcmd-transfer.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-axfer_subcmd-transfer.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-axfer_subcmd-transfer.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,22 @@
+$NetBSD: patch-axfer_subcmd-transfer.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- axfer/subcmd-transfer.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ axfer/subcmd-transfer.c
+@@ -40,7 +40,7 @@ static void handle_unix_signal_for_finis
+ ctx_ptr->interrupted = true;
+ }
+
+-static void handle_unix_signal_for_suspend(int)
++static void handle_unix_signal_for_suspend(int sig ATTRIBUTE_UNUSED)
+ {
+ sigset_t curr, prev;
+ struct sigaction sa = {0};
+@@ -439,7 +439,7 @@ static int context_process_frames(struct
+ }
+
+ static void context_post_process(struct context *ctx,
+- uint64_t)
++ uint64_t accumulated_frame_count ATTRIBUTE_UNUSED)
+ {
+ uint64_t total_frame_count;
+ unsigned int i;
Index: pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter-poll.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter-poll.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter-poll.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,22 @@
+$NetBSD: patch-axfer_waiter-poll.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- axfer/waiter-poll.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ axfer/waiter-poll.c
+@@ -13,7 +13,7 @@
+ #include <errno.h>
+ #include <poll.h>
+
+-static int poll_prepare(struct waiter_context *)
++static int poll_prepare(struct waiter_context *waiter ATTRIBUTE_UNUSED)
+ {
+ // Nothing to do because an instance of waiter has required data.
+ return 0;
+@@ -30,7 +30,7 @@ static int poll_wait_event(struct waiter
+ return err;
+ }
+
+-static void poll_release(struct waiter_context *)
++static void poll_release(struct waiter_context *waiter ATTRIBUTE_UNUSED)
+ {
+ // Nothing to do because an instance of waiter has required data.
+ return;
Index: pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter-select.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter-select.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter-select.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,22 @@
+$NetBSD: patch-axfer_waiter-select.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- axfer/waiter-select.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ axfer/waiter-select.c
+@@ -34,7 +34,7 @@ struct select_state {
+ fd_set rfds_ex;
+ };
+
+-static int select_prepare(struct waiter_context *)
++static int select_prepare(struct waiter_context *waiter ATTRIBUTE_UNUSED)
+ {
+ return 0;
+ }
+@@ -94,7 +94,7 @@ static int select_wait_event(struct wait
+ return err;
+ }
+
+-static void select_release(struct waiter_context *)
++static void select_release(struct waiter_context *waiter ATTRIBUTE_UNUSED)
+ {
+ return;
+ }
Index: pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter.h
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter.h:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-axfer_waiter.h Thu Nov 23 16:15:04 2023
@@ -0,0 +1,12 @@
+$NetBSD: patch-axfer_waiter.h,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- axfer/waiter.h.orig 2023-09-01 15:36:26.000000000 +0000
++++ axfer/waiter.h
+@@ -9,6 +9,7 @@
+ #ifndef __ALSA_UTILS_AXFER_WAITER__H_
+ #define __ALSA_UTILS_AXFER_WAITER__H_
+
++#include <alsa/global.h>
+ #include <poll.h>
+
+ enum waiter_type {
Index: pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-libasound-irq-rw.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-libasound-irq-rw.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-libasound-irq-rw.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,13 @@
+$NetBSD: patch-axfer_xfer-libasound-irq-rw.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- axfer/xfer-libasound-irq-rw.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ axfer/xfer-libasound-irq-rw.c
+@@ -313,7 +313,7 @@ error:
+ }
+
+ static int w_process_frames_nonblocking(struct libasound_state *state,
+- snd_pcm_state_t,
++ snd_pcm_state_t pcm_state ATTRIBUTE_UNUSED,
+ unsigned int *frame_count,
+ struct mapper_context *mapper,
+ struct container_context *cntrs)
Index: pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-libasound.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-libasound.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-libasound.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,22 @@
+$NetBSD: patch-axfer_xfer-libasound.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- axfer/xfer-libasound.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ axfer/xfer-libasound.c
+@@ -60,7 +60,7 @@ static const struct option l_opts[] = {
+ };
+
+ static int xfer_libasound_init(struct xfer_context *xfer,
+- snd_pcm_stream_t)
++ snd_pcm_stream_t stream ATTRIBUTE_UNUSED)
+ {
+ struct libasound_state *state = xfer->private_data;
+ int err;
+@@ -887,7 +887,7 @@ static void xfer_libasound_destroy(struc
+ state->log = NULL;
+ }
+
+-static void xfer_libasound_help(struct xfer_context *)
++static void xfer_libasound_help(struct xfer_context *xfer ATTRIBUTE_UNUSED)
+ {
+ printf(
+ " [BASICS]\n"
Index: pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-options.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-options.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-axfer_xfer-options.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,14 @@
+$NetBSD: patch-axfer_xfer-options.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- axfer/xfer-options.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ axfer/xfer-options.c
+@@ -447,7 +447,8 @@ static int generate_path_with_suffix(str
+
+ static int generate_path_without_suffix(struct xfer_context *xfer,
+ const char *template,
+- unsigned int index, const char *)
++ unsigned int index,
++ const char *suffix ATTRIBUTE_UNUSED)
+ {
+ static const char *const single_format = "%s";
+ static const char *const multiple_format = "%s-%i";
Index: pkgsrc/audio/alsa-utils/patches/patch-bat_bat.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-bat_bat.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-bat_bat.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,14 @@
+$NetBSD: patch-bat_bat.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- bat/bat.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ bat/bat.c
+@@ -158,7 +158,8 @@ static void get_format(struct bat *bat,
+ }
+ }
+
+-static inline int thread_wait_completion(struct bat *, pthread_t id, int **val)
++static inline int thread_wait_completion(struct bat *bat ATTRIBUTE_UNUSED,
++ pthread_t id, int **val)
+ {
+ int err;
+
Index: pkgsrc/audio/alsa-utils/patches/patch-bat_common.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-bat_common.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-bat_common.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,14 @@
+$NetBSD: patch-bat_common.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- bat/common.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ bat/common.c
+@@ -47,7 +47,8 @@ static int update_fmt_to_bat(struct bat
+ }
+
+ /* calculate frames and update to bat */
+-static int update_frames_to_bat(struct bat *bat, struct wav_chunk_header *header, FILE *)
++static int update_frames_to_bat(struct bat *bat, struct wav_chunk_header *header,
++ FILE *file ATTRIBUTE_UNUSED)
+ {
+ /* The number of analyzed captured frames is arbitrarily set to half of
+ the number of frames of the wav file or the number of frames of the
Index: pkgsrc/audio/alsa-utils/patches/patch-bat_common.h
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-bat_common.h:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-bat_common.h Thu Nov 23 16:15:04 2023
@@ -0,0 +1,16 @@
+$NetBSD: patch-bat_common.h,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- bat/common.h.orig 2023-09-01 15:36:26.000000000 +0000
++++ bat/common.h
+@@ -13,6 +13,11 @@
+ *
+ */
+
++#ifndef ATTRIBUTE_UNUSED
++/** do not print warning (gcc) when function parameter is not used */
++#define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
++#endif
++
+ #define TEMP_RECORD_FILE_NAME "/tmp/bat.wav.XXXXXX"
+ #define DEFAULT_DEV_NAME "default"
+
Index: pkgsrc/audio/alsa-utils/patches/patch-seq_aconnect_aconnect.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-seq_aconnect_aconnect.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-seq_aconnect_aconnect.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,27 @@
+$NetBSD: patch-seq_aconnect_aconnect.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- seq/aconnect/aconnect.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ seq/aconnect/aconnect.c
+@@ -193,7 +193,8 @@ static void do_search_port(snd_seq_t *se
+ }
+
+
+-static void print_port(snd_seq_t *, snd_seq_client_info_t *cinfo,
++static void print_port(snd_seq_t *seq ATTRIBUTE_UNUSED,
++ snd_seq_client_info_t *cinfo,
+ snd_seq_port_info_t *pinfo, int count)
+ {
+ if (! count) {
+@@ -247,8 +248,10 @@ static void print_port_and_subs(snd_seq_
+ /*
+ * remove all (exported) connections
+ */
+-static void remove_connection(snd_seq_t *seq, snd_seq_client_info_t *,
+- snd_seq_port_info_t *pinfo, int)
++static void remove_connection(snd_seq_t *seq,
++ snd_seq_client_info_t *info ATTRIBUTE_UNUSED,
++ snd_seq_port_info_t *pinfo,
++ int count ATTRIBUTE_UNUSED)
+ {
+ snd_seq_query_subscribe_t *query;
+ snd_seq_port_info_t *port;
Index: pkgsrc/audio/alsa-utils/patches/patch-seq_aplaymidi_arecordmidi.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-seq_aplaymidi_arecordmidi.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-seq_aplaymidi_arecordmidi.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,13 @@
+$NetBSD: patch-seq_aplaymidi_arecordmidi.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- seq/aplaymidi/arecordmidi.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ seq/aplaymidi/arecordmidi.c
+@@ -719,7 +719,7 @@ static void version(void)
+ fputs("arecordmidi version " SND_UTIL_VERSION_STR "\n", stderr);
+ }
+
+-static void sighandler(int)
++static void sighandler(int sig ATTRIBUTE_UNUSED)
+ {
+ stop = 1;
+ }
Index: pkgsrc/audio/alsa-utils/patches/patch-seq_aseqdump_aseqdump.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-seq_aseqdump_aseqdump.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-seq_aseqdump_aseqdump.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,13 @@
+$NetBSD: patch-seq_aseqdump_aseqdump.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- seq/aseqdump/aseqdump.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ seq/aseqdump/aseqdump.c
+@@ -676,7 +676,7 @@ static void version(void)
+ puts("aseqdump version " SND_UTIL_VERSION_STR);
+ }
+
+-static void sighandler(int)
++static void sighandler(int sig ATTRIBUTE_UNUSED)
+ {
+ stop = 1;
+ }
Index: pkgsrc/audio/alsa-utils/patches/patch-seq_aseqnet_aseqnet.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-seq_aseqnet_aseqnet.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-seq_aseqnet_aseqnet.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,13 @@
+$NetBSD: patch-seq_aseqnet_aseqnet.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- seq/aseqnet/aseqnet.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ seq/aseqnet/aseqnet.c
+@@ -334,7 +334,7 @@ static void get_net_addr(struct addrinfo
+ /*
+ * signal handler
+ */
+-static void sigterm_exit(int)
++static void sigterm_exit(int sig ATTRIBUTE_UNUSED)
+ {
+ close_files();
+ exit(1);
Index: pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_dmic-nhlt.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_dmic-nhlt.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_dmic-nhlt.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,21 @@
+$NetBSD: patch-topology_nhlt_intel_dmic-nhlt.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- topology/nhlt/intel/dmic-nhlt.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ topology/nhlt/intel/dmic-nhlt.c
+@@ -10,6 +10,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <alsa/global.h>
+ #include <alsa/input.h>
+ #include <alsa/output.h>
+ #include <alsa/conf.h>
+@@ -155,7 +156,7 @@ static int set_vendor_mic_data(struct in
+ horizontal_angle_end);
+ }
+
+-static int set_bytes_data(struct intel_nhlt_params *, snd_config_t *cfg)
++static int set_bytes_data(struct intel_nhlt_params *nhlt ATTRIBUTE_UNUSED, snd_config_t *cfg)
+ {
+ snd_config_iterator_t i, next;
+ snd_config_t *n;
Index: pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_dmic_dmic-debug.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_dmic_dmic-debug.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_dmic_dmic-debug.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,23 @@
+$NetBSD: patch-topology_nhlt_intel_dmic_dmic-debug.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- topology/nhlt/intel/dmic/dmic-debug.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ topology/nhlt/intel/dmic/dmic-debug.c
+@@ -8,6 +8,7 @@
+ #include "aconfig.h"
+ #include <stdio.h>
+ #include <stdint.h>
++#include <alsa/global.h>
+ #include "dmic-debug.h"
+
+ #ifdef NHLT_DEBUG
+@@ -181,7 +182,7 @@ void dmic_print_internal(struct intel_dm
+ }
+
+ #else /* NHLT_DEBUG */
+-void dmic_print_bytes_as_hex(uint8_t *, size_t) {}
+-void dmic_print_integers_as_hex(uint32_t *, size_t) {}
+-void dmic_print_internal(struct intel_dmic_params *) {}
++void dmic_print_bytes_as_hex(uint8_t *src ATTRIBUTE_UNUSED, size_t size ATTRIBUTE_UNUSED) {}
++void dmic_print_integers_as_hex(uint32_t *src ATTRIBUTE_UNUSED, size_t size ATTRIBUTE_UNUSED) {}
++void dmic_print_internal(struct intel_dmic_params *dmic ATTRIBUTE_UNUSED) {}
+ #endif
Index: pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_ssp_ssp-debug.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_ssp_ssp-debug.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_ssp_ssp-debug.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,21 @@
+$NetBSD: patch-topology_nhlt_intel_ssp_ssp-debug.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- topology/nhlt/intel/ssp/ssp-debug.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ topology/nhlt/intel/ssp/ssp-debug.c
+@@ -7,6 +7,7 @@
+ #include "aconfig.h"
+ #include <stdio.h>
+ #include <stdint.h>
++#include <alsa/global.h>
+ #include "ssp-debug.h"
+ #include "../intel-nhlt.h"
+
+@@ -252,6 +253,6 @@ void ssp_print_internal(struct intel_ssp
+ }
+
+ #else /* NHLT_DEBUG */
+-void ssp_print_internal(struct intel_ssp_params *) {}
+-void ssp_print_calculated(struct intel_ssp_params *) {}
++void ssp_print_internal(struct intel_ssp_params *ssp ATTRIBUTE_UNUSED) {}
++void ssp_print_calculated(struct intel_ssp_params *ssp ATTRIBUTE_UNUSED) {}
+ #endif
Index: pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_ssp_ssp-process.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_ssp_ssp-process.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_intel_ssp_ssp-process.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,42 @@
+$NetBSD: patch-topology_nhlt_intel_ssp_ssp-process.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- topology/nhlt/intel/ssp/ssp-process.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ topology/nhlt/intel/ssp/ssp-process.c
+@@ -14,6 +14,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdbool.h>
++#include <alsa/global.h>
+ #include <alsa/input.h>
+ #include <alsa/output.h>
+ #include <alsa/conf.h>
+@@ -25,7 +26,7 @@
+ #include "ssp-internal.h"
+ #include "ssp-debug.h"
+
+-static int popcount(uint32_t value)
++static int alpopcount(uint32_t value)
+ {
+ int bits_set = 0;
+
+@@ -431,8 +432,8 @@ static int ssp_calculate_intern(struct i
+ */
+ ssp->ssp_blob[di][hwi].sspsp |= SSPSP_SFRMP(!inverted_frame ? 1 : 0);
+
+- active_tx_slots = popcount(ssp->ssp_prm[di].hw_cfg[hwi].tx_slots);
+- active_rx_slots = popcount(ssp->ssp_prm[di].hw_cfg[hwi].rx_slots);
++ active_tx_slots = alpopcount(ssp->ssp_prm[di].hw_cfg[hwi].tx_slots);
++ active_rx_slots = alpopcount(ssp->ssp_prm[di].hw_cfg[hwi].rx_slots);
+
+ /*
+ * handle TDM mode, TDM mode has padding at the end of
+@@ -952,7 +953,8 @@ int ssp_set_params(struct intel_nhlt_par
+ return 0;
+ }
+
+-int ssp_hw_set_params(struct intel_nhlt_params *nhlt, const char *format, const char *,
++int ssp_hw_set_params(struct intel_nhlt_params *nhlt, const char *format,
++ const char *mclk ATTRIBUTE_UNUSED,
+ const char *bclk, const char *bclk_invert, const char *fsync,
+ const char *fsync_invert, int mclk_freq, int bclk_freq, int fsync_freq,
+ int tdm_slots, int tdm_slot_width, int tx_slots, int rx_slots)
Index: pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_nhlt-processor.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_nhlt-processor.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-topology_nhlt_nhlt-processor.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,32 @@
+$NetBSD: patch-topology_nhlt_nhlt-processor.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- topology/nhlt/nhlt-processor.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ topology/nhlt/nhlt-processor.c
+@@ -11,6 +11,7 @@
+ #include <string.h>
+ #include <stdbool.h>
+ #include <inttypes.h>
++#include <alsa/global.h>
+ #include <alsa/input.h>
+ #include <alsa/output.h>
+ #include <alsa/conf.h>
+@@ -87,7 +88,8 @@ static void debug_print_nhlt(struct nhlt
+ fprintf(stdout, "\n");
+ }
+ #else
+-static void debug_print_nhlt(struct nhlt *, struct endpoint_descriptor **) {}
++static void debug_print_nhlt(struct nhlt *blob ATTRIBUTE_UNUSED,
++ struct endpoint_descriptor **eps ATTRIBUTE_UNUSED) {}
+ #endif
+
+ static int print_as_hex_bytes(uint8_t *manifest_buffer, uint32_t manifest_size,
+@@ -313,7 +315,8 @@ static int nhlt_get_flat_buffer(struct n
+ }
+
+ /* called at the end of topology pre-processing, create flat buffer from variable size nhlt */
+-static int nhlt_create(struct intel_nhlt_params *nhlt, snd_config_t *input, snd_config_t *,
++static int nhlt_create(struct intel_nhlt_params *nhlt, snd_config_t *input,
++ snd_config_t *output ATTRIBUTE_UNUSED,
+ uint8_t **nhlt_buffer, uint32_t *nhlt_size)
+ {
+ struct endpoint_descriptor *eps[MAX_ENDPOINT_COUNT];
Index: pkgsrc/audio/alsa-utils/patches/patch-topology_pre-process-class.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-topology_pre-process-class.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-topology_pre-process-class.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,49 @@
+$NetBSD: patch-topology_pre-process-class.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- topology/pre-process-class.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ topology/pre-process-class.c
+@@ -127,7 +127,7 @@ snd_config_t *tplg_class_lookup(struct t
+ }
+
+ /* find the attribute config by name in the class definition */
+-snd_config_t *tplg_class_find_attribute_by_name(struct tplg_pre_processor *,
++snd_config_t *tplg_class_find_attribute_by_name(struct tplg_pre_processor *tplg_p ATTRIBUTE_UNUSED,
+ snd_config_t *class, const char *name)
+ {
+ snd_config_t *attr = NULL;
+@@ -152,7 +152,7 @@ snd_config_t *tplg_class_find_attribute_
+ }
+
+ /* get the name of the attribute that must have a unique value in the object instance */
+-const char *tplg_class_get_unique_attribute_name(struct tplg_pre_processor *,
++const char *tplg_class_get_unique_attribute_name(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
+ snd_config_t *class)
+ {
+ snd_config_t *unique;
+@@ -177,7 +177,7 @@ const char *tplg_class_get_unique_attrib
+ }
+
+ /* get attribute type from the definition */
+-snd_config_type_t tplg_class_get_attribute_type(struct tplg_pre_processor *,
++snd_config_type_t tplg_class_get_attribute_type(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
+ snd_config_t *attr)
+ {
+ snd_config_t *type;
+@@ -208,7 +208,7 @@ snd_config_type_t tplg_class_get_attribu
+ }
+
+ /* get token_ref for attribute with name attr_name in the class */
+-const char *tplg_class_get_attribute_token_ref(struct tplg_pre_processor *,
++const char *tplg_class_get_attribute_token_ref(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
+ snd_config_t *class, const char *attr_name)
+ {
+ snd_config_t *attributes, *attr, *token_ref;
+@@ -235,7 +235,7 @@ const char *tplg_class_get_attribute_tok
+ }
+
+ /* convert a valid attribute string value to the corresponding tuple value */
+-long tplg_class_attribute_valid_tuple_value(struct tplg_pre_processor *,
++long tplg_class_attribute_valid_tuple_value(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
+ snd_config_t *class, snd_config_t *attr)
+ {
+
Index: pkgsrc/audio/alsa-utils/patches/patch-topology_pre-process-object.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-topology_pre-process-object.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-topology_pre-process-object.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,88 @@
+$NetBSD: patch-topology_pre-process-object.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- topology/pre-process-object.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ topology/pre-process-object.c
+@@ -31,7 +31,8 @@
+
+ /* Parse VendorToken object, create the "SectionVendorToken" and save it */
+ int tplg_build_vendor_token_object(struct tplg_pre_processor *tplg_pp,
+- snd_config_t *obj_cfg, snd_config_t *)
++ snd_config_t *obj_cfg,
++ snd_config_t *parent ATTRIBUTE_UNUSED)
+ {
+ snd_config_iterator_t i, next;
+ snd_config_t *vtop, *n, *obj;
+@@ -196,7 +197,7 @@ int tplg_build_data_object(struct tplg_p
+ return tplg_parent_update(tplg_pp, parent, "data", name);
+ }
+
+-static int tplg_create_config_template(struct tplg_pre_processor *,
++static int tplg_create_config_template(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
+ snd_config_t **template,
+ const struct config_template_items *items)
+ {
+@@ -499,7 +500,7 @@ min_max_check:
+ }
+
+ /* get object's name attribute value */
+-const char *tplg_object_get_name(struct tplg_pre_processor *,
++const char *tplg_object_get_name(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
+ snd_config_t *object)
+ {
+ snd_config_t *cfg;
+@@ -518,7 +519,7 @@ const char *tplg_object_get_name(struct
+ }
+
+ /* look up the instance of object in a config */
+-static snd_config_t *tplg_object_lookup_in_config(struct tplg_pre_processor *,
++static snd_config_t *tplg_object_lookup_in_config(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
+ snd_config_t *class, const char *type,
+ const char *class_name, const char *id)
+ {
+@@ -977,7 +978,7 @@ template:
+ }
+
+ static int tplg_build_generic_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg,
+- snd_config_t *)
++ snd_config_t *parent ATTRIBUTE_UNUSED)
+ {
+ snd_config_t *wtop;
+ const char *name;
+@@ -1090,7 +1091,7 @@ const struct build_function_map object_b
+ NULL, &pcm_caps_config},
+ };
+
+-static const struct build_function_map *tplg_object_get_map(struct tplg_pre_processor *,
++static const struct build_function_map *tplg_object_get_map(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
+ snd_config_t *obj)
+ {
+ snd_config_iterator_t first;
+@@ -1145,7 +1146,7 @@ snd_config_t *tplg_object_get_section(st
+ }
+
+ /* return 1 if attribute not found in search_config, 0 on success and negative value on error */
+-static int tplg_object_copy_and_add_param(struct tplg_pre_processor *,
++static int tplg_object_copy_and_add_param(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
+ snd_config_t *obj,
+ snd_config_t *attr_cfg,
+ snd_config_t *search_config)
+@@ -1351,8 +1352,8 @@ static int tplg_object_pre_process_child
+ return 0;
+ }
+
+-static int tplg_construct_object_name(struct tplg_pre_processor *, snd_config_t *obj,
+- snd_config_t *class_cfg)
++static int tplg_construct_object_name(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
++ snd_config_t *obj, snd_config_t *class_cfg)
+ {
+ snd_config_iterator_t i, next;
+ snd_config_t *args, *n;
+@@ -1547,7 +1548,7 @@ static int tplg_object_set_unique_attrib
+ * Helper function to get object instance config which is 2 nodes down from class_type config.
+ * ex: Get the pointer to the config node with ID "0" from the input config Widget.pga.0 {}
+ */
+-snd_config_t *tplg_object_get_instance_config(struct tplg_pre_processor *,
++snd_config_t *tplg_object_get_instance_config(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
+ snd_config_t *class_type)
+ {
+ snd_config_iterator_t first;
Index: pkgsrc/audio/alsa-utils/patches/patch-topology_pre-processor.c
diff -u /dev/null pkgsrc/audio/alsa-utils/patches/patch-topology_pre-processor.c:1.1
--- /dev/null Thu Nov 23 16:15:05 2023
+++ pkgsrc/audio/alsa-utils/patches/patch-topology_pre-processor.c Thu Nov 23 16:15:04 2023
@@ -0,0 +1,28 @@
+$NetBSD: patch-topology_pre-processor.c,v 1.1 2023/11/23 16:15:04 ryoon Exp $
+
+--- topology/pre-processor.c.orig 2023-09-01 15:36:26.000000000 +0000
++++ topology/pre-processor.c
+@@ -231,8 +231,9 @@ void tplg_pp_config_debug(struct tplg_pr
+ snd_config_save(cfg, tplg_pp->dbg_output);
+ }
+ #else
+-void tplg_pp_debug(char *, ...) {}
+-void tplg_pp_config_debug(struct tplg_pre_processor *, snd_config_t *){}
++void tplg_pp_debug(char *fmt ATTRIBUTE_UNUSED, ...) {}
++void tplg_pp_config_debug(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
++ snd_config_t *cfg ATTRIBUTE_UNUSED) {}
+ #endif
+
+ static int pre_process_config(struct tplg_pre_processor *tplg_pp, snd_config_t *cfg)
+@@ -640,8 +641,9 @@ static int pre_process_includes_all(stru
+ }
+
+ /* duplicate the existing objects in src into dest and update with new attribute */
+-static int pre_process_add_objects(struct tplg_pre_processor *, int *object_count,
+- snd_config_t *src, snd_config_t *dest, snd_config_t *attr_cfg)
++static int pre_process_add_objects(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED,
++ int *object_count, snd_config_t *src,
++ snd_config_t *dest, snd_config_t *attr_cfg)
+ {
+ snd_config_iterator_t i, next;
+ int ret;
Home |
Main Index |
Thread Index |
Old Index