diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-10-10 11:49:49 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-11-04 13:17:47 +0100 |
commit | 07799e756c76ecd52cb01a812ba48b7d8ac67633 (patch) | |
tree | 5b6a006d90e631e6b70264aba355314a7cedbbe5 /include/sound/core.h | |
parent | 7c22f1aaa23370bf9ba2dd3abbccbed70dced216 (diff) | |
download | kernel_samsung_espresso10-07799e756c76ecd52cb01a812ba48b7d8ac67633.zip kernel_samsung_espresso10-07799e756c76ecd52cb01a812ba48b7d8ac67633.tar.gz kernel_samsung_espresso10-07799e756c76ecd52cb01a812ba48b7d8ac67633.tar.bz2 |
[ALSA] Use getnstimeofday()
Modules: Documentation,PCM Midlevel,Timer Midlevel,ALSA Core
Use the standard getnstimeofday() function instead of ALSA's own one.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/core.h')
-rw-r--r-- | include/sound/core.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index f0f5440..fa8f4c9 100644 --- a/include/sound/core.h +++ b/include/sound/core.h @@ -29,7 +29,6 @@ #include <linux/pm.h> /* pm_message_t */ /* Typedef's */ -typedef struct timespec snd_timestamp_t; typedef struct sndrv_interval snd_interval_t; typedef enum sndrv_card_type snd_card_type; typedef struct sndrv_xferi snd_xferi_t; @@ -464,28 +463,6 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...) #endif -static inline void snd_timestamp_now(struct timespec *tstamp, int timespec) -{ - struct timeval val; - /* FIXME: use a linear time source */ - do_gettimeofday(&val); - tstamp->tv_sec = val.tv_sec; - tstamp->tv_nsec = val.tv_usec; - if (timespec) - tstamp->tv_nsec *= 1000L; -} - -static inline void snd_timestamp_zero(struct timespec *tstamp) -{ - tstamp->tv_sec = 0; - tstamp->tv_nsec = 0; -} - -static inline int snd_timestamp_null(struct timespec *tstamp) -{ - return tstamp->tv_sec == 0 && tstamp->tv_nsec == 0; -} - #define SNDRV_OSS_VERSION ((3<<16)|(8<<8)|(1<<4)|(0)) /* 3.8.1a */ /* for easier backward-porting */ |