Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
seq_timer.c File Reference
#include <sound/core.h>
#include <linux/slab.h>
#include "seq_timer.h"
#include "seq_queue.h"
#include "seq_info.h"

Go to the source code of this file.

Macros

#define MIN_FREQUENCY   10
 
#define MAX_FREQUENCY   6250
 
#define DEFAULT_FREQUENCY   1000
 
#define SKEW_BASE   0x10000 /* 16bit shift */
 

Functions

struct snd_seq_timersnd_seq_timer_new (void)
 
void snd_seq_timer_delete (struct snd_seq_timer **tmr)
 
void snd_seq_timer_defaults (struct snd_seq_timer *tmr)
 
void snd_seq_timer_reset (struct snd_seq_timer *tmr)
 
int snd_seq_timer_set_tempo (struct snd_seq_timer *tmr, int tempo)
 
int snd_seq_timer_set_ppq (struct snd_seq_timer *tmr, int ppq)
 
int snd_seq_timer_set_position_tick (struct snd_seq_timer *tmr, snd_seq_tick_time_t position)
 
int snd_seq_timer_set_position_time (struct snd_seq_timer *tmr, snd_seq_real_time_t position)
 
int snd_seq_timer_set_skew (struct snd_seq_timer *tmr, unsigned int skew, unsigned int base)
 
int snd_seq_timer_open (struct snd_seq_queue *q)
 
int snd_seq_timer_close (struct snd_seq_queue *q)
 
int snd_seq_timer_stop (struct snd_seq_timer *tmr)
 
int snd_seq_timer_start (struct snd_seq_timer *tmr)
 
int snd_seq_timer_continue (struct snd_seq_timer *tmr)
 
snd_seq_real_time_t snd_seq_timer_get_cur_time (struct snd_seq_timer *tmr)
 
snd_seq_tick_time_t snd_seq_timer_get_cur_tick (struct snd_seq_timer *tmr)
 

Macro Definition Documentation

#define DEFAULT_FREQUENCY   1000

Definition at line 32 of file seq_timer.c.

#define MAX_FREQUENCY   6250

Definition at line 31 of file seq_timer.c.

#define MIN_FREQUENCY   10

Definition at line 30 of file seq_timer.c.

#define SKEW_BASE   0x10000 /* 16bit shift */

Definition at line 34 of file seq_timer.c.

Function Documentation

int snd_seq_timer_close ( struct snd_seq_queue q)

Definition at line 305 of file seq_timer.c.

int snd_seq_timer_continue ( struct snd_seq_timer tmr)

Definition at line 378 of file seq_timer.c.

void snd_seq_timer_defaults ( struct snd_seq_timer tmr)

Definition at line 93 of file seq_timer.c.

void snd_seq_timer_delete ( struct snd_seq_timer **  tmr)

Definition at line 75 of file seq_timer.c.

snd_seq_tick_time_t snd_seq_timer_get_cur_tick ( struct snd_seq_timer tmr)

Definition at line 421 of file seq_timer.c.

snd_seq_real_time_t snd_seq_timer_get_cur_time ( struct snd_seq_timer tmr)

Definition at line 396 of file seq_timer.c.

struct snd_seq_timer* snd_seq_timer_new ( void  )
read

Definition at line 54 of file seq_timer.c.

int snd_seq_timer_open ( struct snd_seq_queue q)

Definition at line 264 of file seq_timer.c.

void snd_seq_timer_reset ( struct snd_seq_timer tmr)

Definition at line 112 of file seq_timer.c.

int snd_seq_timer_set_position_tick ( struct snd_seq_timer tmr,
snd_seq_tick_time_t  position 
)

Definition at line 213 of file seq_timer.c.

int snd_seq_timer_set_position_time ( struct snd_seq_timer tmr,
snd_seq_real_time_t  position 
)

Definition at line 229 of file seq_timer.c.

int snd_seq_timer_set_ppq ( struct snd_seq_timer tmr,
int  ppq 
)

Definition at line 189 of file seq_timer.c.

int snd_seq_timer_set_skew ( struct snd_seq_timer tmr,
unsigned int  skew,
unsigned int  base 
)

Definition at line 245 of file seq_timer.c.

int snd_seq_timer_set_tempo ( struct snd_seq_timer tmr,
int  tempo 
)

Definition at line 171 of file seq_timer.c.

int snd_seq_timer_start ( struct snd_seq_timer tmr)

Definition at line 363 of file seq_timer.c.

int snd_seq_timer_stop ( struct snd_seq_timer tmr)

Definition at line 320 of file seq_timer.c.