]> git.alsa-project.org Git - alsa-gobject.git/log
alsa-gobject.git
5 years agoctl: elem_info: add count property
Takashi Sakamoto [Fri, 12 Jun 2020 04:19:45 +0000 (13:19 +0900)]
ctl: elem_info: add count property

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: elem_info: add accessor APIs for label entries of enumerated element
Takashi Sakamoto [Fri, 12 Jun 2020 04:19:45 +0000 (13:19 +0900)]
ctl: elem_info: add accessor APIs for label entries of enumerated element

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: elem_info: add accessor APIs for triplet data of integer64 element
Takashi Sakamoto [Fri, 12 Jun 2020 04:19:45 +0000 (13:19 +0900)]
ctl: elem_info: add accessor APIs for triplet data of integer64 element

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: elem_info: add accessor APIs for triplet data of integer element
Takashi Sakamoto [Fri, 12 Jun 2020 04:19:45 +0000 (13:19 +0900)]
ctl: elem_info: add accessor APIs for triplet data of integer element

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: card: add helper function to parse names for enumerated element
Takashi Sakamoto [Fri, 12 Jun 2020 04:19:45 +0000 (13:19 +0900)]
ctl: card: add helper function to parse names for enumerated element

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: card: fix uninitialized local value
Takashi Sakamoto [Fri, 12 Jun 2020 04:19:45 +0000 (13:19 +0900)]
ctl: card: fix uninitialized local value

Fixes: eace1901a13e ("ctl: card: add an API to add/replace user-defined elements")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agodoc: ctl: fix title for documentation of ALSACtlElemInfo
Takashi Sakamoto [Fri, 12 Jun 2020 04:19:45 +0000 (13:19 +0900)]
doc: ctl: fix title for documentation of ALSACtlElemInfo

Fixes: cc7a8b2fe1459 ("ctl: fulfill documentation for ALSACtl")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agodoc: hwdep: fix invalid element name
Takashi Sakamoto [Fri, 12 Jun 2020 04:19:45 +0000 (13:19 +0900)]
doc: hwdep: fix invalid element name

Fixes: eb03ec0340bc ("hwdep: fulfill documentation for ALSAHwdep")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: instance_status: use shorter name for timestamp
Takashi Sakamoto [Wed, 10 Jun 2020 02:06:08 +0000 (11:06 +0900)]
timer: instance_status: use shorter name for timestamp

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: ALSATimerEventDataType: use shorter name for timestamp
Takashi Sakamoto [Wed, 10 Jun 2020 02:00:39 +0000 (11:00 +0900)]
timer: ALSATimerEventDataType: use shorter name for timestamp

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event: add documentation for ALSATimerEvent
Takashi Sakamoto [Wed, 10 Jun 2020 03:57:49 +0000 (12:57 +0900)]
timer: event: add documentation for ALSATimerEvent

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event: add accessor methods for tick and tstamp events
Takashi Sakamoto [Wed, 10 Jun 2020 01:51:58 +0000 (10:51 +0900)]
timer: event: add accessor methods for tick and tstamp events

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_data: dismiss ALSATimerEventData
Takashi Sakamoto [Wed, 10 Jun 2020 01:45:28 +0000 (10:45 +0900)]
timer: event_data: dismiss ALSATimerEventData

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_data_tstamp: add accessor APIs for tstamp event
Takashi Sakamoto [Wed, 10 Jun 2020 03:36:46 +0000 (12:36 +0900)]
timer: event_data_tstamp: add accessor APIs for tstamp event

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_data_tstamp: rename to ALSASeqEventDataTstamp
Takashi Sakamoto [Wed, 10 Jun 2020 01:56:24 +0000 (10:56 +0900)]
timer: event_data_tstamp: rename to ALSASeqEventDataTstamp

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_data_timestamp: become boxed object
Takashi Sakamoto [Wed, 10 Jun 2020 01:37:42 +0000 (10:37 +0900)]
timer: event_data_timestamp: become boxed object

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_data_tick: add accessor APIs for resolution and tick count
Takashi Sakamoto [Wed, 10 Jun 2020 03:07:44 +0000 (12:07 +0900)]
timer: event_data_tick: add accessor APIs for resolution and tick count

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: event_data_tick: become boxed object
Takashi Sakamoto [Wed, 10 Jun 2020 01:31:47 +0000 (10:31 +0900)]
timer: event_data_tick: become boxed object

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: user_instance: emit signal with ALSATimerEvent
Takashi Sakamoto [Wed, 10 Jun 2020 01:24:14 +0000 (10:24 +0900)]
timer: user_instance: emit signal with ALSATimerEvent

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add boxed object to represent union of two timer events
Takashi Sakamoto [Wed, 10 Jun 2020 01:15:50 +0000 (10:15 +0900)]
timer: add boxed object to represent union of two timer events

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: queue_timer_alsa: obsolete ALSASeqQueueTimerAlsa
Takashi Sakamoto [Tue, 9 Jun 2020 22:13:52 +0000 (07:13 +0900)]
seq: queue_timer_alsa: obsolete ALSASeqQueueTimerAlsa

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: queue_timer: define as concrete class instead of abstract class
Takashi Sakamoto [Tue, 9 Jun 2020 21:13:02 +0000 (06:13 +0900)]
seq: queue_timer: define as concrete class instead of abstract class

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: queue_timer: add accessor APIs for data of queue timer in ALSATimer case
Takashi Sakamoto [Tue, 9 Jun 2020 22:07:08 +0000 (07:07 +0900)]
seq: queue_timer: add accessor APIs for data of queue timer in ALSATimer case

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: queue_timer: make properties read-only
Takashi Sakamoto [Tue, 9 Jun 2020 21:17:32 +0000 (06:17 +0900)]
seq: queue_timer: make properties read-only

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: queue_timer_data_alsa: add documentation
Takashi Sakamoto [Tue, 9 Jun 2020 22:16:56 +0000 (07:16 +0900)]
seq: queue_timer_data_alsa: add documentation

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: queue_timer_data_alsa: add accessor APIs for resolution
Takashi Sakamoto [Tue, 9 Jun 2020 22:12:05 +0000 (07:12 +0900)]
seq: queue_timer_data_alsa: add accessor APIs for resolution

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: queue_timer_data_alsa: add accessor APIs for device ID of ALSATimer
Takashi Sakamoto [Tue, 9 Jun 2020 22:11:15 +0000 (07:11 +0900)]
seq: queue_timer_data_alsa: add accessor APIs for device ID of ALSATimer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: queue_timer_data_alsa: add boxed object to represent data of queue timer in...
Takashi Sakamoto [Tue, 9 Jun 2020 21:55:55 +0000 (06:55 +0900)]
seq: queue_timer_data_alsa: add boxed object to represent data of queue timer in ALSATimer case

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: scan ALSATimer-0.0 gir by g-ir-scanner for dependency
Takashi Sakamoto [Tue, 9 Jun 2020 21:41:20 +0000 (06:41 +0900)]
seq: scan ALSATimer-0.0 gir by g-ir-scanner for dependency

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotests: fix a test for ALSASeqQueueTimer
Takashi Sakamoto [Tue, 9 Jun 2020 21:14:38 +0000 (06:14 +0900)]
tests: fix a test for ALSASeqQueueTimer

Fixes: 4018fe02a4ea ("seq: queue_timer: add abstract object to represent timer attached to queue")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: fix segmentation fault due to uninitialized value
Takashi Sakamoto [Wed, 10 Jun 2020 14:13:54 +0000 (23:13 +0900)]
seq: fix segmentation fault due to uninitialized value

Fixes: 940885e0982b ("seq: add global method to get list of numerical ID of queue")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: add global method to retrieve current source of timestamp
Takashi Sakamoto [Tue, 9 Jun 2020 02:20:50 +0000 (11:20 +0900)]
timer: add global method to retrieve current source of timestamp

5 years agodoc: hwdep: fix missing content of introduction element
Takashi Sakamoto [Tue, 9 Jun 2020 00:18:09 +0000 (09:18 +0900)]
doc: hwdep: fix missing content of introduction element

Fixes: eb03ec0340b ("hwdep: fulfill documentation for ALSAHwdep")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event: dismiss ALSASeqEvent
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event: dismiss ALSASeqEvent

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_fixed: dismiss ALSASeqEventFixed
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_fixed: dismiss ALSASeqEventFixed

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_variable: dismiss ALSASeqEventVariable
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_variable: dismiss ALSASeqEventVariable

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: schedule events in ALSASeqEventCntr instead of ALSASeqEvent
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: user_client: schedule events in ALSASeqEventCntr instead of ALSASeqEvent

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: emit ALSASeqEventCntr instead of ALSASeqEventFixed/ALSASeqEventVariable
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: user_client: emit ALSASeqEventCntr instead of ALSASeqEventFixed/ALSASeqEventVariable

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: use ALSASeqEventCntr to parse read data
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: user_client: use ALSASeqEventCntr to parse read data

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agodoc: seq: add documentation for ALSASeqEventCntr
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
doc: seq: add documentation for ALSASeqEventCntr

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for result data of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for result data of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for connect data of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for connect data of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for address data of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for address data of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for timestamp data of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for timestamp data of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for queue data of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for queue data of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for blob data of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for blob data of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for quadlet data of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for quadlet data of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for byte data of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for byte data of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for control data of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for control data of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for note data of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for note data of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for the destination/source of event pointed by...
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for the destination/source of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for the tstamp of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for the tstamp of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for the numerical ID of queue to deliver the event...
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for the numerical ID of queue to deliver the event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for the tag of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for the tag of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for the priority mode of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for the priority mode of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for the length mode of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for the length mode of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for the time mode of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for the time mode of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for the timestamping mode of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for the timestamping mode of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add accesor APIs for the type of event pointed by index
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add accesor APIs for the type of event pointed by index

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add an API to calculate the amount of cells in pool consumed by...
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add an API to calculate the amount of cells in pool consumed by a batch of event

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add an API to calculate the number of events
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add an API to calculate the number of events

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: add private structure and constructor
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: add private structure and constructor

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotests: add a test for ALSASeqEventCntr
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
tests: add a test for ALSASeqEventCntr

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_cntr: add GObject-derived object to represent container for a batch of...
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: event_cntr: add GObject-derived object to represent container for a batch of events

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: client_pool: update descriptions of properties
Takashi Sakamoto [Mon, 8 Jun 2020 14:10:10 +0000 (23:10 +0900)]
seq: client_pool: update descriptions of properties

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: fulfill documentation for ALSASeq
Takashi Sakamoto [Sat, 6 Jun 2020 08:35:12 +0000 (17:35 +0900)]
seq: fulfill documentation for ALSASeq

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agorawmidi; fulfill documentation for ALSARawmidi
Takashi Sakamoto [Sat, 6 Jun 2020 02:17:32 +0000 (11:17 +0900)]
rawmidi; fulfill documentation for ALSARawmidi

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agotimer: fulfill documentation for ALSATimer
Takashi Sakamoto [Fri, 5 Jun 2020 15:30:21 +0000 (00:30 +0900)]
timer: fulfill documentation for ALSATimer

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agohwdep: fulfill documentation for ALSAHwdep
Takashi Sakamoto [Fri, 5 Jun 2020 14:41:57 +0000 (23:41 +0900)]
hwdep: fulfill documentation for ALSAHwdep

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: improve documentation for ALSACtl
Takashi Sakamoto [Fri, 5 Jun 2020 14:36:24 +0000 (23:36 +0900)]
ctl: improve documentation for ALSACtl

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoctl: fulfill documentation for ALSACtl
Takashi Sakamoto [Thu, 4 Jun 2020 07:20:48 +0000 (16:20 +0900)]
ctl: fulfill documentation for ALSACtl

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: remove useless argument of delete_port()
Takashi Sakamoto [Tue, 12 May 2020 02:06:48 +0000 (11:06 +0900)]
seq: user_client: remove useless argument of delete_port()

In implementation of ALSA sequencer core, the port owned by client can
be deleted by userspace applications which opens the client, therefore
it's necessary and sufficient to have an argument just for the numerical
ID of port.

This commit removes the useless argument for port information.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: use constant qualifier for read-only parameter
Takashi Sakamoto [Mon, 11 May 2020 09:03:33 +0000 (18:03 +0900)]
seq: user_client: use constant qualifier for read-only parameter

The 'port_id' parameters of 'alsaseq_user_client_create_port()' is
a pointer to storage of unsigned char type, due to optional parameter
in g-i interface. It's read-only if having value and it's better to
have const qualifier.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoRevert "seq: tstamp: use wrapper structure instead of union"
Takashi Sakamoto [Wed, 22 Apr 2020 13:53:46 +0000 (22:53 +0900)]
Revert "seq: tstamp: use wrapper structure instead of union"

This reverts commit 20fdc2d893ccba609cc786ebac733bf6914f9874.

In the above commit, union type structure is wrapped with care of
language bindings in which union-compatible feature is not expected.
However, it's responsible for language bindings to parse gir and
the care is not necessarily required in shared library side. In first
place, ALSASeq.Tstamp is boxed type object.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: addr: add API to compare two instances
Takashi Sakamoto [Wed, 15 Apr 2020 03:01:03 +0000 (12:01 +0900)]
seq: addr: add API to compare two instances

It's convenient to compare two instances of address in ALSA Sequencer.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_data_queue/event_fixed: improve annotations for quadlets methods
Takashi Sakamoto [Wed, 22 Apr 2020 03:26:03 +0000 (12:26 +0900)]
seq: event_data_queue/event_fixed: improve annotations for quadlets methods

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_data_queue/event_fixed: improve annotation for byte methods
Takashi Sakamoto [Wed, 22 Apr 2020 03:14:09 +0000 (12:14 +0900)]
seq: event_data_queue/event_fixed: improve annotation for byte methods

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_data_queue/queue_tempo: improve annotation for skew methods
Takashi Sakamoto [Wed, 22 Apr 2020 03:07:32 +0000 (12:07 +0900)]
seq: event_data_queue/queue_tempo: improve annotation for skew methods

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_fixed: use 'not a variable length array type' for quadlets argument
Takashi Sakamoto [Wed, 22 Apr 2020 02:55:21 +0000 (11:55 +0900)]
seq: event_fixed: use 'not a variable length array type' for quadlets argument

The type of quadlets argument is fixed-sized array.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_data_queue: use 'not a variable length array type' for quadlets argument
Takashi Sakamoto [Wed, 22 Apr 2020 02:54:47 +0000 (11:54 +0900)]
seq: event_data_queue: use 'not a variable length array type' for quadlets argument

The type of quadlets argument is fixed-sized array.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_fixed: use 'not a variable length array type' for bytes argument
Takashi Sakamoto [Wed, 22 Apr 2020 02:52:23 +0000 (11:52 +0900)]
seq: event_fixed: use 'not a variable length array type' for bytes argument

The bytes argument is fixed-sized array.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_data_queue: use 'not a variable length array type' for bytes argument
Takashi Sakamoto [Wed, 22 Apr 2020 02:51:46 +0000 (11:51 +0900)]
seq: event_data_queue: use 'not a variable length array type' for bytes argument

The type of bytes argument is fixed-sized array.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: queue_tempo: use 'not a variable length array type' for skew argument
Takashi Sakamoto [Wed, 22 Apr 2020 02:50:24 +0000 (11:50 +0900)]
seq: queue_tempo: use 'not a variable length array type' for skew argument

The type of skew argument is fixed-sized array.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_data_queue: use 'not a variable length array type' for skew argument
Takashi Sakamoto [Wed, 22 Apr 2020 02:48:07 +0000 (11:48 +0900)]
seq: event_data_queue: use 'not a variable length array type' for skew argument

The type of skew argument is fixed-sized array.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: event_data_queue: fix annotation for method name
Takashi Sakamoto [Wed, 22 Apr 2020 02:45:04 +0000 (11:45 +0900)]
seq: event_data_queue: fix annotation for method name

In annotation, method name for 'alsaseq_event_data_queue_set_quadlet_param'
is wrong.

Fixes: a272b5d0e727 ("seq: event_data_queue: add accessor methods")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: user_client: fix annotation for GObject signal handler
Takashi Sakamoto [Wed, 22 Apr 2020 01:22:19 +0000 (10:22 +0900)]
seq: user_client: fix annotation for GObject signal handler

Any object from ALSASeqEvent is passed to the second argument for handler
of 'handle-event' GObject signal, and it's not ALSASeqEvent itself.

Fixes: 89b631bd3e25 ("seq: user_client: add GObject signal to handle event")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: tstamp: add missing const qualifier for ALSASeq.Tstamp.get_real_time()
Takashi Sakamoto [Wed, 15 Apr 2020 05:18:33 +0000 (14:18 +0900)]
seq: tstamp: add missing const qualifier for ALSASeq.Tstamp.get_real_time()

The const qualifier was lost in a previous commit.

Fixes: 72d8062b80ff: ("seq: tstamp: rename argument for real time")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: queue_status: rename argument for real time
Takashi Sakamoto [Mon, 13 Apr 2020 06:56:53 +0000 (15:56 +0900)]
seq: queue_status: rename argument for real time

This commit renames argument for real time so that the name is
consistent within the library.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: tstamp: rename argument for real time
Takashi Sakamoto [Mon, 13 Apr 2020 06:34:39 +0000 (15:34 +0900)]
seq: tstamp: rename argument for real time

This commit renames argument for real time so that the name is
consistent within the library.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoseq: tstamp: use wrapper structure instead of union
Takashi Sakamoto [Mon, 13 Apr 2020 06:28:27 +0000 (15:28 +0900)]
seq: tstamp: use wrapper structure instead of union

In UAPI for ALSA Sequencer, snd_seq_timestamp is union with
snd_seq_tick_time_t and struct snd_seq_real_time types. The
libalsaseq has GLib Boxed object for the union, named as
ALSASeqTstamp.

```
$ cat build/src/seq/ALSASeq-0.0.gir
    ...
    <union name="Tstamp"
           c:type="ALSASeqTstamp"
           glib:type-name="ALSASeqTstamp"
           glib:get-type="alsaseq_tstamp_get_type"
           c:symbol-prefix="tstamp">
      <source-position filename="../src/seq/tstamp.h" line="14"/>
      ...
    </union>
    ...
```

Although this is valid in a view of GObject
Introspection, it's not nesessarily convenient to language
bindings because some programming language doesn't support
union type. In this case, the type is not available.

This commit adds an alternative structure to wrap the union.
As a result, ALSASeqTstamp is GLib Boxed object for the
wrapper structure.

```
$ cat build/src/seq/ALSASeq-0.0.gir
    ...
    <record name="Tstamp"
            c:type="ALSASeqTstamp"
            glib:type-name="ALSASeqTstamp"
            glib:get-type="alsaseq_tstamp_get_type"
            c:symbol-prefix="tstamp">
      <source-position filename="../src/seq/tstamp.h" line="18"/>
      <field name="tstamp" writable="1">
        <type name="gpointer" c:type="snd_seq_timestamp"/>
      </field>
      ...
    </record>
    ...
```

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agoupdate README
Takashi Sakamoto [Sat, 30 Nov 2019 09:00:16 +0000 (18:00 +0900)]
update README

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agorawmidi: doc: generate documentation of ALSARawmidi library
Takashi Sakamoto [Thu, 21 Nov 2019 05:06:34 +0000 (14:06 +0900)]
rawmidi: doc: generate documentation of ALSARawmidi library

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agorawmidi: stream_pair: emit 'handle_disconnection' signal
Takashi Sakamoto [Sun, 1 Dec 2019 03:04:42 +0000 (12:04 +0900)]
rawmidi: stream_pair: emit 'handle_disconnection' signal

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agorawmidi: stream_pair: add class virtual method to handle disconnection of sound card
Takashi Sakamoto [Sun, 1 Dec 2019 03:02:00 +0000 (12:02 +0900)]
rawmidi: stream_pair: add class virtual method to handle disconnection of sound card

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agorawmidi: stream_pair: add GObject signal to handle disconnection of sound card
Takashi Sakamoto [Sun, 1 Dec 2019 03:00:24 +0000 (12:00 +0900)]
rawmidi: stream_pair: add GObject signal to handle disconnection of sound card

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agorawmidi: stream_pair: emit 'receive-msgs'
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
rawmidi: stream_pair: emit 'receive-msgs'

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agorawmidi: stream_pair: add virtual function to notify receipt of messages
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
rawmidi: stream_pair: add virtual function to notify receipt of messages

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agorawmidi: stream_pair: add GObject signal to notify receipt of messages
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
rawmidi: stream_pair: add GObject signal to notify receipt of messages

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agorawmidi: stream_pair: add an API to create GSource
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
rawmidi: stream_pair: add an API to create GSource

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
5 years agorawmidi: stream_pair: add an API to drop queued data for attached substream
Takashi Sakamoto [Mon, 18 Nov 2019 04:22:44 +0000 (13:22 +0900)]
rawmidi: stream_pair: add an API to drop queued data for attached substream

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