]> git.alsa-project.org Git - alsa-utils.git/log
alsa-utils.git
13 months agoaseqdump: Avoid OOB access with broken SysEx UMP packets
Takashi Iwai [Wed, 24 Jul 2024 12:05:55 +0000 (14:05 +0200)]
aseqdump: Avoid OOB access with broken SysEx UMP packets

UMP SysEx messages have length field to specify the contained data
bytes, but they can be over the actual packet size.  Add the proper
size limit checks for avoiding the access overflow.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqdump: Support of UMP 8-bit SysEx messages
Takashi Iwai [Wed, 24 Jul 2024 11:59:05 +0000 (13:59 +0200)]
aseqdump: Support of UMP 8-bit SysEx messages

Add the support to dump UMP 8-bit SysEx messages.
A slight code refactoring to share the code snippet between 7bit and
8bit SysEx handling, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqsend: Simplify using the standard helper function
Takashi Iwai [Tue, 23 Jul 2024 13:23:28 +0000 (15:23 +0200)]
aseqsend: Simplify using the standard helper function

Use the standard MIDI event encoder function provided in alsa-lib and
simplify the code.  We can reduce a lot of lines.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqsend: Move snd_seq_set_client_midi_version() call out of main()
Takashi Iwai [Tue, 23 Jul 2024 11:51:18 +0000 (13:51 +0200)]
aseqsend: Move snd_seq_set_client_midi_version() call out of main()

Move the low-level API function call to init_seq() instead of calling
directly from main().  Just a code refactoring.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqsend: Refine man page
Takashi Iwai [Tue, 23 Jul 2024 11:42:16 +0000 (13:42 +0200)]
aseqsend: Refine man page

Make man page a bit nicer; reformatting and setting bold/italic
properly, typo fixes, and adding a few more words and sections.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqsend: Update the help texts for long options
Takashi Iwai [Tue, 23 Jul 2024 11:38:51 +0000 (13:38 +0200)]
aseqsend: Update the help texts for long options

The help text was forgotten to be updated for the new long options.
Updated now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqsend: Support long options
Takashi Iwai [Mon, 22 Jul 2024 17:06:12 +0000 (19:06 +0200)]
aseqsend: Support long options

Add the support for long-style options such as --verbose.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqsend: Support UMP mode
Takashi Iwai [Mon, 22 Jul 2024 16:34:09 +0000 (18:34 +0200)]
aseqsend: Support UMP mode

Add a new option -u to specify the UMP MIDI1 or MIDI2 mode.  As
default (-u 0), the program reads the legacy MIDI 1.0 byte stream,
while in UMP mode, it reads as UMP packets and send to the target.
The UMP packet bytes are encoded in big endian.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqdump: Show SysEx prefix to UMP SysEx data dump
Takashi Iwai [Mon, 22 Jul 2024 16:26:24 +0000 (18:26 +0200)]
aseqdump: Show SysEx prefix to UMP SysEx data dump

Show the event prefix "SysEx" for UMP SysEx data.  Otherwise it's
difficult to know what it is.

Fixes: 506097ebb184 ("aseqdump: Show UMP SysEx messages")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoconfigure: Drop unused conditionals
Takashi Iwai [Mon, 22 Jul 2024 15:33:46 +0000 (17:33 +0200)]
configure: Drop unused conditionals

Since the required alsa-lib version was bumped and the relevant code
cleanup, some conditionals are no longer referred.  Drop them.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqdump: Check the -u option value properly
Takashi Iwai [Mon, 22 Jul 2024 15:29:12 +0000 (17:29 +0200)]
aseqdump: Check the -u option value properly

Instead of passing the value as is, check the value passed to -u
option and bail out for bad values.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqdump: Drop ifdef for UMP support
Takashi Iwai [Mon, 22 Jul 2024 15:30:46 +0000 (17:30 +0200)]
aseqdump: Drop ifdef for UMP support

Now that the latest alsa-lib 1.2.12 is mandatory, drop the ugly
ifdefs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaconnect: Drop superfluous ifdefs
Takashi Iwai [Mon, 22 Jul 2024 15:28:00 +0000 (17:28 +0200)]
aconnect: Drop superfluous ifdefs

Now that the latest alsa-lib 1.2.12 became mandatory, all ugly ifdefs
can be dropped.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaplaymidi: Allow to pass 0 to -u option, too
Takashi Iwai [Mon, 22 Jul 2024 15:22:20 +0000 (17:22 +0200)]
aplaymidi: Allow to pass 0 to -u option, too

Specifying -u 0 shouldn't be treated as an error but it should mean
the legacy MIDI 1.0 handling.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaplaymidi: Drop ifdef for UMP support
Takashi Iwai [Mon, 22 Jul 2024 15:20:11 +0000 (17:20 +0200)]
aplaymidi: Drop ifdef for UMP support

Now that the latest alsa-lib 1.2.12 became mandatory, all ugly ifdefs
can be dropped.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoconfigure: Requires the latest ALSA-lib release 1.2.12
Takashi Iwai [Mon, 22 Jul 2024 15:24:21 +0000 (17:24 +0200)]
configure: Requires the latest ALSA-lib release 1.2.12

New features such as MIDI 2.0 should be always enabled for the
builds.  Update the dependency to alsa-lib 1.2.12.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqdump: Fix bogus velocity value output in UMP MIDI2 mode
Takashi Iwai [Sat, 20 Jul 2024 17:19:54 +0000 (19:19 +0200)]
aseqdump: Fix bogus velocity value output in UMP MIDI2 mode

The printf format for a normalized velocity in MIDI2 mode had a typo,
resulting in a bogus value.  Fix it.

Fixes: 7e9bebad0b199 ("aseqdump: Add options to switch view mode")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaseqdump: Support of UMP Stream and Flex Data message types
Takashi Iwai [Fri, 19 Jul 2024 12:18:58 +0000 (14:18 +0200)]
aseqdump: Support of UMP Stream and Flex Data message types

Enhance aseqdump to interpret more UMP messages.  Now it includes the
standard  Stream messages and Flex Data messages.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaplaymidi2: Add -a option to pass all UMP packets
Takashi Iwai [Fri, 19 Jul 2024 12:20:33 +0000 (14:20 +0200)]
aplaymidi2: Add -a option to pass all UMP packets

So far, aplaymidi2 passes the MIDI1/MIDI2 channel voice UMP messages
to the target while processing other UMP messages internally.  But
sometimes we'd like to pass all UMP messages as is and let the
receiver processes.

This patch adds a new option -a (or --passall) to pass the all UMP
packets included in the given MIDI Clip file to the target as-is.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaplaymidi2: Fix --silent option handling
Takashi Iwai [Fri, 19 Jul 2024 12:27:15 +0000 (14:27 +0200)]
aplaymidi2: Fix --silent option handling

The --silent option takes no argument.  Correct the wrong setup.

Fixes: b1269eefdd13 ("aplaymidi2: Add --silent option")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoarecordmidi2: Fix truncated text in meta data text handling
Takashi Iwai [Thu, 11 Jul 2024 15:08:11 +0000 (17:08 +0200)]
arecordmidi2: Fix truncated text in meta data text handling

The current code didn't proceed the text position buffer and the text
was always truncated in 12 bytes.  Let's fix it.

Fixes: 74daf3a93a31 ("arecordmidi2: Add options to put meta data texts")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoarecordmidi2: Add options to put meta data texts
Takashi Iwai [Tue, 9 Jul 2024 09:49:43 +0000 (11:49 +0200)]
arecordmidi2: Add options to put meta data texts

For convenience, add more options to embed the meta data texts given
via command line.  The song name etc can be given directly via the
respective option directly, e.g. --song="text..."

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoarecordmidi2: Add --profile option
Takashi Iwai [Tue, 9 Jul 2024 06:08:06 +0000 (08:08 +0200)]
arecordmidi2: Add --profile option

Allow to add arbitrary profile UMP data to be put into the
configuration of the recorded stream via --profile option.
The file must contain valid UMP data encoded in big-endian.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoarecordmidi2: Add stdout output and --silent option
Takashi Iwai [Tue, 9 Jul 2024 05:40:24 +0000 (07:40 +0200)]
arecordmidi2: Add stdout output and --silent option

When the output file is '-', it's recorded to stdout.

For avoiding the corruption, this mode also suppresses the messages to
stdout, too, which can be enabled also via -s / --silent option.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoaplaymidi2: Add --silent option
Takashi Iwai [Tue, 9 Jul 2024 05:46:09 +0000 (07:46 +0200)]
aplaymidi2: Add --silent option

For suppressing the messages, add -s / --silent option.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
13 months agoRevert "arecordmidi2: Correct the MIDI FB direction"
Takashi Iwai [Tue, 9 Jul 2024 05:32:11 +0000 (07:32 +0200)]
Revert "arecordmidi2: Correct the MIDI FB direction"

This reverts commit e609d66807589caad6d38bd2c848fc571675ef62.

It turned out that the failure was rather in alsa-lib API; the
input and output have been incorrectly implemented.
Now that the alsa-lib code got fixed, let's revert the bad fix.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoaplaymidi2: Show meta data texts
Takashi Iwai [Mon, 8 Jul 2024 16:32:18 +0000 (18:32 +0200)]
aplaymidi2: Show meta data texts

Now aplaymidi2 shows the meta data texts embedded in Flex Data
messages such as copyright and lyrics.  The text output isn't
synchronized yet with the actual position, though.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoaconnect: Fix the indication of inactive ports
Takashi Iwai [Mon, 8 Jul 2024 15:21:13 +0000 (17:21 +0200)]
aconnect: Fix the indication of inactive ports

The inactive port should have been shown in each port line instead of
the client name line.

Fixes: 64b1d486b1c6 ("aconnect: Add UMP support")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoarecordmidi2: Fix the tick in 1us tempo-base
Takashi Iwai [Mon, 8 Jul 2024 15:14:06 +0000 (17:14 +0200)]
arecordmidi2: Fix the tick in 1us tempo-base

The recorded tick is incorrectly converted for 1us tempo-base on the
old kernels.  Since we correct the queue tempo, we don't have to
adjust the returned tick value any longer.  The current code applies
it doubly, resulting in 100 times slower.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoarecordmidi2: Correct the MIDI FB direction
Takashi Iwai [Mon, 8 Jul 2024 14:18:11 +0000 (16:18 +0200)]
arecordmidi2: Correct the MIDI FB direction

The direction was wrongly passed to the FB setup.  It has to be
"OUTPUT" instead of "INPUT, so that other applications can write to
arecordmidi2 port.

Fixes: 2cdf5ebedbc3 ("arecordmidi2: Add initial version")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoarecordmidi2: Start queue at starting the stream
Takashi Iwai [Mon, 8 Jul 2024 14:15:45 +0000 (16:15 +0200)]
arecordmidi2: Start queue at starting the stream

The queue should be started at the very same time of the start of the
stream itself in the interactive mode.  Otherwise it'll get bogus long
waits until the start of the clip.

Move the code to start the queue in start_bar(), so that it's always
tied with the start sequence.

Fixes: 1205dd5f6c14 ("arecordmidi2: Add passive mode and interactive mode")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoarecordmidi2: Add passive mode and interactive mode
Takashi Iwai [Fri, 5 Jul 2024 12:46:49 +0000 (14:46 +0200)]
arecordmidi2: Add passive mode and interactive mode

Allow arecordmidi2 running without specifying the source ports via -p
option.  This will create a UMP Endpoint with the full 16 FBs, and
simply reads from the input ports via subscribers.  User needs to
connect to the ports manually, though.

Also, add -r option to run in the interactive mode.  In the
interactive mode, arecordmidi2 waits for the RETURN key entered from
the terminal to start the recording, and the recording ends after
another RETURN key.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months ago.gitignore: Add stale files for topology builds
Takashi Iwai [Thu, 4 Jul 2024 15:19:57 +0000 (17:19 +0200)]
.gitignore: Add stale files for topology builds

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months ago.gitignore: Add aplaymidi2 and arecordmidi2
Takashi Iwai [Thu, 4 Jul 2024 15:17:08 +0000 (17:17 +0200)]
.gitignore: Add aplaymidi2 and arecordmidi2

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoarecordmidi2: Add initial version
Takashi Iwai [Thu, 4 Jul 2024 15:13:38 +0000 (17:13 +0200)]
arecordmidi2: Add initial version

arecordmidi2 is a similar program like arecordmidi for recording the
incoming MIDI events, but storing in a MIDI Clip file for MIDI 2.0.

Most options are kept from arecordmidi, but some are dropped: namely,
the -l, -m and -f options are dropped for code simplicity.
Also -s option is dropped as well, as there is no need for split for
MIDI Clip file unlike SMF.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoaplaymidi2: Add initial version
Takashi Iwai [Thu, 4 Jul 2024 10:25:45 +0000 (12:25 +0200)]
aplaymidi2: Add initial version

aplaymidi2 is a program similar like aplaymidi, but intended for
playing back a MIDI Clip file that was introduced for handling UMP.
MIDI Clip file contains UMP packets, and its structure is much simpler
than SMF.

The options are mostly same as aplaymidi, but I omitted -l option for
simplifying the code.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoaseqsend: Support realtime / system messages
Takashi Iwai [Thu, 27 Jun 2024 12:06:25 +0000 (14:06 +0200)]
aseqsend: Support realtime / system messages

The realtime / system messages (0xFx) wasn't handled properly.
Add the code to support those messages.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoaseqdump: White-space and slight code refactoring
Takashi Iwai [Thu, 27 Jun 2024 11:40:45 +0000 (13:40 +0200)]
aseqdump: White-space and slight code refactoring

Fix white spaces and applied a slight code refactoring to reduce the
indentation levels.  No code functionality changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoaseqdump: Refactor UMP SysEx dump
Takashi Iwai [Thu, 27 Jun 2024 11:24:11 +0000 (13:24 +0200)]
aseqdump: Refactor UMP SysEx dump

A slightly better version.  The extraction of a SysEx byte from a UMP
packet is more complicated than wished, in anyway.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoaseqdump: Show UMP SysEx messages
Takashi Iwai [Wed, 26 Jun 2024 16:11:13 +0000 (18:11 +0200)]
aseqdump: Show UMP SysEx messages

Dump the 7bit SysEx messages from UMP packets as well.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 months agoTopology: NHLT: Intel: Fix compile warning in dmic-process.c
Seppo Ingalsuo [Tue, 18 Jun 2024 12:47:05 +0000 (15:47 +0300)]
Topology: NHLT: Intel: Fix compile warning in dmic-process.c

This patch fixes warnings like:

intel/dmic/dmic-process.c: In function 'select_mode':
intel/dmic/dmic-process.c:498:35: warning:
format '%s' expects a matching 'char *' argument [-Wformat=]

The intended __func__ string is missing from the two fprintf()
prints for errors.

Closes: https://github.com/alsa-project/alsa-utils/pull/270
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
14 months agoRelease v1.2.12 v1.2.12
Jaroslav Kysela [Mon, 10 Jun 2024 09:18:36 +0000 (11:18 +0200)]
Release v1.2.12

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 months agoaseqdump: Add dump for UMP Utility and System messages
Takashi Iwai [Fri, 31 May 2024 12:30:43 +0000 (14:30 +0200)]
aseqdump: Add dump for UMP Utility and System messages

Add the dump functions for UMP Type 0 (Utility) and Type 1 (System)
messages.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 months agoaseqsend: initial version
Miroslav Kovac [Sun, 28 Apr 2024 13:53:15 +0000 (15:53 +0200)]
aseqsend: initial version

aseqsend is a command-line utility which allows one to send SysEx
(system exclusive) data to ALSA MIDI seqencer port. It can also send
any other MIDI commands.

Closes: https://github.com/alsa-project/alsa-utils/pull/257
Signed-off-by: Miroslav Kovac <mixxoo@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 months agoalsactl: don't free a card pointing NULL
Masatake YAMATO [Thu, 16 May 2024 19:29:58 +0000 (04:29 +0900)]
alsactl: don't free a card pointing NULL

alsactl distributed as part of Fedora 40 got a SEGV:

    # journalctl
    ...
    May 17 00:55:58 dev64.localdomain kernel: alsactl[1923]: segfault at 28 ip 00005600705b3373 sp 00007ffd9712bef0 error 4 in alsactl[5600705af000+13000] likely on CPU 5 (core 8, socket 0)
    ...

As the following output of the debug session, card_free() tried a card
pointing NULL:

    $ sudo coredumpctl debug alsactl
       PID: 1923 (alsactl)
       UID: 0 (root)
       GID: 0 (root)
    Signal: 11 (SEGV)
 Timestamp: Fri 2024-05-17 00:55:58 JST (3h 34min ago)
      Command Line: /usr/sbin/alsactl -s -n 19 -c -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main rdaemon
Executable: /usr/sbin/alsactl
     Control Group: /system.slice/alsa-state.service
      Unit: alsa-state.service
     Slice: system.slice
   Boot ID: 241b5a2ef86f4940bb3d340583c80d88
Machine ID: 437365709a8c488c9481ee4b6651c2ec
  Hostname: dev64.localdomain
   Storage: /var/lib/systemd/coredump/core.alsactl.0.241b5a2ef86f4940bb3d340583c80d88.1923.1715874958000000.zst (present)
      Size on Disk: 81.7K
   Package: alsa-utils/1.2.11-1.fc40
  build-id: 3b6fec58b3566d666d6e9fd48e8fcf04f03f0152
   Message: Process 1923 (alsactl) of user 0 dumped core.

    Module libasound.so.2 from rpm alsa-lib-1.2.11-2.fc40.x86_64
    Module alsactl from rpm alsa-utils-1.2.11-1.fc40.x86_64
    Stack trace of thread 1923:
    #0  0x00005600705b3373 card_free (alsactl + 0xa373)
    #1  0x00005600705c0e54 state_daemon (alsactl + 0x17e54)
    #2  0x00005600705b2339 main (alsactl + 0x9339)
    #3  0x00007f4c0b9b7088 __libc_start_call_main (libc.so.6 + 0x2a088)
    #4  0x00007f4c0b9b714b __libc_start_main_impl (libc.so.6 + 0x2a14b)
    #5  0x00005600705b2df5 _start (alsactl + 0x9df5)
    ELF object binary architecture: AMD x86-64

    GNU gdb (Fedora Linux) 14.2-1.fc40
    Copyright (C) 2023 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "x86_64-redhat-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <https://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from /usr/sbin/alsactl...
    Reading symbols from /usr/lib/debug/usr/sbin/alsactl-1.2.11-1.fc40.x86_64.debug...
    [New LWP 1923]
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".
    Core was generated by `/usr/sbin/alsactl -s -n 19 -c -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --init'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  free_list (list=0x20) at /usr/src/debug/alsa-utils-1.2.11-1.fc40.x86_64/alsactl/daemon.c:73
    73 for (i = 0; i < list->size; i++)
    (gdb) where
    #0  free_list (list=0x20) at /usr/src/debug/alsa-utils-1.2.11-1.fc40.x86_64/alsactl/daemon.c:73
    #1  card_free (card=card@entry=0x5600707455f0) at /usr/src/debug/alsa-utils-1.2.11-1.fc40.x86_64/alsactl/daemon.c:82
    #2  0x00005600705c0e54 in state_daemon (file=file@entry=0x5600705c31a1 "/var/lib/alsa/asound.state", cardname=cardname@entry=0x0, period=period@entry=300,
pidfile=pidfile@entry=0x5600705c3170 "/var/run/alsactl.pid") at /usr/src/debug/alsa-utils-1.2.11-1.fc40.x86_64/alsactl/daemon.c:455
    #3  0x00005600705b2339 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/alsa-utils-1.2.11-1.fc40.x86_64/alsactl/alsactl.c:459
    (gdb) list
    68
    69 static void free_list(struct id_list *list)
    70 {
    71 int i;
    72
    73 for (i = 0; i < list->size; i++)
    74 free(list->list[i]);
    75 free(list->list);
    76 }
    77
    (gdb) up
    #1  card_free (card=card@entry=0x5600707455f0) at /usr/src/debug/alsa-utils-1.2.11-1.fc40.x86_64/alsactl/daemon.c:82
    82 free_list(&c->blacklist);
    (gdb) p c
    $1 = (struct card *) 0x0
    (gdb)

Closes: https://github.com/alsa-project/alsa-utils/pull/267
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 months agoalsamixer: fix calculation in set_normalized_volume (overflow)
Jaroslav Kysela [Thu, 23 May 2024 11:13:42 +0000 (13:13 +0200)]
alsamixer: fix calculation in set_normalized_volume (overflow)

Lowering volume below 0 causes overflow spike to 100% volume (volume goes
below 0 and back to 100 repeatedly). 0 overflows past infinity when holding
down z,x,c.

> value = lrint_dir(6000.0 * log10(volume), dir) + max;
   (where volume = 0 , and dir = -1 . min = -9999999 , and max = -6)
> log10(0) is negative infinity = error

Fixes: https://github.com/alsa-project/alsa-utils/pull/266
Reported-by: genr8eofl <genBTC@gmx.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 months agoalsa-info.sh: log SoundWire devices reported in ACPI
Pierre-Louis Bossart [Mon, 15 Apr 2024 15:17:39 +0000 (10:17 -0500)]
alsa-info.sh: log SoundWire devices reported in ACPI

Track SoundWire devices reported in ACPI, this will help detect
missing or invalid configurations.

For now we only filter information from Realtek, Cirrus Logic and TI,
based on the manufacturer ID of their devices.

Example log for the classic RT711/RT1316x2/RT714 configuration.

!!ACPI SoundWire Device Status Information
!!---------------

Realtek 0x000030025d071101
Realtek 0x000331025d131601
Realtek 0x000230025d131601
Realtek 0x000130025d071401

As noted by reviewers, the script reports everything exposed in
ACPI. In practice some of the devices listed may not be physically
populated in hardware, or be listed as attached on a link that's
disabled by the manager. The drivers can cope with this case, it's not
technically an error.

Closes: https://github.com/alsa-project/alsa-utils/pull/264
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
16 months agoaplay: fix S24_LE wav header
Peter Suti [Wed, 20 Mar 2024 08:40:21 +0000 (09:40 +0100)]
aplay: fix S24_LE wav header

S24_LE is 32 bits in width storing 24 bits of data and 8 bits of padding
So wav header needs to be 32 bits not 24

Closes: https://github.com/alsa-project/alsa-utils/pull/260
Signed-off-by: Peter Suti <peter.suti@streamunlimited.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 months agotopology: nhlt: Intel: Improve all error prints
Jyri Sarha [Tue, 5 Mar 2024 20:50:15 +0000 (22:50 +0200)]
topology: nhlt: Intel: Improve all error prints

Many error prints had obsolete function name written in them, use
__func__ everywhere and add problematic value to the print if its
available.

Closes: https://github.com/alsa-project/alsa-utils/pull/254
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 months agotopology: nhlt: Intel: Clear DMIC BFTH bits for version
Seppo Ingalsuo [Wed, 28 Feb 2024 15:07:27 +0000 (17:07 +0200)]
topology: nhlt: Intel: Clear DMIC BFTH bits for version

The former Burst Fifo ThresHold bits 20-23 in output register are
specified as reserved bits starting from driver version 4.

Closes: https://github.com/alsa-project/alsa-utils/pull/254
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 months agotopology: nhlt: Intel: Add check for DMIC version
Seppo Ingalsuo [Wed, 28 Feb 2024 15:04:33 +0000 (17:04 +0200)]
topology: nhlt: Intel: Add check for DMIC version

Error if the version passed from topology is not known. Also fix the
dmic_set_params() error prints for to show the correct function name.

Closes: https://github.com/alsa-project/alsa-utils/pull/254
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 months agochore: Use actions/checkout@v4
Tomohiro IKEDA [Sat, 16 Mar 2024 15:50:15 +0000 (00:50 +0900)]
chore: Use actions/checkout@v4

Closes: https://github.com/alsa-project/alsa-utils/pull/259
Signed-off-by: Tomohiro IKEDA <rilakkuma.san.xjapan@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
19 months agoRelease v1.2.11 v1.2.11
Jaroslav Kysela [Mon, 29 Jan 2024 12:57:30 +0000 (13:57 +0100)]
Release v1.2.11

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
19 months agospeaker-test: Use smaller periods in the default settings
Jaroslav Kysela [Wed, 24 Jan 2024 17:59:31 +0000 (18:59 +0100)]
speaker-test: Use smaller periods in the default settings

We would like to break the speaker test using Ctrl-C (SIGINT) more early.
In the default settings, the periods are too big and the responsivity
of the speaker-test utility may be several seconds.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
19 months agospeaker-test: Add bandwidth-limited pink noise at -18.5dB AES FS Based
Rick Sayre [Sun, 31 Dec 2023 03:11:48 +0000 (19:11 -0800)]
speaker-test: Add bandwidth-limited pink noise at -18.5dB AES FS Based

Closes: https://github.com/alsa-project/alsa-utils/pull/251
Signed-off-by: Rick Sayre <whorfin@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
19 months agotopology: Fix one character typo in code comments
Jyri Sarha [Sun, 31 Dec 2023 01:49:04 +0000 (03:49 +0200)]
topology: Fix one character typo in code comments

Closes: https://github.com/alsa-project/alsa-utils/pull/250
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
19 months agotopology: Expand attribute references inside $[] expressions
Jyri Sarha [Sun, 31 Dec 2023 01:10:19 +0000 (03:10 +0200)]
topology: Expand attribute references inside $[] expressions

Properly expand referred object attributes inside $[] expression. This
allows for example this simplified case:

Define {
       CHANNELS 2
       BIT_DEPTH 16
}

Object.Base.foo {
channels $CHANNELS
sample_bits $BIT_DEPTH
frame_bits "$[$channels * $sample_bits]"
}

Closes: https://github.com/alsa-project/alsa-utils/pull/250
Reported-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
19 months agotopology: nhlt: Fix dmic configuration blob building
Jyri Sarha [Wed, 27 Dec 2023 17:18:45 +0000 (19:18 +0200)]
topology: nhlt: Fix dmic configuration blob building

The dmic configuration functions are called for each dmic DAI (or
FIFO) separately, and each dmic DAI is configured in their own
configuration rounds. However, the later configured dmic FIFO may
change the common clock divider and thus affect the FIR configuration
of the first configured DAI. However, the first configured FIR blob is
not touched after it is configured for the first time.

To overcome this problem always check the both FIR configurations, no
matter which DAI we are configuring.

Closes: https://github.com/alsa-project/alsa-utils/pull/250
Suggested-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
19 months agotopology: nhlt: fix simple memory leak
Jaroslav Kysela [Wed, 17 Jan 2024 16:37:29 +0000 (17:37 +0100)]
topology: nhlt: fix simple memory leak

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
19 months agonhlt-dmic-info: fix simple memory leak issue
Jaroslav Kysela [Wed, 17 Jan 2024 16:35:53 +0000 (17:35 +0100)]
nhlt-dmic-info: fix simple memory leak issue

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
20 months agoaplaymidi: Set event completely for tempo event
John K. Luebs [Sun, 7 Jan 2024 19:33:33 +0000 (13:33 -0600)]
aplaymidi: Set event completely for tempo event

After UMP support was added in b399fb8 ev.type setting was inadvertently
dropped in the code path handling tempo meta event.
This is causing tempo meta events to not be handled at all.
Moreover, snd_seq_ev_set_fixed is also missing so MIDI files with
variable events such as SYSEX before the tempo meta event usually are
causing a segfault.

Fixes: b399fb85a919 ("aplaymidi: Add UMP support")
Closes: https://github.com/alsa-project/alsa-utils/issues/241
Signed-off-by: Takashi Iwai <tiwai@suse.de>
20 months agoaplay: status dumps are called only in verbose mode
Jaroslav Kysela [Tue, 12 Dec 2023 14:07:06 +0000 (15:07 +0100)]
aplay: status dumps are called only in verbose mode

Do not enable timestamps for the normal operation.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
20 months agoaplay: enable timestamps by default
Pierre-Louis Bossart [Fri, 27 Oct 2023 20:09:56 +0000 (15:09 -0500)]
aplay: enable timestamps by default

When the '-v' or '--test-position' options are used, the 'tstamp' is
shown as zero. Unconditionally enable the timestamps and choose the
timestamp time based on the 'monotonic' variable.

Example log:

Status(R/W) (standalone avail=36 delay=924):
  state       : RUNNING
  trigger_time: 2045.504937
  tstamp      : 2190.754602
  delay       : 924
  avail       : 36
  avail_max   : 444
Status(R/W) (standalone avail=44 delay=912):
  state       : RUNNING
  trigger_time: 2045.504937
  tstamp      : 2190.754852
  delay       : 912
  avail       : 48
  avail_max   : 48
underrun!!! (at least 471.161 ms long)
Status:
  state       : XRUN
  trigger_time: 2190.786234
  tstamp      : 2191.257392
  delay       : 0
  avail       : 1412
  avail_max   : 1412
aplay: xrun:1690: fatal underrun: Success

Closes: https://github.com/alsa-project/alsa-utils/pull/242
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
20 months agoaplay: log pcm status before reporting a fatal error
Pierre-Louis Bossart [Fri, 27 Oct 2023 20:05:06 +0000 (15:05 -0500)]
aplay: log pcm status before reporting a fatal error

When the --fatal-errors happen, nothing is provided to the user even
when the '-v' verbose option is specified. This patch adds the fatal
error exit after dumping the logs. No functionality change, just
better information on what just happened.

Closes: https://github.com/alsa-project/alsa-utils/pull/242
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
20 months agoaplay: allow to compile with older alsa-lib (subformat)
Jaroslav Kysela [Tue, 12 Dec 2023 12:47:03 +0000 (13:47 +0100)]
aplay: allow to compile with older alsa-lib (subformat)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
20 months agoaplay: Add option for specifying subformat
Cezary Rojewski [Fri, 4 Aug 2023 08:26:50 +0000 (10:26 +0200)]
aplay: Add option for specifying subformat

Make subformat first-class citizen by allowing users to specify it just
like it is the case for the format. Default to SND_PCM_SUBFORMAT_STD so
they are no surprises.

Closes: https://github.com/alsa-project/alsa-utils/pull/228
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
21 months agomisc: fix incorrect usages of `strerror`
Tianyi Liu [Tue, 21 Nov 2023 15:19:35 +0000 (23:19 +0800)]
misc: fix incorrect usages of `strerror`

`strerror` takes the `errno` directly as its argument,
negating it will result in an "Unknown error".

This fixes such usages across multiple modules.

Fixes: https://github.com/alsa-project/alsa-utils/pull/245
Signed-off-by: Tianyi Liu <i.pear@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
21 months agoaplay: fix buffer overflow and tainted format string
Mingjie Shen [Wed, 6 Dec 2023 21:09:58 +0000 (16:09 -0500)]
aplay: fix buffer overflow and tainted format string

Prior this commit, memcpy from names[0] to format[] will overwrite if
strlen(names[0]) is greater than 1024. Also, the length of malloc()ed
names[channel] is insufficient, leading to another buffer overwriting
when calling sprintf(). Moreover, the format string of sprintf()
can be controlled by user input. An attacker can exploit this weakness
to crash the program, disclose information or even execute arbitrary
code.

Fix by allocating enough space for arrays and using constant expressions
as the format strings.

Fixes: https://github.com/alsa-project/alsa-utils/pull/246/
Signed-off-by: Mingjie Shen <shen497@purdue.edu>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
21 months agoalsactl: fix potential buffer overwrite
Mingjie Shen [Wed, 6 Dec 2023 21:49:26 +0000 (16:49 -0500)]
alsactl: fix potential buffer overwrite

The 'call to sprintf' operation on line 413 requires 21 bytes
but the destination is only 16 bytes.

Fixes: https://github.com/alsa-project/alsa-utils/pull/247
Signed-off-by: Mingjie Shen <shen497@purdue.edu>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
21 months agonhlt: Revert SSP_ANALOG device_type field
Andy Ross [Thu, 7 Dec 2023 17:17:57 +0000 (09:17 -0800)]
nhlt: Revert SSP_ANALOG device_type field

This partially reverts commit 3a47ef2487ed ("topology: nhlt: intel:
support more device types and directions"), which changed the default
device_type in the endpoint descriptor from zero to SSP_ANALOG.

This change breaks the Linux kernel NHLT parser (which AFAICT doesn't
recognize SSP_ANALOG at all), producing errors like:

  [56458.583812] sof-audio-pci-intel-mtl 0000:00:1f.3: no matching blob for sample rate: 48000 sample width: 32 channels: 2
  [56458.583833] sof-audio-pci-intel-mtl 0000:00:1f.3: failed to prepare widget dai-copier.SSP.SSP0-Codec.playback
  [56458.583840] sof-audio-pci-intel-mtl 0000:00:1f.3: Failed to prepare connected widgets
  [56458.583847] sof-audio-pci-intel-mtl 0000:00:1f.3: error: failed widget list set up for pcm 1 dir 0
  [56458.583853] sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22

Revert for compatibility.

Fixes: https://github.com/alsa-project/alsa-utils/pull/248
Signed-off-by: Andy Ross <andyross@google.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
21 months agoalsa-restore.rules: use devnode instead number atribute
Jaroslav Kysela [Wed, 15 Nov 2023 14:02:31 +0000 (15:02 +0100)]
alsa-restore.rules: use devnode instead number atribute

Fixes: https://github.com/alsa-project/alsa-utils/issues/244
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
22 months agoaplay: use stdint.h types instead u_int/u_short/u_char
Jaroslav Kysela [Tue, 17 Oct 2023 11:44:03 +0000 (13:44 +0200)]
aplay: use stdint.h types instead u_int/u_short/u_char

Closes: https://github.com/alsa-project/alsa-utils/pull/234
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
22 months agoRevert "nhlt-dmic-info.c: include sys/types.h"
Sam James [Sat, 30 Sep 2023 09:09:46 +0000 (10:09 +0100)]
Revert "nhlt-dmic-info.c: include sys/types.h"

This reverts commit 0925ad7f09b2dc77015784f9ac2f5e34dd0dd5c3.

This isn't necessary now that we use standard types (sys/types.h just
defines some compatibility typedefs).

Closes: https://github.com/alsa-project/alsa-utils/pull/234
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
22 months agonhlt: use stdint.h types
Sam James [Thu, 7 Sep 2023 20:24:16 +0000 (21:24 +0100)]
nhlt: use stdint.h types

u_int_* aren't standard, but uint* are. Use those instead for musl compat.

Closes: https://github.com/alsa-project/alsa-utils/pull/234
Bug: https://bugs.gentoo.org/913758
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
22 months agotopology: add include for ENABLE_NLS on musl
Sam James [Thu, 7 Sep 2023 20:23:51 +0000 (21:23 +0100)]
topology: add include for ENABLE_NLS on musl

Needed for setlocale().

(After rebasing to pick up 8c229270f6bae83b705a03714c46067a7aa57b02, just
move it to be guarded as the include now exists.)

Closes: https://github.com/alsa-project/alsa-utils/pull/234
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
22 months agobat: really skip analysis of the first period and update related comment
Delio Brignoli [Mon, 18 Sep 2023 08:33:37 +0000 (09:33 +0100)]
bat: really skip analysis of the first period and update related comment

Prior to this change bat/analyze.c would skip the last period of the recording, contrary to
what the comment in the code which stated the first period was meant to be skipped.

The comment has been updated to state that both the first and last period are skipped and the code
has been updated to match.

Closes: https://github.com/alsa-project/alsa-utils/pull/237
Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
22 months agoconfigure.ac: fix UMP support detection
Bernd Kuhls [Fri, 13 Oct 2023 18:32:32 +0000 (20:32 +0200)]
configure.ac: fix UMP support detection

https://github.com/alsa-project/alsa-utils/commit/b399fb85a919636b7da34e8bcf17f484dd9046f7
added usage of alsa/ump_msg.h without checking whether alsa-lib was
compiled with rawmidi support:
https://github.com/alsa-project/alsa-lib/blob/master/include/Makefile.am#L37

Fixes a build error when alsa-lib was compiled with --disable-rawmidi

aplaymidi.c:34:10: fatal error: alsa/ump_msg.h: No such file or directory
   34 | #include <alsa/ump_msg.h>

Closes: https://github.com/alsa-project/alsa-utils/pull/240
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
22 months agotopology: pre-processor: Add support for enum controls
Ranjani Sridharan [Mon, 11 Sep 2023 15:18:15 +0000 (08:18 -0700)]
topology: pre-processor: Add support for enum controls

Add support for adding enum controls in the topology pre-processor.

Closes: https://github.com/alsa-project/alsa-utils/pull/236
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
23 months agonhlt-dmic-info.c: include sys/types.h
Michael Opdenacker [Tue, 19 Sep 2023 11:14:30 +0000 (13:14 +0200)]
nhlt-dmic-info.c: include sys/types.h

This fixes an issue compiling with the musl libc.

Fixes: https://github.com/alsa-project/alsa-utils/issues/238
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
23 months agotopology: include locale.h
Michael Opdenacker [Tue, 19 Sep 2023 11:14:29 +0000 (13:14 +0200)]
topology: include locale.h

This solves an issue compiling with the musl libc.

Fixes: https://github.com/alsa-project/alsa-utils/issues/239
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agotopology: use ATTRIBUTE_UNUSED instead remove argument name
Jaroslav Kysela [Mon, 4 Sep 2023 15:11:05 +0000 (17:11 +0200)]
topology: use ATTRIBUTE_UNUSED instead remove argument name

We need to support older compilers than GCC 11.

Link: https://github.com/alsa-project/alsa-utils/issues/233
Fixes: 153d185 ("topology: fix the verbose compilation warnings for latest gcc")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoalsaucm: use ATTRIBUTE_UNUSED instead remove argument name
Jaroslav Kysela [Mon, 4 Sep 2023 14:57:47 +0000 (16:57 +0200)]
alsaucm: use ATTRIBUTE_UNUSED instead remove argument name

We need to support older compilers than GCC 11.

Link: https://github.com/alsa-project/alsa-utils/issues/233
Fixes: d7bbc26 ("alsaucm: fix the verbose compilation warnings for latest gcc")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoseq: use ATTRIBUTE_UNUSED instead remove argument name
Jaroslav Kysela [Mon, 4 Sep 2023 14:52:46 +0000 (16:52 +0200)]
seq: use ATTRIBUTE_UNUSED instead remove argument name

We need to support older compilers than GCC 11.

Link: https://github.com/alsa-project/alsa-utils/issues/233
Fixes: 181e190 ("aplaymidi: fix the verbose compilation warnings for latest gcc")
Fixes: a03377a ("aseqnet: fix the verbose compilation warnings for latest gcc")
Fixes: 429c32a ("aseqdump: fix the verbose compilation warnings for latest gcc")
Fixes: 0b48dd6 ("aconnect: fix the verbose compilation warnings for latest gcc")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agobat: use ATTRIBUTE_UNUSED instead remove argument name
Jaroslav Kysela [Mon, 4 Sep 2023 14:49:03 +0000 (16:49 +0200)]
bat: use ATTRIBUTE_UNUSED instead remove argument name

We need to support older compilers than GCC 11.

Link: https://github.com/alsa-project/alsa-utils/issues/233
Fixes: b366875 ("bat: fix the verbose compilation warnings for latest gcc")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoalsaloop: use ATTRIBUTE_UNUSED instead remove argument name
Jaroslav Kysela [Mon, 4 Sep 2023 14:45:09 +0000 (16:45 +0200)]
alsaloop: use ATTRIBUTE_UNUSED instead remove argument name

We need to support older compilers than GCC 11.

Link: https://github.com/alsa-project/alsa-utils/issues/233
Fixes: d609a58 ("alsaloop: fix the verbose compilation warnings for latest gcc")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoamidi: use ATTRIBUTE_UNUSED instead remove argument name
Jaroslav Kysela [Mon, 4 Sep 2023 14:37:24 +0000 (16:37 +0200)]
amidi: use ATTRIBUTE_UNUSED instead remove argument name

We need to support older compilers than GCC 11.

Link: https://github.com/alsa-project/alsa-utils/issues/233
Fixes: 1843540 ("amidi: fix the verbose compilation warnings for latest gcc")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoaxfer: use ATTRIBUTE_UNUSED instead remove argument name
Jaroslav Kysela [Mon, 4 Sep 2023 14:33:47 +0000 (16:33 +0200)]
axfer: use ATTRIBUTE_UNUSED instead remove argument name

We need to support older compilers than GCC 11.

Link: https://github.com/alsa-project/alsa-utils/issues/233
Fixes: ad5a1c0 ("axfer: fix the verbose compilation warnings for latest gcc")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agogithub: Try to fix the build with the release tag
Jaroslav Kysela [Fri, 1 Sep 2023 19:38:41 +0000 (21:38 +0200)]
github: Try to fix the build with the release tag

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoRelease v1.2.10 v1.2.10
Jaroslav Kysela [Fri, 1 Sep 2023 15:36:26 +0000 (17:36 +0200)]
Release v1.2.10

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agopo: add Korean translations
lee-yunseok [Sun, 21 May 2023 09:04:04 +0000 (18:04 +0900)]
po: add Korean translations

Fixes: https://github.com/alsa-project/alsa-utils/pull/214
Signed-off-by: lee-yunseok <ironyunseok@protonmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoalsactl: fix compilation when building in a subdir
Rudi Heitbaum [Mon, 15 May 2023 16:27:59 +0000 (02:27 +1000)]
alsactl: fix compilation when building in a subdir

Fixes: 613372d
Fixes: cff2d1c
Compile errors when building in a subdir:
alsactl/alsactl.c:33:10: fatal error: os_compat.h: No such file or directory
   33 | #include "os_compat.h"
      |          ^~~~~~~~~~~~~
alsactl/lock.c:34:10: fatal error: os_compat.h: No such file or directory
   34 | #include "os_compat.h"
      |          ^~~~~~~~~~~~~

Fixes: https://github.com/alsa-project/alsa-utils/pull/213
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoreshuffle included files to include config.h as first
Jaroslav Kysela [Wed, 30 Aug 2023 16:48:23 +0000 (18:48 +0200)]
reshuffle included files to include config.h as first

config.h may contain defines like _FILE_OFFSET_BITS which influence
the system wide include files (off_t types, open -> open64 function
usage etc.).

Related: https://github.com/alsa-project/alsa-utils/pull/223
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agogithub: update build.yml
Jaroslav Kysela [Wed, 30 Aug 2023 11:13:45 +0000 (13:13 +0200)]
github: update build.yml

- use actions/checkout@v3
- improve code to generate a specific git version

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoaseqdump: fix MIDI 2.0 code - it compiles now
Jaroslav Kysela [Wed, 30 Aug 2023 13:55:06 +0000 (15:55 +0200)]
aseqdump: fix MIDI 2.0 code - it compiles now

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agogitcompile: set more verbose compilation warnings
Jaroslav Kysela [Wed, 30 Aug 2023 11:05:21 +0000 (13:05 +0200)]
gitcompile: set more verbose compilation warnings

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agonhlt-dmic-info: fix the verbose compilation warnings for latest gcc
Jaroslav Kysela [Wed, 30 Aug 2023 11:01:59 +0000 (13:01 +0200)]
nhlt-dmic-info: fix the verbose compilation warnings for latest gcc

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoalsaucm: fix the verbose compilation warnings for latest gcc
Jaroslav Kysela [Wed, 30 Aug 2023 11:01:30 +0000 (13:01 +0200)]
alsaucm: fix the verbose compilation warnings for latest gcc

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoaplaymidi: fix the verbose compilation warnings for latest gcc
Jaroslav Kysela [Wed, 30 Aug 2023 10:54:50 +0000 (12:54 +0200)]
aplaymidi: fix the verbose compilation warnings for latest gcc

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoaseqnet: fix the verbose compilation warnings for latest gcc
Jaroslav Kysela [Wed, 30 Aug 2023 10:55:41 +0000 (12:55 +0200)]
aseqnet: fix the verbose compilation warnings for latest gcc

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2 years agoaseqdump: fix the verbose compilation warnings for latest gcc
Jaroslav Kysela [Wed, 30 Aug 2023 10:55:12 +0000 (12:55 +0200)]
aseqdump: fix the verbose compilation warnings for latest gcc

Signed-off-by: Jaroslav Kysela <perex@perex.cz>