From 90e04fe4286ef3610b728d8309fa276c6175280c Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Wed, 10 Jun 2020 11:00:39 +0900 Subject: [PATCH] timer: ALSATimerEventDataType: use shorter name for timestamp Signed-off-by: Takashi Sakamoto --- src/timer/alsatimer-enum-types.h | 6 +++--- src/timer/user-instance.c | 2 +- tests/alsatimer-enums | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/timer/alsatimer-enum-types.h b/src/timer/alsatimer-enum-types.h index 70449f9..fd728b0 100644 --- a/src/timer/alsatimer-enum-types.h +++ b/src/timer/alsatimer-enum-types.h @@ -112,14 +112,14 @@ typedef enum /** * ALSATimerEventDataType - * @ALSATIMER_EVENT_DATA_TYPE_TICK: The data for tick event. - * @ALSATIMER_EVENT_DATA_TYPE_TIMESTAMP: The data for timestamp event. + * @ALSATIMER_EVENT_DATA_TYPE_TICK: The data for tick event. + * @ALSATIMER_EVENT_DATA_TYPE_TSTAMP: The data for timestamp event. * * A set of enumerations for the type of event data. */ typedef enum { ALSATIMER_EVENT_DATA_TYPE_TICK, - ALSATIMER_EVENT_DATA_TYPE_TIMESTAMP, + ALSATIMER_EVENT_DATA_TYPE_TSTAMP, } ALSATimerEventDataType; #endif diff --git a/src/timer/user-instance.c b/src/timer/user-instance.c index 78152ad..e025b42 100644 --- a/src/timer/user-instance.c +++ b/src/timer/user-instance.c @@ -340,7 +340,7 @@ static gboolean timer_user_instance_dispatch_src(GSource *gsrc, GSourceFunc cb, case ALSATIMER_EVENT_DATA_TYPE_TICK: event_size = sizeof(struct snd_timer_read); break; - case ALSATIMER_EVENT_DATA_TYPE_TIMESTAMP: + case ALSATIMER_EVENT_DATA_TYPE_TSTAMP: event_size = sizeof(struct snd_timer_tread); break; default: diff --git a/tests/alsatimer-enums b/tests/alsatimer-enums index 0923ac3..dad6f07 100644 --- a/tests/alsatimer-enums +++ b/tests/alsatimer-enums @@ -53,7 +53,7 @@ event_types = ( event_data_types = ( 'TICK', - 'TIMESTAMP', + 'TSTAMP', ) types = { -- 2.47.3