[alsa-cvslog] [ALSA GIT]ALSA libraries compatible with GObject introspection (g-i) for language bin
Brought to you by:
perex
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "ALSA libraries compatible with GObject introspection (g-i) for language bindings (direct kernel usage, no alsa-lib wrappers).". The branch, topic/minor-fixes has been created at fd20cd1295eb6bb2c960b171cddde03fe5429417 (commit) - Log ----------------------------------------------------------------- commit fd20cd1295eb6bb2c960b171cddde03fe5429417 Author: Takashi Sakamoto <o-t...@sa...> Date: Sat Jul 12 21:24:18 2025 +0900 timer: optimize to gi-docgen 2024.1 or later, approximately As long as building with gi-docgen 2025.3.1 in Ubuntu 25.10, some annotations for SlaveClass become invalid and causes some warnings. /usr/bin/gi-docgen generate --no-namespace-dir --config=doc/timer/alsatimer.toml --output-dir=doc/timer/alsatimer --content-dir=/home/mocchi/git/alsa-project.org/alsa-gobject/doc/timer src/timer/ALSATimer-0.0.gir WARNING: Unknown namespace SlaveClass slave_id. If the slave_class is [enum@SlaveClass.APPLICATION], the slave_id is for the PID of ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ WARNING: Unknown namespace SlaveClass [en...@Sl...QUENCER], the slave_id is the numeric ID of queue bound for timer device. ^~~~~~~~~~~~~~~~~~~~~~~~~~~ WARNING: Unknown namespace SlaveClass slave_id. If the slave_class is [enum@SlaveClass.APPLICATION], the slave_id is for the PID of ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ WARNING: Unknown namespace SlaveClass [en...@Sl...QUENCER], the slave_id is the numeric ID of queue bound for timer device. ^~~~~~~~~~~~~~~~~~~~~~~~~~~ WARNING: Unknown namespace SlaveClass slave_id. If the slave_class is [enum@SlaveClass.APPLICATION], the slave_id is for the PID of ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ WARNING: Unknown namespace SlaveClass [en...@Sl...QUENCER], the slave_id is the numeric ID of queue bound for timer device. ^~~~~~~~~~~~~~~~~~~~~~~~~~~ This commit suppresses the warnings by using the pattern of enum@class. Signed-off-by: Takashi Sakamoto <o-t...@sa...> commit 3b1d8a54f973a306849fe08dbd8c24edad69bcab Author: Takashi Sakamoto <o-t...@sa...> Date: Sat Jul 12 17:00:06 2025 +0900 seq: fix return value when failing devnode detection of ALSA Sequencer character device When failing detecting devnode of ALSA Sequencer character device, the helper function returns negative value to the callers. This is overlooked in the previous code refactoring. It should return FALSE. This bug brings the following compiler warnings: ../src/seq/query.c: In function âalsaseq_get_system_infoâ: ../src/seq/query.c:113:9: warning: âfdâ may be used uninitialized [-Wmaybe-uninitialized] 113 | if (ioctl(fd, SNDRV_SEQ_IOCTL_SYSTEM_INFO, info) < 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/seq/query.c:101:9: note: âfdâ was declared here 101 | int fd; | This commit fixes the bug. Fixes: 31eb1a62345c ("seq: query: rewrite public API to return gboolean according to GNOME convention") Signed-off-by: Takashi Sakamoto <o-t...@sa...> commit a81b71751785aa3562794c92d91da4b0b3afe06c Author: Takashi Sakamoto <o-t...@sa...> Date: Sat Jul 12 17:08:02 2025 +0900 timer: fix return value when failing devnode detection of ALSA Timer character device When failing detecting devnode of ALSA Timer character device, the helper function returns negative value to the callers. This is overlooked in the previous code refactoring. It should return FALSE. This bug brings the following compiler warnings: ../src/timer/query.c: In function âalsatimer_get_device_id_listâ: ../src/timer/query.c:122:13: warning: âfdâ may be used uninitialized [-Wmaybe-uninitialized] 122 | if (ioctl(fd, SNDRV_TIMER_IOCTL_NEXT_DEVICE, &id) < 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/timer/query.c:109:9: note: âfdâ was declared here 109 | int fd; | ^~ This commit fixes the bug. Fixes: 487c67a62e99 ("timer: query: rewrite public API to return gboolean according to GNOME convention") Signed-off-by: Takashi Sakamoto <o-t...@sa...> ----------------------------------------------------------------------- hooks/post-receive -- ALSA libraries compatible with GObject introspection (g-i) for language bindings (direct kernel usage, no alsa-lib wrappers). |