Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cttimer.c File Reference
#include <linux/slab.h>
#include <linux/math64.h>
#include <linux/moduleparam.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include "ctatc.h"
#include "cthardware.h"
#include "cttimer.h"

Go to the source code of this file.

Data Structures

struct  ct_timer_ops
 
struct  ct_timer_instance
 
struct  ct_timer
 

Macros

#define ct_systimer_free   ct_systimer_prepare
 
#define CT_TIMER_FREQ   48000
 
#define MIN_TICKS   1
 
#define MAX_TICKS   ((1 << 13) - 1)
 

Functions

 MODULE_PARM_DESC (use_system_timer,"Force to use system-timer")
 
 module_param (use_system_timer, bool, S_IRUGO)
 
struct ct_timer_instancect_timer_instance_new (struct ct_timer *atimer, struct ct_atc_pcm *apcm)
 
void ct_timer_prepare (struct ct_timer_instance *ti)
 
void ct_timer_start (struct ct_timer_instance *ti)
 
void ct_timer_stop (struct ct_timer_instance *ti)
 
void ct_timer_instance_free (struct ct_timer_instance *ti)
 
struct ct_timerct_timer_new (struct ct_atc *atc)
 
void ct_timer_free (struct ct_timer *atimer)
 

Macro Definition Documentation

#define ct_systimer_free   ct_systimer_prepare

Definition at line 129 of file cttimer.c.

#define CT_TIMER_FREQ   48000

Definition at line 144 of file cttimer.c.

#define MAX_TICKS   ((1 << 13) - 1)

Definition at line 146 of file cttimer.c.

#define MIN_TICKS   1

Definition at line 145 of file cttimer.c.

Function Documentation

void ct_timer_free ( struct ct_timer atimer)

Definition at line 435 of file cttimer.c.

void ct_timer_instance_free ( struct ct_timer_instance ti)

Definition at line 381 of file cttimer.c.

struct ct_timer_instance* ct_timer_instance_new ( struct ct_timer atimer,
struct ct_atc_pcm apcm 
)
read

Definition at line 338 of file cttimer.c.

struct ct_timer* ct_timer_new ( struct ct_atc atc)
read

Definition at line 409 of file cttimer.c.

void ct_timer_prepare ( struct ct_timer_instance ti)

Definition at line 361 of file cttimer.c.

void ct_timer_start ( struct ct_timer_instance ti)

Definition at line 369 of file cttimer.c.

void ct_timer_stop ( struct ct_timer_instance ti)

Definition at line 375 of file cttimer.c.

module_param ( use_system_timer  ,
bool  ,
S_IRUGO   
)
MODULE_PARM_DESC ( use_system_timer  ,
"Force to use system-timer  
)