Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
timer.c File Reference
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/mutex.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/string.h>
#include <sound/core.h>
#include <sound/timer.h>
#include <sound/control.h>
#include <sound/info.h>
#include <sound/minors.h>
#include <sound/initval.h>
#include <linux/kmod.h>

Go to the source code of this file.

Data Structures

struct  snd_timer_user
 
struct  snd_timer_system_private
 

Macros

#define DEFAULT_TIMER_LIMIT   1
 
#define snd_timer_proc_init()
 
#define snd_timer_proc_done()
 
#define snd_timer_user_ioctl_compat   NULL
 

Enumerations

enum  { SNDRV_TIMER_IOCTL_START_OLD = _IO('T', 0x20), SNDRV_TIMER_IOCTL_STOP_OLD = _IO('T', 0x21), SNDRV_TIMER_IOCTL_CONTINUE_OLD = _IO('T', 0x22), SNDRV_TIMER_IOCTL_PAUSE_OLD = _IO('T', 0x23) }
 

Functions

 MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>, Takashi Iwai <[email protected]>")
 
 MODULE_DESCRIPTION ("ALSA timer interface")
 
 MODULE_LICENSE ("GPL")
 
 module_param (timer_limit, int, 0444)
 
 MODULE_PARM_DESC (timer_limit,"Maximum global timers in system.")
 
 module_param (timer_tstamp_monotonic, int, 0444)
 
 MODULE_PARM_DESC (timer_tstamp_monotonic,"Use posix monotonic clock source for timestamps (default).")
 
 MODULE_ALIAS_CHARDEV (CONFIG_SND_MAJOR, SNDRV_MINOR_TIMER)
 
 MODULE_ALIAS ("devname:snd/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)
 
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)
 

Macro Definition Documentation

#define DEFAULT_TIMER_LIMIT   1

Definition at line 43 of file timer.c.

#define snd_timer_proc_done ( )

Definition at line 1112 of file timer.c.

#define snd_timer_proc_init ( )

Definition at line 1111 of file timer.c.

#define snd_timer_user_ioctl_compat   NULL

Definition at line 1928 of file timer.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
SNDRV_TIMER_IOCTL_START_OLD 
SNDRV_TIMER_IOCTL_STOP_OLD 
SNDRV_TIMER_IOCTL_CONTINUE_OLD 
SNDRV_TIMER_IOCTL_PAUSE_OLD 

Definition at line 1768 of file timer.c.

Function Documentation

MODULE_ALIAS ( "devname:snd/timer )
MODULE_ALIAS_CHARDEV ( CONFIG_SND_MAJOR  ,
SNDRV_MINOR_TIMER   
)
MODULE_AUTHOR ( "Jaroslav Kysela <[email protected] ,
Takashi Iwai< tiwai @suse.de >"   
)
MODULE_DESCRIPTION ( "ALSA timer interface )
MODULE_LICENSE ( "GPL"  )
module_param ( timer_limit  ,
int  ,
0444   
)
module_param ( timer_tstamp_monotonic  ,
int  ,
0444   
)
MODULE_PARM_DESC ( timer_limit  ,
"Maximum global timers in system."   
)
MODULE_PARM_DESC ( timer_tstamp_monotonic  ,
"Use posix monotonic clock source for timestamps (default)."   
)
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.