1d5ac70f0Sopenharmony_ci/** 2d5ac70f0Sopenharmony_ci * \file include/timer.h 3d5ac70f0Sopenharmony_ci * \brief Application interface library for the ALSA driver 4d5ac70f0Sopenharmony_ci * \author Jaroslav Kysela <perex@perex.cz> 5d5ac70f0Sopenharmony_ci * \author Abramo Bagnara <abramo@alsa-project.org> 6d5ac70f0Sopenharmony_ci * \author Takashi Iwai <tiwai@suse.de> 7d5ac70f0Sopenharmony_ci * \date 1998-2001 8d5ac70f0Sopenharmony_ci * 9d5ac70f0Sopenharmony_ci * Application interface library for the ALSA driver 10d5ac70f0Sopenharmony_ci */ 11d5ac70f0Sopenharmony_ci/* 12d5ac70f0Sopenharmony_ci * This library is free software; you can redistribute it and/or modify 13d5ac70f0Sopenharmony_ci * it under the terms of the GNU Lesser General Public License as 14d5ac70f0Sopenharmony_ci * published by the Free Software Foundation; either version 2.1 of 15d5ac70f0Sopenharmony_ci * the License, or (at your option) any later version. 16d5ac70f0Sopenharmony_ci * 17d5ac70f0Sopenharmony_ci * This program is distributed in the hope that it will be useful, 18d5ac70f0Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 19d5ac70f0Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20d5ac70f0Sopenharmony_ci * GNU Lesser General Public License for more details. 21d5ac70f0Sopenharmony_ci * 22d5ac70f0Sopenharmony_ci * You should have received a copy of the GNU Lesser General Public 23d5ac70f0Sopenharmony_ci * License along with this library; if not, write to the Free Software 24d5ac70f0Sopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 25d5ac70f0Sopenharmony_ci * 26d5ac70f0Sopenharmony_ci */ 27d5ac70f0Sopenharmony_ci 28d5ac70f0Sopenharmony_ci#ifndef __ALSA_TIMER_H 29d5ac70f0Sopenharmony_ci#define __ALSA_TIMER_H 30d5ac70f0Sopenharmony_ci 31d5ac70f0Sopenharmony_ci#ifdef __cplusplus 32d5ac70f0Sopenharmony_ciextern "C" { 33d5ac70f0Sopenharmony_ci#endif 34d5ac70f0Sopenharmony_ci 35d5ac70f0Sopenharmony_ci/** 36d5ac70f0Sopenharmony_ci * \defgroup Timer Timer Interface 37d5ac70f0Sopenharmony_ci * Timer Interface. See \ref timer page for more details. 38d5ac70f0Sopenharmony_ci * \{ 39d5ac70f0Sopenharmony_ci */ 40d5ac70f0Sopenharmony_ci 41d5ac70f0Sopenharmony_ci/** dlsym version for interface entry callback */ 42d5ac70f0Sopenharmony_ci#define SND_TIMER_DLSYM_VERSION _dlsym_timer_001 43d5ac70f0Sopenharmony_ci/** dlsym version for interface entry callback */ 44d5ac70f0Sopenharmony_ci#define SND_TIMER_QUERY_DLSYM_VERSION _dlsym_timer_query_001 45d5ac70f0Sopenharmony_ci 46d5ac70f0Sopenharmony_ci/** timer identification structure */ 47d5ac70f0Sopenharmony_citypedef struct _snd_timer_id snd_timer_id_t; 48d5ac70f0Sopenharmony_ci/** timer global info structure */ 49d5ac70f0Sopenharmony_citypedef struct _snd_timer_ginfo snd_timer_ginfo_t; 50d5ac70f0Sopenharmony_ci/** timer global params structure */ 51d5ac70f0Sopenharmony_citypedef struct _snd_timer_gparams snd_timer_gparams_t; 52d5ac70f0Sopenharmony_ci/** timer global status structure */ 53d5ac70f0Sopenharmony_citypedef struct _snd_timer_gstatus snd_timer_gstatus_t; 54d5ac70f0Sopenharmony_ci/** timer info structure */ 55d5ac70f0Sopenharmony_citypedef struct _snd_timer_info snd_timer_info_t; 56d5ac70f0Sopenharmony_ci/** timer params structure */ 57d5ac70f0Sopenharmony_citypedef struct _snd_timer_params snd_timer_params_t; 58d5ac70f0Sopenharmony_ci/** timer status structure */ 59d5ac70f0Sopenharmony_citypedef struct _snd_timer_status snd_timer_status_t; 60d5ac70f0Sopenharmony_ci/** timer master class */ 61d5ac70f0Sopenharmony_citypedef enum _snd_timer_class { 62d5ac70f0Sopenharmony_ci SND_TIMER_CLASS_NONE = -1, /**< invalid */ 63d5ac70f0Sopenharmony_ci SND_TIMER_CLASS_SLAVE = 0, /**< slave timer */ 64d5ac70f0Sopenharmony_ci SND_TIMER_CLASS_GLOBAL, /**< global timer */ 65d5ac70f0Sopenharmony_ci SND_TIMER_CLASS_CARD, /**< card timer */ 66d5ac70f0Sopenharmony_ci SND_TIMER_CLASS_PCM, /**< PCM timer */ 67d5ac70f0Sopenharmony_ci SND_TIMER_CLASS_LAST = SND_TIMER_CLASS_PCM /**< last timer */ 68d5ac70f0Sopenharmony_ci} snd_timer_class_t; 69d5ac70f0Sopenharmony_ci 70d5ac70f0Sopenharmony_ci/** timer slave class */ 71d5ac70f0Sopenharmony_citypedef enum _snd_timer_slave_class { 72d5ac70f0Sopenharmony_ci SND_TIMER_SCLASS_NONE = 0, /**< none */ 73d5ac70f0Sopenharmony_ci SND_TIMER_SCLASS_APPLICATION, /**< for internal use */ 74d5ac70f0Sopenharmony_ci SND_TIMER_SCLASS_SEQUENCER, /**< sequencer timer */ 75d5ac70f0Sopenharmony_ci SND_TIMER_SCLASS_OSS_SEQUENCER, /**< OSS sequencer timer */ 76d5ac70f0Sopenharmony_ci SND_TIMER_SCLASS_LAST = SND_TIMER_SCLASS_OSS_SEQUENCER /**< last slave timer */ 77d5ac70f0Sopenharmony_ci} snd_timer_slave_class_t; 78d5ac70f0Sopenharmony_ci 79d5ac70f0Sopenharmony_ci/** timer read event identification */ 80d5ac70f0Sopenharmony_citypedef enum _snd_timer_event { 81d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_RESOLUTION = 0, /* val = resolution in ns */ 82d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_TICK, /* val = ticks */ 83d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_START, /* val = resolution in ns */ 84d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_STOP, /* val = 0 */ 85d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_CONTINUE, /* val = resolution in ns */ 86d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_PAUSE, /* val = 0 */ 87d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_EARLY, /* val = 0 */ 88d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_SUSPEND, /* val = 0 */ 89d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_RESUME, /* val = resolution in ns */ 90d5ac70f0Sopenharmony_ci /* master timer events for slave timer instances */ 91d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_MSTART = SND_TIMER_EVENT_START + 10, 92d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_MSTOP = SND_TIMER_EVENT_STOP + 10, 93d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_MCONTINUE = SND_TIMER_EVENT_CONTINUE + 10, 94d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_MPAUSE = SND_TIMER_EVENT_PAUSE + 10, 95d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_MSUSPEND = SND_TIMER_EVENT_SUSPEND + 10, 96d5ac70f0Sopenharmony_ci SND_TIMER_EVENT_MRESUME = SND_TIMER_EVENT_RESUME + 10 97d5ac70f0Sopenharmony_ci} snd_timer_event_t; 98d5ac70f0Sopenharmony_ci 99d5ac70f0Sopenharmony_ci/** timer read structure */ 100d5ac70f0Sopenharmony_citypedef struct _snd_timer_read { 101d5ac70f0Sopenharmony_ci unsigned int resolution; /**< tick resolution in nanoseconds */ 102d5ac70f0Sopenharmony_ci unsigned int ticks; /**< count of happened ticks */ 103d5ac70f0Sopenharmony_ci} snd_timer_read_t; 104d5ac70f0Sopenharmony_ci 105d5ac70f0Sopenharmony_ci/** timer tstamp + event read structure */ 106d5ac70f0Sopenharmony_citypedef struct _snd_timer_tread { 107d5ac70f0Sopenharmony_ci snd_timer_event_t event; /**< Timer event */ 108d5ac70f0Sopenharmony_ci snd_htimestamp_t tstamp; /**< Time stamp of each event */ 109d5ac70f0Sopenharmony_ci unsigned int val; /**< Event value */ 110d5ac70f0Sopenharmony_ci} snd_timer_tread_t; 111d5ac70f0Sopenharmony_ci 112d5ac70f0Sopenharmony_ci/** global timer - system */ 113d5ac70f0Sopenharmony_ci#define SND_TIMER_GLOBAL_SYSTEM 0 114d5ac70f0Sopenharmony_ci/** global timer - RTC */ 115d5ac70f0Sopenharmony_ci#define SND_TIMER_GLOBAL_RTC 1 /* Obsoleted, due to enough legacy. */ 116d5ac70f0Sopenharmony_ci/** global timer - HPET */ 117d5ac70f0Sopenharmony_ci#define SND_TIMER_GLOBAL_HPET 2 118d5ac70f0Sopenharmony_ci/** global timer - HRTIMER */ 119d5ac70f0Sopenharmony_ci#define SND_TIMER_GLOBAL_HRTIMER 3 120d5ac70f0Sopenharmony_ci 121d5ac70f0Sopenharmony_ci/** timer open mode flag - non-blocking behaviour */ 122d5ac70f0Sopenharmony_ci#define SND_TIMER_OPEN_NONBLOCK (1<<0) 123d5ac70f0Sopenharmony_ci/** use timestamps and event notification - enhanced read */ 124d5ac70f0Sopenharmony_ci#define SND_TIMER_OPEN_TREAD (1<<1) 125d5ac70f0Sopenharmony_ci 126d5ac70f0Sopenharmony_ci/** timer handle type */ 127d5ac70f0Sopenharmony_citypedef enum _snd_timer_type { 128d5ac70f0Sopenharmony_ci /** Kernel level HwDep */ 129d5ac70f0Sopenharmony_ci SND_TIMER_TYPE_HW = 0, 130d5ac70f0Sopenharmony_ci /** Shared memory client timer (not yet implemented) */ 131d5ac70f0Sopenharmony_ci SND_TIMER_TYPE_SHM, 132d5ac70f0Sopenharmony_ci /** INET client timer (not yet implemented) */ 133d5ac70f0Sopenharmony_ci SND_TIMER_TYPE_INET 134d5ac70f0Sopenharmony_ci} snd_timer_type_t; 135d5ac70f0Sopenharmony_ci 136d5ac70f0Sopenharmony_ci/** timer query handle */ 137d5ac70f0Sopenharmony_citypedef struct _snd_timer_query snd_timer_query_t; 138d5ac70f0Sopenharmony_ci/** timer handle */ 139d5ac70f0Sopenharmony_citypedef struct _snd_timer snd_timer_t; 140d5ac70f0Sopenharmony_ci 141d5ac70f0Sopenharmony_ci 142d5ac70f0Sopenharmony_ciint snd_timer_query_open(snd_timer_query_t **handle, const char *name, int mode); 143d5ac70f0Sopenharmony_ciint snd_timer_query_open_lconf(snd_timer_query_t **handle, const char *name, int mode, snd_config_t *lconf); 144d5ac70f0Sopenharmony_ciint snd_timer_query_close(snd_timer_query_t *handle); 145d5ac70f0Sopenharmony_ciint snd_timer_query_next_device(snd_timer_query_t *handle, snd_timer_id_t *tid); 146d5ac70f0Sopenharmony_ciint snd_timer_query_info(snd_timer_query_t *handle, snd_timer_ginfo_t *info); 147d5ac70f0Sopenharmony_ciint snd_timer_query_params(snd_timer_query_t *handle, snd_timer_gparams_t *params); 148d5ac70f0Sopenharmony_ciint snd_timer_query_status(snd_timer_query_t *handle, snd_timer_gstatus_t *status); 149d5ac70f0Sopenharmony_ci 150d5ac70f0Sopenharmony_ciint snd_timer_open(snd_timer_t **handle, const char *name, int mode); 151d5ac70f0Sopenharmony_ciint snd_timer_open_lconf(snd_timer_t **handle, const char *name, int mode, snd_config_t *lconf); 152d5ac70f0Sopenharmony_ciint snd_timer_close(snd_timer_t *handle); 153d5ac70f0Sopenharmony_ciint snd_async_add_timer_handler(snd_async_handler_t **handler, snd_timer_t *timer, 154d5ac70f0Sopenharmony_ci snd_async_callback_t callback, void *private_data); 155d5ac70f0Sopenharmony_cisnd_timer_t *snd_async_handler_get_timer(snd_async_handler_t *handler); 156d5ac70f0Sopenharmony_ciint snd_timer_poll_descriptors_count(snd_timer_t *handle); 157d5ac70f0Sopenharmony_ciint snd_timer_poll_descriptors(snd_timer_t *handle, struct pollfd *pfds, unsigned int space); 158d5ac70f0Sopenharmony_ciint snd_timer_poll_descriptors_revents(snd_timer_t *timer, struct pollfd *pfds, unsigned int nfds, unsigned short *revents); 159d5ac70f0Sopenharmony_ciint snd_timer_info(snd_timer_t *handle, snd_timer_info_t *timer); 160d5ac70f0Sopenharmony_ciint snd_timer_params(snd_timer_t *handle, snd_timer_params_t *params); 161d5ac70f0Sopenharmony_ciint snd_timer_status(snd_timer_t *handle, snd_timer_status_t *status); 162d5ac70f0Sopenharmony_ciint snd_timer_start(snd_timer_t *handle); 163d5ac70f0Sopenharmony_ciint snd_timer_stop(snd_timer_t *handle); 164d5ac70f0Sopenharmony_ciint snd_timer_continue(snd_timer_t *handle); 165d5ac70f0Sopenharmony_cissize_t snd_timer_read(snd_timer_t *handle, void *buffer, size_t size); 166d5ac70f0Sopenharmony_ci 167d5ac70f0Sopenharmony_cisize_t snd_timer_id_sizeof(void); 168d5ac70f0Sopenharmony_ci/** allocate #snd_timer_id_t container on stack */ 169d5ac70f0Sopenharmony_ci#define snd_timer_id_alloca(ptr) __snd_alloca(ptr, snd_timer_id) 170d5ac70f0Sopenharmony_ciint snd_timer_id_malloc(snd_timer_id_t **ptr); 171d5ac70f0Sopenharmony_civoid snd_timer_id_free(snd_timer_id_t *obj); 172d5ac70f0Sopenharmony_civoid snd_timer_id_copy(snd_timer_id_t *dst, const snd_timer_id_t *src); 173d5ac70f0Sopenharmony_ci 174d5ac70f0Sopenharmony_civoid snd_timer_id_set_class(snd_timer_id_t *id, int dev_class); 175d5ac70f0Sopenharmony_ciint snd_timer_id_get_class(snd_timer_id_t *id); 176d5ac70f0Sopenharmony_civoid snd_timer_id_set_sclass(snd_timer_id_t *id, int dev_sclass); 177d5ac70f0Sopenharmony_ciint snd_timer_id_get_sclass(snd_timer_id_t *id); 178d5ac70f0Sopenharmony_civoid snd_timer_id_set_card(snd_timer_id_t *id, int card); 179d5ac70f0Sopenharmony_ciint snd_timer_id_get_card(snd_timer_id_t *id); 180d5ac70f0Sopenharmony_civoid snd_timer_id_set_device(snd_timer_id_t *id, int device); 181d5ac70f0Sopenharmony_ciint snd_timer_id_get_device(snd_timer_id_t *id); 182d5ac70f0Sopenharmony_civoid snd_timer_id_set_subdevice(snd_timer_id_t *id, int subdevice); 183d5ac70f0Sopenharmony_ciint snd_timer_id_get_subdevice(snd_timer_id_t *id); 184d5ac70f0Sopenharmony_ci 185d5ac70f0Sopenharmony_cisize_t snd_timer_ginfo_sizeof(void); 186d5ac70f0Sopenharmony_ci/** allocate #snd_timer_ginfo_t container on stack */ 187d5ac70f0Sopenharmony_ci#define snd_timer_ginfo_alloca(ptr) __snd_alloca(ptr, snd_timer_ginfo) 188d5ac70f0Sopenharmony_ciint snd_timer_ginfo_malloc(snd_timer_ginfo_t **ptr); 189d5ac70f0Sopenharmony_civoid snd_timer_ginfo_free(snd_timer_ginfo_t *obj); 190d5ac70f0Sopenharmony_civoid snd_timer_ginfo_copy(snd_timer_ginfo_t *dst, const snd_timer_ginfo_t *src); 191d5ac70f0Sopenharmony_ci 192d5ac70f0Sopenharmony_ciint snd_timer_ginfo_set_tid(snd_timer_ginfo_t *obj, snd_timer_id_t *tid); 193d5ac70f0Sopenharmony_cisnd_timer_id_t *snd_timer_ginfo_get_tid(snd_timer_ginfo_t *obj); 194d5ac70f0Sopenharmony_ciunsigned int snd_timer_ginfo_get_flags(snd_timer_ginfo_t *obj); 195d5ac70f0Sopenharmony_ciint snd_timer_ginfo_get_card(snd_timer_ginfo_t *obj); 196d5ac70f0Sopenharmony_cichar *snd_timer_ginfo_get_id(snd_timer_ginfo_t *obj); 197d5ac70f0Sopenharmony_cichar *snd_timer_ginfo_get_name(snd_timer_ginfo_t *obj); 198d5ac70f0Sopenharmony_ciunsigned long snd_timer_ginfo_get_resolution(snd_timer_ginfo_t *obj); 199d5ac70f0Sopenharmony_ciunsigned long snd_timer_ginfo_get_resolution_min(snd_timer_ginfo_t *obj); 200d5ac70f0Sopenharmony_ciunsigned long snd_timer_ginfo_get_resolution_max(snd_timer_ginfo_t *obj); 201d5ac70f0Sopenharmony_ciunsigned int snd_timer_ginfo_get_clients(snd_timer_ginfo_t *obj); 202d5ac70f0Sopenharmony_ci 203d5ac70f0Sopenharmony_cisize_t snd_timer_info_sizeof(void); 204d5ac70f0Sopenharmony_ci/** allocate #snd_timer_info_t container on stack */ 205d5ac70f0Sopenharmony_ci#define snd_timer_info_alloca(ptr) __snd_alloca(ptr, snd_timer_info) 206d5ac70f0Sopenharmony_ciint snd_timer_info_malloc(snd_timer_info_t **ptr); 207d5ac70f0Sopenharmony_civoid snd_timer_info_free(snd_timer_info_t *obj); 208d5ac70f0Sopenharmony_civoid snd_timer_info_copy(snd_timer_info_t *dst, const snd_timer_info_t *src); 209d5ac70f0Sopenharmony_ci 210d5ac70f0Sopenharmony_ciint snd_timer_info_is_slave(snd_timer_info_t * info); 211d5ac70f0Sopenharmony_ciint snd_timer_info_get_card(snd_timer_info_t * info); 212d5ac70f0Sopenharmony_ciconst char *snd_timer_info_get_id(snd_timer_info_t * info); 213d5ac70f0Sopenharmony_ciconst char *snd_timer_info_get_name(snd_timer_info_t * info); 214d5ac70f0Sopenharmony_cilong snd_timer_info_get_resolution(snd_timer_info_t * info); 215d5ac70f0Sopenharmony_ci 216d5ac70f0Sopenharmony_cisize_t snd_timer_params_sizeof(void); 217d5ac70f0Sopenharmony_ci/** allocate #snd_timer_params_t container on stack */ 218d5ac70f0Sopenharmony_ci#define snd_timer_params_alloca(ptr) __snd_alloca(ptr, snd_timer_params) 219d5ac70f0Sopenharmony_ciint snd_timer_params_malloc(snd_timer_params_t **ptr); 220d5ac70f0Sopenharmony_civoid snd_timer_params_free(snd_timer_params_t *obj); 221d5ac70f0Sopenharmony_civoid snd_timer_params_copy(snd_timer_params_t *dst, const snd_timer_params_t *src); 222d5ac70f0Sopenharmony_ci 223d5ac70f0Sopenharmony_ciint snd_timer_params_set_auto_start(snd_timer_params_t * params, int auto_start); 224d5ac70f0Sopenharmony_ciint snd_timer_params_get_auto_start(snd_timer_params_t * params); 225d5ac70f0Sopenharmony_ciint snd_timer_params_set_exclusive(snd_timer_params_t * params, int exclusive); 226d5ac70f0Sopenharmony_ciint snd_timer_params_get_exclusive(snd_timer_params_t * params); 227d5ac70f0Sopenharmony_ciint snd_timer_params_set_early_event(snd_timer_params_t * params, int early_event); 228d5ac70f0Sopenharmony_ciint snd_timer_params_get_early_event(snd_timer_params_t * params); 229d5ac70f0Sopenharmony_civoid snd_timer_params_set_ticks(snd_timer_params_t * params, long ticks); 230d5ac70f0Sopenharmony_cilong snd_timer_params_get_ticks(snd_timer_params_t * params); 231d5ac70f0Sopenharmony_civoid snd_timer_params_set_queue_size(snd_timer_params_t * params, long queue_size); 232d5ac70f0Sopenharmony_cilong snd_timer_params_get_queue_size(snd_timer_params_t * params); 233d5ac70f0Sopenharmony_civoid snd_timer_params_set_filter(snd_timer_params_t * params, unsigned int filter); 234d5ac70f0Sopenharmony_ciunsigned int snd_timer_params_get_filter(snd_timer_params_t * params); 235d5ac70f0Sopenharmony_ci 236d5ac70f0Sopenharmony_cisize_t snd_timer_status_sizeof(void); 237d5ac70f0Sopenharmony_ci/** allocate #snd_timer_status_t container on stack */ 238d5ac70f0Sopenharmony_ci#define snd_timer_status_alloca(ptr) __snd_alloca(ptr, snd_timer_status) 239d5ac70f0Sopenharmony_ciint snd_timer_status_malloc(snd_timer_status_t **ptr); 240d5ac70f0Sopenharmony_civoid snd_timer_status_free(snd_timer_status_t *obj); 241d5ac70f0Sopenharmony_civoid snd_timer_status_copy(snd_timer_status_t *dst, const snd_timer_status_t *src); 242d5ac70f0Sopenharmony_ci 243d5ac70f0Sopenharmony_cisnd_htimestamp_t snd_timer_status_get_timestamp(snd_timer_status_t * status); 244d5ac70f0Sopenharmony_cilong snd_timer_status_get_resolution(snd_timer_status_t * status); 245d5ac70f0Sopenharmony_cilong snd_timer_status_get_lost(snd_timer_status_t * status); 246d5ac70f0Sopenharmony_cilong snd_timer_status_get_overrun(snd_timer_status_t * status); 247d5ac70f0Sopenharmony_cilong snd_timer_status_get_queue(snd_timer_status_t * status); 248d5ac70f0Sopenharmony_ci 249d5ac70f0Sopenharmony_ci/* deprecated functions, for compatibility */ 250d5ac70f0Sopenharmony_cilong snd_timer_info_get_ticks(snd_timer_info_t * info); 251d5ac70f0Sopenharmony_ci 252d5ac70f0Sopenharmony_ci/** \} */ 253d5ac70f0Sopenharmony_ci 254d5ac70f0Sopenharmony_ci#ifdef __cplusplus 255d5ac70f0Sopenharmony_ci} 256d5ac70f0Sopenharmony_ci#endif 257d5ac70f0Sopenharmony_ci 258d5ac70f0Sopenharmony_ci#endif /** __ALSA_TIMER_H */ 259d5ac70f0Sopenharmony_ci 260