]> git.alsa-project.org Git - alsa-gobject.git/log
alsa-gobject.git
2 months agotimer: optimize to gi-docgen 2024.1 or later, approximately topic/minor-fixes
Takashi Sakamoto [Sat, 12 Jul 2025 12:24:18 +0000 (21:24 +0900)]
timer: optimize to gi-docgen 2024.1 or later, approximately

As long as building with gi-docgen 2025.3.1 in Ubuntu 25.04, 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
[enum@SlaveClass.SEQUENCER], 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
[enum@SlaveClass.SEQUENCER], 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
[enum@SlaveClass.SEQUENCER], 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-takashi@sakamocchi.jp>
2 months agoseq: fix return value when failing devnode detection of ALSA Sequencer character...
Takashi Sakamoto [Sat, 12 Jul 2025 08:00:06 +0000 (17:00 +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-takashi@sakamocchi.jp>
2 months agotimer: fix return value when failing devnode detection of ALSA Timer character device
Takashi Sakamoto [Sat, 12 Jul 2025 08:08:02 +0000 (17:08 +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-takashi@sakamocchi.jp>
18 months agoseq: optimize to gi-docgen 2023.3
Takashi Sakamoto [Fri, 15 Mar 2024 06:15:36 +0000 (15:15 +0900)]
seq: optimize to gi-docgen 2023.3

The version of gi-docgen applies the restrict rule for the version
expression. In the rule, the dot following to the number causes failure.
This commit fixes the failure.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
18 months agohwdep: optimize to gi-docgen 2023.3
Takashi Sakamoto [Fri, 15 Mar 2024 06:15:20 +0000 (15:15 +0900)]
hwdep: optimize to gi-docgen 2023.3

The version of gi-docgen applies the restrict rule for the version
expression. In the rule, the dot following to the number causes failure.
This commit fixes the failure.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
18 months agoctl: optimize to gi-docgen 2023.3
Takashi Sakamoto [Fri, 15 Mar 2024 06:14:53 +0000 (15:14 +0900)]
ctl: optimize to gi-docgen 2023.3

The version of gi-docgen applies the restrict rule for the version
expression. In the rule, the dot following to the number causes failure.
This commit fixes the failure.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
18 months agoci: use actions/checkout@v4
Takashi Sakamoto [Fri, 15 Mar 2024 06:01:53 +0000 (15:01 +0900)]
ci: use actions/checkout@v4

To suppress the following warning in github actions:

Node.js 16 actions are deprecated. Please update the following actions to
use Node.js 20: actions/checkout@v3. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2 years agoadd errno to seq/query
Rolf Anderegg [Thu, 17 Aug 2023 11:33:24 +0000 (13:33 +0200)]
add errno to seq/query

see 61a7b69a6a1cb238f1ffbf06573e0af323ee5013

2 years agoFix 'errno undeclared' compile error with older gcc versions
Michele Perrone [Thu, 17 Aug 2023 11:13:04 +0000 (13:13 +0200)]
Fix 'errno undeclared' compile error with older gcc versions
It looks like errno.h has to be included explicitly when compiling with older
gcc versions. This issue was encountered on the following system:
- Ubuntu 20.04 LTS
- Linux 5.4.0-156
- gcc 10.5.0
- Meson 0.53.2

2 years agomeson: remove unused variable for libudev dependency
Takashi Sakamoto [Mon, 12 Dec 2022 08:09:17 +0000 (17:09 +0900)]
meson: remove unused variable for libudev dependency

It's never used.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2 years agoall: remove annotation from error domain
Takashi Sakamoto [Mon, 12 Dec 2022 07:39:12 +0000 (16:39 +0900)]
all: remove annotation from error domain

As I fixed gi-docgen at 6c690567b6b ("utils: fix failure to generate
link to error domain"), gi-docgen release of 2022.2 brings loss of
backward compatibility about annotation for error domain.

This commit is a workaround for successful build either in 2022.1 or
former releases and in 2022.2 or later releases of gi-docgen. When
gi-docgen 2022.2 disseminates vastly, the annotation will be back.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2 years agoobsolete usage of LXC container for workflow of Github Actions
Takashi Sakamoto [Sun, 11 Dec 2022 07:33:12 +0000 (16:33 +0900)]
obsolete usage of LXC container for workflow of Github Actions

The network connection inner LXC container is unavailable since Nov 20,
2022.

This commit uses docker container instead.

3 years agobump release version up to 0.3.0 v0.3.0
Takashi Sakamoto [Thu, 30 Jun 2022 03:07:59 +0000 (12:07 +0900)]
bump release version up to 0.3.0

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoupdate README about change of ALSACtl.ElemValue
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
update README about change of ALSACtl.ElemValue

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: retrieve fixed-sized array by getter method for integer 64 values
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for integer 64 values

In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: retrieve fixed-sized array by getter method for IEC 60958 values
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for IEC 60958 values

In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: retrieve fixed-sized array by getter method for byte values
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for byte values

In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: retrieve fixed-sized array by getter method for enumerated values
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for enumerated values

In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: retrieve fixed-sized array by getter method for integer values
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for integer values

In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: retrieve fixed-sized array by getter method for boolean values
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for boolean values

In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: fix casting for byte data
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: fix casting for byte data

Fixed: 0fa1e17e3f96 ("ctl: elem_value: add APIs to set/get values of bytes type")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoupdate README
Takashi Sakamoto [Tue, 28 Jun 2022 21:45:49 +0000 (06:45 +0900)]
update README

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: remove-filter: rewrite as GObject-derived object
Takashi Sakamoto [Tue, 28 Jun 2022 21:45:49 +0000 (06:45 +0900)]
seq: remove-filter: rewrite as GObject-derived object

In UAPI of ALSA Sequencer, 'struct snd_seq_remove_events' has reserved
member for future use. In the case, the convention of this project lets
us to use class instead of structure.

Additionally, current implementation of ALSASeq.RemoveFilter doesn't
support multiple condition to query events for removal. It's not
necessarily convenient.

This commit rewrites ALSASeq.RemoveFilter.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: enums: add rest of entries for remove filter flags
Takashi Sakamoto [Tue, 28 Jun 2022 21:45:49 +0000 (06:45 +0900)]
seq: enums: add rest of entries for remove filter flags

It's planned to rewrite ALSASeq.RemoveFilter for flexible configuration of
filter condition.

This commit adds the reset of entries for the flags.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: event-cntr: remove obsoleted internal function
Takashi Sakamoto [Tue, 28 Jun 2022 21:45:49 +0000 (06:45 +0900)]
seq: event-cntr: remove obsoleted internal function

Fixes: 4bc8ea4b91d2 ("seq: event-cntr: rewrite as boxed structure")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoci: separate libudev-dev installation from the other
Takashi Sakamoto [Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)]
ci: separate libudev-dev installation from the other

The dependency on libudev-dev is specific to alsa-gobject libraries apart
from the other libraries under alsa gobject-introspection team.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoall: replace 'represent' with 'express' in comments
Takashi Sakamoto [Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)]
all: replace 'represent' with 'express' in comments

For better text.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agouser-client/client-pool: update function comments about event scheduling
Takashi Sakamoto [Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)]
user-client/client-pool: update function comments about event scheduling

When scheduling events, the user client should take care of free cells in
own output memory pool. The number of free cells is available via property
of ClientPool class. The number of cells consumed by event is available
via method of Event boxed structure.

This commit adds comments about it.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoclient-pool: change signedness for size properties
Takashi Sakamoto [Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)]
client-pool: change signedness for size properties

The properties for size of pool and cells always have positive value.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoevent: add public API to compute pool consumption when scheduling event
Takashi Sakamoto [Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)]
event: add public API to compute pool consumption when scheduling event

In design of ALSA Sequencer, delivery of event consumes cell in client
pool. For usual event, it's one cell. For variable length of event, it's
multiple cells including the total length of event.

ALSASeq.ClientPool class has properties to express the number of cells
and free cells in client pool. When comparing to the properties,
applications get to know whether the scheduling operation is blocked or
not.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoupdate README with compatibility note
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
update README with compatibility note

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: update class description
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: update class description

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: rewrite getter for 64 bit signed integer values
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for 64 bit signed integer values

This commit rewrites the getter method so that it returns a pointer to
internal storage for 64 bit signed integer values.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: rewrite getter for IEC 60958 user data
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for IEC 60958 user data

This commit rewrites the getter method so that it returns a pointer to
internal storage for IEC 60958 user data.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: rewrite getter for IEC 60958 channel status
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for IEC 60958 channel status

This commit rewrites the getter method so that it returns a pointer to
internal storage for IEC 60958 channel status.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: rewrite getter for 8 bit unsigned integer values
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for 8 bit unsigned integer values

This commit rewrites the getter method so that it returns a pointer to
internal storage for 8 bit unsigned integer values.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: rewrite getter for enumeration index values
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for enumeration index values

This commit rewrites the getter method so that it returns a pointer to
internal storage for enumeration index values.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: rewrite getter for 32 bit signed integer values
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for 32 bit signed integer values

This commit rewrites the getter method so that it returns a pointer to
internal storage for 32 bit signed integer values.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: rewrite getter for boolean values
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for boolean values

This commit rewrites the getter method so that it returns a pointer to
internal storage for boolean values.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: elem-value: clear value field at setter method
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: clear value field at setter method

For safe at reuse of the boxed structure.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: fix entry in exported symbol map
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
timer: fix entry in exported symbol map

Fixes: b4e62cdc0eac ("timer: instance-status: rename method with real time")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: event: fix description about methods relevant to time stamp
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
seq: event: fix description about methods relevant to time stamp

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: query: rename to ALSATimer.get_real_time_clock_id()
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: query: rename to ALSATimer.get_real_time_clock_id()

For friendly name.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: instance-status: rename method with real time
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: instance-status: rename method with real time

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: enums: rename to ALSATimer.RealTimeEventType
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: enums: rename to ALSATimer.RealTimeEventType

The set of events is used only for ALSATimer.RealTimeEvent.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: enums: rename to ALSATimer.EventType.TICK_TIME and REAL_TIME
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: enums: rename to ALSATimer.EventType.TICK_TIME and REAL_TIME

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: real-time-event: rename boxed structure
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: real-time-event: rename boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: tick-time-event: rename boxed structure
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: tick-time-event: rename boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: move ALSATimer.TstampEvent files for future rename
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: move ALSATimer.TstampEvent files for future rename

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: move ALSATimer.TickEvent files for future rename
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: move ALSATimer.TickEvent files for future rename

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoutils: successfully parse the string teminated by '\n'
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
utils: successfully parse the string teminated by '\n'

It requires to parse the literal from sysfs node.

Fixes: cc92f5ca9478 ("utils: add utility to compute integer value from string literal")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: user-client: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: user-client: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: system-info: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: system-info: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: queue-tempo: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: queue-tempo: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: queue-status: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: queue-status: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: queue-info: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: queue-info: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: port-info: fix tag indentation
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: port-info: fix tag indentation

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: client-pool: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: client-pool: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: client-info: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: client-info: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: fix description of object properties in which enumerations are available
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: fix description of object properties in which enumerations are available

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: instance-status: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: instance-status: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: instance-params: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: instance-params: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: instance-info: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: instance-info: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: device-status: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: device-status: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: device-params: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: device-params: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotimer: device-info: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: device-info: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agohwdep: device-info: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
hwdep: device-info: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agorawmidi: substream-status: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
rawmidi: substream-status: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agorawmidi: substream-params: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
rawmidi: substream-params: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agorawmidi: substream-info: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
rawmidi: substream-info: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agorawmidi: stream-pair: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
rawmidi: stream-pair: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agocard: elem-value: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
card: elem-value: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: card-info: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
ctl: card-info: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoctl: card: add annotation to object properties
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
ctl: card: add annotation to object properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test scripts for namespace functions
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test scripts for namespace functions

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSASeq.QueueTimerCommon interface
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.QueueTimerCommon interface

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSAHwdep.DeviceCommon interface
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSAHwdep.DeviceCommon interface

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSACtl.ElemInfoSingleArray interface
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSACtl.ElemInfoSingleArray interface

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSACtl.ElemInfoCommon interface
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSACtl.ElemInfoCommon interface

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: test virtual functions in object
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: test virtual functions in object

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: refine helper function to test object
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: refine helper function to test object

When implementing GObject interface, available properties, virtual
methods, and signals are not referred by attributes of object, while
available methods are available.

This commit expands current helper function to test object interface.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: test object type instead of its instance
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: test object type instead of its instance

No need to instantiate object to test.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSASeq.RemoveFilter boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.RemoveFilter boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSASeq.EventDataResult boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventDataResult boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSASeq.EventDataQueue boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventDataQueue boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSASeq.EventDataNote boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventDataNote boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSASeq.EventDataCtl boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventDataCtl boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSASeq.EventDataConnect boxed object
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventDataConnect boxed object

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSASeq.Event boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.Event boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSASeq.EventCntr boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventCntr boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSASeq.Addr boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.Addr boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSATimer.TstampEvent boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSATimer.TstampEvent boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSATimer.TickEvent boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSATimer.TickEvent boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSATimer.DeviceId boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSATimer.DeviceId boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add test script for ALSACtl.ElemId boxed structure
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSACtl.ElemId boxed structure

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: add helper function to test enumerations and flags
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add helper function to test enumerations and flags

This commit adds helper function for enumerations and flags. All of
available enumerations and flags are available via object attributes.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agotests: rename helper function to test object interface
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: rename helper function to test object interface

It appears that some helper functions are required to test GObject
interface, enumerations, and flags.

This commit renames current helper function for objects.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: event-cntr: add internal API to serialize list of events
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:22 +0000 (19:23 +0900)]
seq: event-cntr: add internal API to serialize list of events

ALSASeq.EventCntr still handles batch of events, therefore it's good to
put serialization code into it.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: event-cntr: rewrite as boxed structure
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:22 +0000 (19:23 +0900)]
seq: event-cntr: rewrite as boxed structure

The addition of ALSASeq.Event boxed structure obsoletes many methods of
ALSASeq.EventCntr.

This commit rewrite it for convenience.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 years agoseq: user-client: rewrite public API to schedule single event
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:22 +0000 (19:23 +0900)]
seq: user-client: rewrite public API to schedule single event

This commit rewrite ALSASeq.schedule_event() to get an instance of
ALSASeq.Event.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>