Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ad1843.h File Reference

Go to the source code of this file.

Data Structures

struct  snd_ad1843
 

Macros

#define AD1843_GAIN_RECLEV   0
 
#define AD1843_GAIN_LINE   1
 
#define AD1843_GAIN_LINE_2   2
 
#define AD1843_GAIN_MIC   3
 
#define AD1843_GAIN_PCM_0   4
 
#define AD1843_GAIN_PCM_1   5
 
#define AD1843_GAIN_SIZE   (AD1843_GAIN_PCM_1+1)
 

Functions

int ad1843_get_gain_max (struct snd_ad1843 *ad1843, int id)
 
int ad1843_get_gain (struct snd_ad1843 *ad1843, int id)
 
int ad1843_set_gain (struct snd_ad1843 *ad1843, int id, int newval)
 
int ad1843_get_recsrc (struct snd_ad1843 *ad1843)
 
int ad1843_set_recsrc (struct snd_ad1843 *ad1843, int newsrc)
 
void ad1843_setup_dac (struct snd_ad1843 *ad1843, unsigned int id, unsigned int framerate, snd_pcm_format_t fmt, unsigned int channels)
 
void ad1843_shutdown_dac (struct snd_ad1843 *ad1843, unsigned int id)
 
void ad1843_setup_adc (struct snd_ad1843 *ad1843, unsigned int framerate, snd_pcm_format_t fmt, unsigned int channels)
 
void ad1843_shutdown_adc (struct snd_ad1843 *ad1843)
 
int ad1843_init (struct snd_ad1843 *ad1843)
 

Macro Definition Documentation

#define AD1843_GAIN_LINE   1

Definition at line 20 of file ad1843.h.

#define AD1843_GAIN_LINE_2   2

Definition at line 21 of file ad1843.h.

#define AD1843_GAIN_MIC   3

Definition at line 22 of file ad1843.h.

#define AD1843_GAIN_PCM_0   4

Definition at line 23 of file ad1843.h.

#define AD1843_GAIN_PCM_1   5

Definition at line 24 of file ad1843.h.

#define AD1843_GAIN_RECLEV   0

Definition at line 19 of file ad1843.h.

#define AD1843_GAIN_SIZE   (AD1843_GAIN_PCM_1+1)

Definition at line 25 of file ad1843.h.

Function Documentation

int ad1843_get_gain ( struct snd_ad1843 ad1843,
int  id 
)

Definition at line 310 of file ad1843.c.

int ad1843_get_gain_max ( struct snd_ad1843 ad1843,
int  id 
)

Definition at line 294 of file ad1843.c.

int ad1843_get_recsrc ( struct snd_ad1843 ad1843)

Definition at line 359 of file ad1843.c.

int ad1843_init ( struct snd_ad1843 ad1843)

Definition at line 482 of file ad1843.c.

int ad1843_set_gain ( struct snd_ad1843 ad1843,
int  id,
int  newval 
)

Definition at line 337 of file ad1843.c.

int ad1843_set_recsrc ( struct snd_ad1843 ad1843,
int  newsrc 
)

Definition at line 377 of file ad1843.c.

void ad1843_setup_adc ( struct snd_ad1843 ad1843,
unsigned int  framerate,
snd_pcm_format_t  fmt,
unsigned int  channels 
)

Definition at line 448 of file ad1843.c.

void ad1843_setup_dac ( struct snd_ad1843 ad1843,
unsigned int  id,
unsigned int  framerate,
snd_pcm_format_t  fmt,
unsigned int  channels 
)

Definition at line 388 of file ad1843.c.

void ad1843_shutdown_adc ( struct snd_ad1843 ad1843)

Definition at line 469 of file ad1843.c.

void ad1843_shutdown_dac ( struct snd_ad1843 ad1843,
unsigned int  id 
)

Definition at line 440 of file ad1843.c.