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

Go to the source code of this file.

Data Structures

struct  snd_ak4xxx_ops
 
struct  snd_akm4xxx_dac_channel
 
struct  snd_akm4xxx_adc_channel
 
struct  snd_akm4xxx
 

Macros

#define AK4XXX_MAX_CHIPS   4
 
#define AK4XXX_IMAGE_SIZE   (AK4XXX_MAX_CHIPS * 16) /* 64 bytes */
 
#define snd_akm4xxx_get(ak, chip, reg)   (ak)->images[(chip) * 16 + (reg)]
 
#define snd_akm4xxx_set(ak, chip, reg, val)   ((ak)->images[(chip) * 16 + (reg)] = (val))
 
#define snd_akm4xxx_get_vol(ak, chip, reg)   (ak)->volumes[(chip) * 16 + (reg)]
 
#define snd_akm4xxx_set_vol(ak, chip, reg, val)   ((ak)->volumes[(chip) * 16 + (reg)] = (val))
 

Functions

void snd_akm4xxx_write (struct snd_akm4xxx *ak, int chip, unsigned char reg, unsigned char val)
 
void snd_akm4xxx_reset (struct snd_akm4xxx *ak, int state)
 
void snd_akm4xxx_init (struct snd_akm4xxx *ak)
 
int snd_akm4xxx_build_controls (struct snd_akm4xxx *ak)
 

Macro Definition Documentation

#define AK4XXX_IMAGE_SIZE   (AK4XXX_MAX_CHIPS * 16) /* 64 bytes */

Definition at line 40 of file ak4xxx-adda.h.

#define AK4XXX_MAX_CHIPS   4

Definition at line 27 of file ak4xxx-adda.h.

#define snd_akm4xxx_get (   ak,
  chip,
  reg 
)    (ak)->images[(chip) * 16 + (reg)]

Definition at line 90 of file ak4xxx-adda.h.

#define snd_akm4xxx_get_vol (   ak,
  chip,
  reg 
)    (ak)->volumes[(chip) * 16 + (reg)]

Definition at line 94 of file ak4xxx-adda.h.

#define snd_akm4xxx_set (   ak,
  chip,
  reg,
  val 
)    ((ak)->images[(chip) * 16 + (reg)] = (val))

Definition at line 92 of file ak4xxx-adda.h.

#define snd_akm4xxx_set_vol (   ak,
  chip,
  reg,
  val 
)    ((ak)->volumes[(chip) * 16 + (reg)] = (val))

Definition at line 96 of file ak4xxx-adda.h.

Function Documentation

int snd_akm4xxx_build_controls ( struct snd_akm4xxx ak)

Definition at line 907 of file ak4xxx-adda.c.

void snd_akm4xxx_init ( struct snd_akm4xxx ak)

Definition at line 172 of file ak4xxx-adda.c.

void snd_akm4xxx_reset ( struct snd_akm4xxx ak,
int  state 
)

Definition at line 107 of file ak4xxx-adda.c.

void snd_akm4xxx_write ( struct snd_akm4xxx ak,
int  chip,
unsigned char  reg,
unsigned char  val 
)

Definition at line 40 of file ak4xxx-adda.c.