]> git.alsa-project.org Git - alsa-gobject.git/log
alsa-gobject.git
5 years agoseq: user_client: add APIs to set/get memory pool in client
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: user_client: add APIs to set/get memory pool in client

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: add global method to get information of memory pool for any client
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: add global method to get information of memory pool for any client

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: client_pool: add properties
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: client_pool: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: client_pool: add object to represent memory pool in client
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: client_pool: add object to represent memory pool in client

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: add APIs to create/delete port for client
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: user_client: add APIs to create/delete port for client

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: add global method to get information of port in client
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: add global method to get information of port in client

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: port_info: add properties
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: port_info: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: port_info: add object to represent information of port for ALSA Sequencer
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: port_info: add object to represent information of port for ALSA Sequencer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: addr: add accessor methods and constructors
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: addr: add accessor methods and constructors

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: addr: add object to represent address in ALSA Sequencer
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: addr: add object to represent address in ALSA Sequencer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: add global method to get the list of port ID of client
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: add global method to get the list of port ID of client

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: add APIs to set/get information as client for ALSA Sequencer
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: user_client: add APIs to set/get information as client for ALSA Sequencer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: add properties
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: user_client: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: add an API to open ALSA Sequencer character device
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: user_client: add an API to open ALSA Sequencer character device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: add object to represent user client for ALSA Sequencer
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: user_client: add object to represent user client for ALSA Sequencer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: add global method to get information of client for ALSA Sequencer
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: add global method to get information of client for ALSA Sequencer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: client_info: add properties and accessor methods
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: client_info: add properties and accessor methods

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: client_info: add object to represent information of client
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: client_info: add object to represent information of client

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: add global method to get list of client ID in ALSA Sequencer
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: add global method to get list of client ID in ALSA Sequencer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: add global method to get information of ALSA Sequencer
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: add global method to get information of ALSA Sequencer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: system_info: add properties
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: system_info: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: system_info: add object to represent information of ALSA sequencer
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: system_info: add object to represent information of ALSA sequencer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: add global method to get devnode string for ALSA Sequencer
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: add global method to get devnode string for ALSA Sequencer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: add global method to get sysname for ALSA sequencer
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: add global method to get sysname for ALSA sequencer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: add Quark object to report any error
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: add Quark object to report any error

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: tests: add test script for enumerations of ALSASeq
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: tests: add test script for enumerations of ALSASeq

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: generate enumerations
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: generate enumerations

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: generate alsaseq library
Takashi Sakamoto [Wed, 1 Apr 2020 09:13:28 +0000 (18:13 +0900)]
seq: generate alsaseq library

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoadd support for i386 build job to workflow of Github Actions
Takashi Sakamoto [Mon, 2 Mar 2020 08:35:03 +0000 (17:35 +0900)]
add support for i386 build job to workflow of Github Actions

In lxd repository for Ubuntu Cloud Images[1], Ubuntu i386 container
is available for applications of Intel386 ABI.

This commit uses the container to test build for Intel386 ABI in
workflow of Github Actions.

I note that no official Fedora i386 container is in dockerhub
registry[2]. It's needed to find the way to build application for
Intel386 ABI on AMD64 architecture (perhaps multiarch) if we are
going to support it.

[1] https://cloud-images.ubuntu.com/releases/
[2] https://hub.docker.com/_/fedora

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user-instance: delegate decision of poll timeout into application
Takashi Sakamoto [Mon, 10 Feb 2020 12:20:41 +0000 (21:20 +0900)]
timer: user-instance: delegate decision of poll timeout into application

As long as using the created Gsource with GMainContext, the call of poll(2)
system call with infinite timeout surely returns when quit() method is
called for the context. All of GMainContext implements GWakeup with eventfd
and the call of quit() emits event via file descriptor of eventfd. This
brings wakeup from blocking when poll(2) is called with inifinite timeout.

This means that it's necessarily need to have explicit timeout internally.
This commit removes implementation of GSourceFunc.prepare for the reason.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: card: delegate decision of poll timeout into application
Takashi Sakamoto [Mon, 10 Feb 2020 12:20:17 +0000 (21:20 +0900)]
ctl: card: delegate decision of poll timeout into application

As long as using the created Gsource with GMainContext, the call of poll(2)
system call with infinite timeout surely returns when quit() method is
called for the context. All of GMainContext implements GWakeup with eventfd
and the call of quit() emits event via file descriptor of eventfd. This
brings wakeup from blocking when poll(2) is called with inifinite timeout.

This means that it's necessarily need to have explicit timeout internally.
This commit removes implementation of GSourceFunc.prepare for the reason.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user-instance: add an argument for open(2) flag into API to open ALSA timer...
Takashi Sakamoto [Mon, 10 Feb 2020 08:04:09 +0000 (17:04 +0900)]
timer: user-instance: add an argument for open(2) flag into API to open ALSA timer character device

As long as using the created Gsource with GMainContext, the call of poll(2)
system call with infinite timeout surely returns when quit() method is
called for the context. All of GMainContext implements GWakeup with eventfd
and the call of quit() emits event via file descriptor of eventfd. This
brings wakeup from blocking when poll(2) is called with inifinite timeout.
This means that it's safe for event polling without O_NONBLOCK.

On the other hand, there are many options for file descriptors; e.g.
O_APPEND and O_CLOEXEC. For the case, glib framework has no support.

This commit adds an argument for the open flags.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: card: add an argument for open(2) flag into API to open ALSA control character...
Takashi Sakamoto [Mon, 10 Feb 2020 08:02:03 +0000 (17:02 +0900)]
ctl: card: add an argument for open(2) flag into API to open ALSA control character device

As long as using the created Gsource with GMainContext, the call of poll(2)
system call with infinite timeout surely returns when quit() method is
called for the context. All of GMainContext implements GWakeup with eventfd
and the call of quit() emits event via file descriptor of eventfd. This
brings wakeup from blocking when poll(2) is called with inifinite timeout.
This means that it's safe for event polling without O_NONBLOCK.

On the other hand, there are many options for file descriptors; e.g.
O_APPEND and O_CLOEXEC. For the case, glib framework has no support.

This commit adds an argument for the open flags.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoupdate README
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
update README

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: doc: generate documentation
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: doc: generate documentation

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add APIs to pause/continue event emission
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add APIs to pause/continue event emission

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add an API to stop event emission
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add an API to stop event emission

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add an API to start instance for timer device
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add an API to start instance for timer device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: emit 'handle_disconnection' GObject signal
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: emit 'handle_disconnection' GObject signal

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add class virtual method to handle disconnection of the attache...
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add class virtual method to handle disconnection of the attached timer device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add GObject signal to handle disconnection of the attached...
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add GObject signal to handle disconnection of the attached timer device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: emit 'handle-event' signal
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: emit 'handle-event' signal

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add virtual method to handle event
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add virtual method to handle event

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add GObject signal to handle event
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add GObject signal to handle event

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_timestamp: add properties and access methods
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: event_timestamp: add properties and access methods

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_timestamp: add derived object for timestamp event
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: event_timestamp: add derived object for timestamp event

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_tick: add properties
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: event_tick: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_tick: add derived object to represent event with tick count
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: event_tick: add derived object to represent event with tick count

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_data: add properties
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: event_data: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_data: add abstract object to represent data of event
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: event_data: add abstract object to represent data of event

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add enumeration for the type of event
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: add enumeration for the type of event

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add an API to create GSource to dispatch event
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add an API to create GSource to dispatch event

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add an API to get status of instance
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add an API to get status of instance

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: instance_status: add properies and access methods
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: instance_status: add properies and access methods

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: instance_status: add object to represent status of instance
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: instance_status: add object to represent status of instance

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add an API to configure instance
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add an API to configure instance

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: instance_params: add properties
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: instance_params: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: instance_params: add object to represent parameter of instance
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: instance_params: add object to represent parameter of instance

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add an API to get information of instance
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add an API to get information of instance

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: instance_info: add properties
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: instance_info: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: instance_info: add object to represent information of instance
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: instance_info: add object to represent information of instance

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add an API to attach user instance to another instance as slave
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add an API to attach user instance to another instance as slave

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add an API to attach timer device to user instance
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add an API to attach timer device to user instance

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add an API to open ALSA Timer character device
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add an API to open ALSA Timer character device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: add object to represent user instance for timer device
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: user_instance: add object to represent user instance for timer device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add global method to set parameters of timer device
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: add global method to set parameters of timer device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: device_params: add properties
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: device_params: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: device_params: add object to represent parameters of timer device
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: device_params: add object to represent parameters of timer device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add global method to get status of timer device
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: add global method to get status of timer device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: device_status: add properties
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: device_status: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: device_status: add object to represent status of timer device
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: device_status: add object to represent status of timer device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add global method to get information of timer device
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: add global method to get information of timer device

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: device_info: add properties
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: device_info: add properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: device_info: add object to represent information of timer
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: device_info: add object to represent information of timer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add global method to get list of available timers
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: add global method to get list of available timers

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: device_id: add accessor methods and constructors
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: device_id: add accessor methods and constructors

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: device_id: add object to represent identifier of timer
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: device_id: add object to represent identifier of timer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add global method to get devnode of ALSA Timer
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: add global method to get devnode of ALSA Timer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add global method to get sysname for ALSA Timer
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: add global method to get sysname for ALSA Timer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add Quark object to report any error
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: add Quark object to report any error

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add test script for ALSATimer enumerations
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: add test script for ALSATimer enumerations

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: generate enumerations
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: generate enumerations

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: generate alsatimer library
Takashi Sakamoto [Sun, 9 Feb 2020 03:20:53 +0000 (12:20 +0900)]
timer: generate alsatimer library

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agofix workflow of Github Actions to clone requested repository
Takashi Sakamoto [Sun, 9 Feb 2020 02:53:39 +0000 (11:53 +0900)]
fix workflow of Github Actions to clone requested repository

Even if any pull request is triggered, in 'build_in_ubuntu_on_lxd' job
of 'Build test' workflow, upstream repository is cloned and requested
git hash is checked out. However this fails because the hash is in
requested repository.

This commit fixes the workflow so that requested repository is cloned.

Fixes: 8cb6715aab65 ('Add support workflow of Github Actions')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoAdd support workflow of Github Actions
Takashi Sakamoto [Fri, 31 Jan 2020 14:05:40 +0000 (23:05 +0900)]
Add support workflow of Github Actions

Github Actions is tool to automate software development workflows for CI/CD.
This tool has a remarkable point to share 'action' in repositories in github,
which is a unit of processing defined by users. The users write and push
'workflow' with the 'action' into repository in github.com. When any workflow
file is added to 'default' branch, the automation runs[2].

The defined actions run on virtual machine in Microsoft Azure (Standard_DS2_v2
as of today[2]). Three types of operating system are available: Windows, MacOS
and Linux (Ubuntu). On the MacOS and Linux machine, 'sudo' is available to
setup host environment for CI/CD, as well as Docker container is supported on
the host.

This commit adds a workflow file to automate build test. In this automation,
Fedora 32 in Docker container and Ubuntu 19.10 in LXD container as build
environments in Linux host. The automation is triggered in each 'push' and
'pull_request' event. The result is available in 'Actions' tab of repository
page in github.com.

[1] https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-github-actions
[2] https://help.github.com/en/actions/automating-your-workflow-with-github-actions/configuring-a-workflow
[3] https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: fix wrong operation for values in enumerated type of element
Takashi Sakamoto [Sun, 12 Jan 2020 04:33:14 +0000 (13:33 +0900)]
ctl: fix wrong operation for values in enumerated type of element

The 'snd_ctl_elem_value' structure includes union member for values.
Although it includes 'enumerated' member for values in enumerated type
of element, current implementation of alsactl library uses 'integer'
member to pick up the values. As a result, in any 64 bit System V ABI,
the library fails to get/set values for the enumerated type of
element. This commit fixes the bug.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: simplify event dispatching for element event
Takashi Sakamoto [Mon, 30 Dec 2019 03:01:55 +0000 (12:01 +0900)]
ctl: simplify event dispatching for element event

Formerly, GSource for card includes the list of ALSACtlElemId instances
since 'snd_ctl_elem_id' structure was wrapped by GObject class object.
However now it's GObject boxed object and emit signals without the class
object.

This commit removes useless list of ALSACtlElemId and dispatch the event
directly.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: rename element event mask
Takashi Sakamoto [Mon, 30 Dec 2019 00:31:12 +0000 (09:31 +0900)]
ctl: rename element event mask

The 'snd_ctl_event' structure can be defined to deliver several types of
events. One of the event is for element and it includes bitflags of the
kind of event for the element. In this library, the bitflag is named so
that it represents generic event, however it should be something
specific to element event.

This commit renames the bitflag.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: elem_value: add an API to check whether two instances have the same values
Takashi Sakamoto [Sun, 22 Dec 2019 02:02:34 +0000 (11:02 +0900)]
ctl: elem_value: add an API to check whether two instances have the same values

It's convenient for users to check whether two instances of elem_value
have the same values. This commit adds an API to satisfy the convenience.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: elem_id: add an API to check whether two instances indicates the same element
Takashi Sakamoto [Sun, 22 Dec 2019 02:05:29 +0000 (11:05 +0900)]
ctl: elem_id: add an API to check whether two instances indicates the same element

It's convenient for users to check whether two instances of elem_id
indicates the same element. This commit adds an API to satisfy the
convenience.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: tests: fix a test template for elem_id
Takashi Sakamoto [Sun, 22 Dec 2019 02:04:26 +0000 (11:04 +0900)]
ctl: tests: fix a test template for elem_id

Although a test template for elem_id does not run actually, it's better
to keep it as prepared. This commit fixes the test template for the
latest implementation of elem_id.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: elem_info_int: fix wrong assignment to private value
Takashi Sakamoto [Mon, 16 Dec 2019 19:02:29 +0000 (04:02 +0900)]
ctl: elem_info_int: fix wrong assignment to private value

ALSACtl::ElemInfoInt has properties for 'min', 'max' and 'step' but their
assignments are not proper. This commit fixes the bug.

Fixes: aac870451a89 ("ctl: elem_info_int: add properties for type-dependent parameters and constructor")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoadd README
Takashi Sakamoto [Sat, 30 Nov 2019 08:33:18 +0000 (17:33 +0900)]
add README

5 years agoctl: generate documentation
Takashi Sakamoto [Thu, 21 Nov 2019 04:13:58 +0000 (13:13 +0900)]
ctl: generate documentation

5 years agoctl: elem_value: add APIs to set/get value of integer64 type
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
ctl: elem_value: add APIs to set/get value of integer64 type

5 years agoctl: elem_value: add APIs to set/get value of IEC 60958 type
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
ctl: elem_value: add APIs to set/get value of IEC 60958 type

5 years agoctl: elem_value: add APIs to set/get values of bytes type
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
ctl: elem_value: add APIs to set/get values of bytes type

5 years agoctl: elem_value: add APIs to set/get indexes of enumerated type
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
ctl: elem_value: add APIs to set/get indexes of enumerated type

5 years agoctl: elem_value: add APIs to set/get values of integer type
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
ctl: elem_value: add APIs to set/get values of integer type

5 years agoctl: elem_value: add APIs to set/get values of boolean type
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
ctl: elem_value: add APIs to set/get values of boolean type