[BACK]Return to patch-amidi_amidi.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / audio / alsa-utils / patches

File: [cvs.NetBSD.org] / pkgsrc / audio / alsa-utils / patches / patch-amidi_amidi.c (download)

Revision 1.1, Mon Jan 24 10:09:30 2022 UTC (2 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1

alsa-utils: update to 1.2.6.

Core

    Release v1.2.6

ALSA Control (alsactl)

    alsactl: fix the check for additional elements
    alsactl: suppress no device 'errors' for UCM

ALSA RawMidi Utility (amidi)

    amidi: remove unused variable
    amidi: add timestamp option for dump

alsa-info.sh

    alsa-info.sh: Fix alsa-usbstream.tmp test

alsaloop

    alsaloop: Support "Playback Pitch 1000000" rate shift
    alsaloop: Renamed field capt_pitch to ctl_pitch
    alsaloop: fixed parsing value 'auto' of option 'sync'
    alsaloop: added option prateshift for PLAYSHIFT ctl elem used in PLAYSHIFT
    alsaloop: Adding openctl_elem debug log
    alsaloop: Support "Capture Pitch 1000000" rate shift

alsamixer

    alsamixer: fix typo in man page (and/of -> and/or)
    alsamixer: Allow setting the default background color in config
    alsamixer: Check the availability of mouse
    Added configuration information to manual page

alsatplg (topology)

    topology: fix compilation for older alsa-lib
    topology: change include path
    topology: pre-processor: Add support for conditional includes
    topology: Add option to pass pre-processor definitions
    alsatplg: use standard include/asoundlib.h instead direct headers
    topology:pre-process-object: merge object config with parent object config
    pre-process-object: set tlv name if config exists already
    pre-process-dapm: add data section for kcontrols
    topology: pre-processor: fix typo in pre_process_config()
    topology: pre-process-object: dont create if section already exists
    pre-process-object: skip parent update if parent is NULL
    pre-process-dapm: fix source and sink for DAPM routes
    topology: pre-process-object: Add support for pre-process objects with no builder
    topology: pre-process-dapm: update automatic attributes for buffer
    topology: pre-process-object: add support for updating automatic attributes
    alsatplg: do not do NULL check for string arrays
    alsatplg: fix memory-leak in tplg_construct_object_name()

amixer

    amixer: print help and add doc for 'sevents' and 'events' commands

aplay/arecord

    aplay: Fix out-of-bound access in stereo VU meter drawing
    aplay: Handle upper bound in peak calculations
    aplay: Don't pass most negative integer to abs() in peak calculations
    aplay: Handle 16bit sample negative overflow in peak calculations
    aplay: Fix conversion of unsigned samples in peak calculation

aseqnet

    aseqnet: add ipv6 support
    aseqnet: use getaddrinfo() instead obsolete gethostbyname()

$NetBSD: patch-amidi_amidi.c,v 1.1 2022/01/24 10:09:30 wiz Exp $

NetBSD does not provide CLOCK_MONOTONIC_RAW.

--- amidi/amidi.c.orig	2021-12-06 10:17:28.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;