Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
timer.h File Reference
#include <sound/asound.h>
#include <linux/interrupt.h>

Go to the source code of this file.

Data Structures

struct  snd_timer_hardware
 
struct  snd_timer
 
struct  snd_timer_instance
 

Macros

#define snd_timer_chip(timer)   ((timer)->private_data)
 
#define SNDRV_TIMER_DEVICES   16
 
#define SNDRV_TIMER_DEV_FLG_PCM   0x10000000
 
#define SNDRV_TIMER_HW_AUTO   0x00000001 /* auto trigger is supported */
 
#define SNDRV_TIMER_HW_STOP   0x00000002 /* call stop before start */
 
#define SNDRV_TIMER_HW_SLAVE   0x00000004 /* only slave timer (variable resolution) */
 
#define SNDRV_TIMER_HW_FIRST   0x00000008 /* first tick can be incomplete */
 
#define SNDRV_TIMER_HW_TASKLET   0x00000010 /* timer is called from tasklet */
 
#define SNDRV_TIMER_IFLG_SLAVE   0x00000001
 
#define SNDRV_TIMER_IFLG_RUNNING   0x00000002
 
#define SNDRV_TIMER_IFLG_START   0x00000004
 
#define SNDRV_TIMER_IFLG_AUTO   0x00000008 /* auto restart */
 
#define SNDRV_TIMER_IFLG_FAST   0x00000010 /* fast callback (do not use tasklet) */
 
#define SNDRV_TIMER_IFLG_CALLBACK   0x00000020 /* timer callback is active */
 
#define SNDRV_TIMER_IFLG_EXCLUSIVE   0x00000040 /* exclusive owner - no more instances */
 
#define SNDRV_TIMER_IFLG_EARLY_EVENT   0x00000080 /* write early event to the poll queue */
 
#define SNDRV_TIMER_FLG_CHANGE   0x00000001
 
#define SNDRV_TIMER_FLG_RESCHED   0x00000002 /* need reschedule */
 

Functions

int snd_timer_new (struct snd_card *card, char *id, struct snd_timer_id *tid, struct snd_timer **rtimer)
 
void snd_timer_notify (struct snd_timer *timer, int event, struct timespec *tstamp)
 
int snd_timer_global_new (char *id, int device, struct snd_timer **rtimer)
 
int snd_timer_global_free (struct snd_timer *timer)
 
int snd_timer_global_register (struct snd_timer *timer)
 
int snd_timer_open (struct snd_timer_instance **ti, char *owner, struct snd_timer_id *tid, unsigned int slave_id)
 
int snd_timer_close (struct snd_timer_instance *timeri)
 
unsigned long snd_timer_resolution (struct snd_timer_instance *timeri)
 
int snd_timer_start (struct snd_timer_instance *timeri, unsigned int ticks)
 
int snd_timer_stop (struct snd_timer_instance *timeri)
 
int snd_timer_continue (struct snd_timer_instance *timeri)
 
int snd_timer_pause (struct snd_timer_instance *timeri)
 
void snd_timer_interrupt (struct snd_timer *timer, unsigned long ticks_left)
 

Macro Definition Documentation

#define snd_timer_chip (   timer)    ((timer)->private_data)

Definition at line 29 of file timer.h.

#define SNDRV_TIMER_DEV_FLG_PCM   0x10000000

Definition at line 33 of file timer.h.

#define SNDRV_TIMER_DEVICES   16

Definition at line 31 of file timer.h.

#define SNDRV_TIMER_FLG_CHANGE   0x00000001

Definition at line 50 of file timer.h.

#define SNDRV_TIMER_FLG_RESCHED   0x00000002 /* need reschedule */

Definition at line 51 of file timer.h.

#define SNDRV_TIMER_HW_AUTO   0x00000001 /* auto trigger is supported */

Definition at line 35 of file timer.h.

#define SNDRV_TIMER_HW_FIRST   0x00000008 /* first tick can be incomplete */

Definition at line 38 of file timer.h.

#define SNDRV_TIMER_HW_SLAVE   0x00000004 /* only slave timer (variable resolution) */

Definition at line 37 of file timer.h.

#define SNDRV_TIMER_HW_STOP   0x00000002 /* call stop before start */

Definition at line 36 of file timer.h.

#define SNDRV_TIMER_HW_TASKLET   0x00000010 /* timer is called from tasklet */

Definition at line 39 of file timer.h.

#define SNDRV_TIMER_IFLG_AUTO   0x00000008 /* auto restart */

Definition at line 44 of file timer.h.

#define SNDRV_TIMER_IFLG_CALLBACK   0x00000020 /* timer callback is active */

Definition at line 46 of file timer.h.

#define SNDRV_TIMER_IFLG_EARLY_EVENT   0x00000080 /* write early event to the poll queue */

Definition at line 48 of file timer.h.

#define SNDRV_TIMER_IFLG_EXCLUSIVE   0x00000040 /* exclusive owner - no more instances */

Definition at line 47 of file timer.h.

#define SNDRV_TIMER_IFLG_FAST   0x00000010 /* fast callback (do not use tasklet) */

Definition at line 45 of file timer.h.

#define SNDRV_TIMER_IFLG_RUNNING   0x00000002

Definition at line 42 of file timer.h.

#define SNDRV_TIMER_IFLG_SLAVE   0x00000001

Definition at line 41 of file timer.h.

#define SNDRV_TIMER_IFLG_START   0x00000004

Definition at line 43 of file timer.h.

Function Documentation

int snd_timer_close ( struct snd_timer_instance timeri)

Definition at line 307 of file timer.c.

int snd_timer_continue ( struct snd_timer_instance timeri)

Definition at line 550 of file timer.c.

int snd_timer_global_free ( struct snd_timer timer)

Definition at line 932 of file timer.c.

int snd_timer_global_new ( char id,
int  device,
struct snd_timer **  rtimer 
)

Definition at line 920 of file timer.c.

int snd_timer_global_register ( struct snd_timer timer)

Definition at line 937 of file timer.c.

void snd_timer_interrupt ( struct snd_timer timer,
unsigned long  ticks_left 
)

Definition at line 655 of file timer.c.

int snd_timer_new ( struct snd_card card,
char id,
struct snd_timer_id tid,
struct snd_timer **  rtimer 
)

Definition at line 760 of file timer.c.

void snd_timer_notify ( struct snd_timer timer,
int  event,
struct timespec tstamp 
)

Definition at line 887 of file timer.c.

int snd_timer_open ( struct snd_timer_instance **  ti,
char owner,
struct snd_timer_id tid,
unsigned int  slave_id 
)

Definition at line 232 of file timer.c.

int snd_timer_pause ( struct snd_timer_instance timeri)

Definition at line 576 of file timer.c.

unsigned long snd_timer_resolution ( struct snd_timer_instance timeri)

Definition at line 369 of file timer.c.

int snd_timer_start ( struct snd_timer_instance timeri,
unsigned int  ticks 
)

Definition at line 453 of file timer.c.

int snd_timer_stop ( struct snd_timer_instance timeri)

Definition at line 528 of file timer.c.