Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
es1688_lib.c File Reference
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/es1688.h>
#include <sound/initval.h>
#include <asm/io.h>
#include <asm/dma.h>

Go to the source code of this file.

Macros

#define ES1688_SINGLE(xname, xindex, reg, shift, mask, invert)
 
#define ES1688_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert)
 
#define ES1688_INIT_TABLE_SIZE   (sizeof(snd_es1688_init_table)/2)
 

Functions

 MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>")
 
 MODULE_DESCRIPTION ("ESS ESx688 lowlevel module")
 
 MODULE_LICENSE ("GPL")
 
void snd_es1688_mixer_write (struct snd_es1688 *chip, unsigned char reg, unsigned char data)
 
int snd_es1688_reset (struct snd_es1688 *chip)
 
 EXPORT_SYMBOL (snd_es1688_reset)
 
int snd_es1688_create (struct snd_card *card, struct snd_es1688 *chip, unsigned long port, unsigned long mpu_port, int irq, int mpu_irq, int dma8, unsigned short hardware)
 
int snd_es1688_pcm (struct snd_card *card, struct snd_es1688 *chip, int device, struct snd_pcm **rpcm)
 
int snd_es1688_mixer (struct snd_card *card, struct snd_es1688 *chip)
 
 EXPORT_SYMBOL (snd_es1688_mixer_write)
 
 EXPORT_SYMBOL (snd_es1688_create)
 
 EXPORT_SYMBOL (snd_es1688_pcm)
 
 EXPORT_SYMBOL (snd_es1688_mixer)
 

Macro Definition Documentation

#define ES1688_DOUBLE (   xname,
  xindex,
  left_reg,
  right_reg,
  shift_left,
  shift_right,
  mask,
  invert 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \
.info = snd_es1688_info_double, \
.get = snd_es1688_get_double, .put = snd_es1688_put_double, \
.private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }

Definition at line 864 of file es1688_lib.c.

#define ES1688_INIT_TABLE_SIZE   (sizeof(snd_es1688_init_table)/2)

Definition at line 998 of file es1688_lib.c.

#define ES1688_SINGLE (   xname,
  xindex,
  reg,
  shift,
  mask,
  invert 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \
.info = snd_es1688_info_single, \
.get = snd_es1688_get_single, .put = snd_es1688_put_single, \
.private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }

Definition at line 805 of file es1688_lib.c.

Function Documentation

EXPORT_SYMBOL ( snd_es1688_reset  )
EXPORT_SYMBOL ( snd_es1688_mixer_write  )
EXPORT_SYMBOL ( snd_es1688_create  )
EXPORT_SYMBOL ( snd_es1688_pcm  )
EXPORT_SYMBOL ( snd_es1688_mixer  )
MODULE_AUTHOR ( "Jaroslav Kysela <[email protected]>"  )
MODULE_DESCRIPTION ( "ESS ESx688 lowlevel module )
MODULE_LICENSE ( "GPL"  )
int snd_es1688_create ( struct snd_card card,
struct snd_es1688 chip,
unsigned long  port,
unsigned long  mpu_port,
int  irq,
int  mpu_irq,
int  dma8,
unsigned short  hardware 
)

Definition at line 641 of file es1688_lib.c.

int snd_es1688_mixer ( struct snd_card card,
struct snd_es1688 chip 
)

Definition at line 1013 of file es1688_lib.c.

void snd_es1688_mixer_write ( struct snd_es1688 chip,
unsigned char  reg,
unsigned char  data 
)

Definition at line 83 of file es1688_lib.c.

int snd_es1688_pcm ( struct snd_card card,
struct snd_es1688 chip,
int  device,
struct snd_pcm **  rpcm 
)

Definition at line 732 of file es1688_lib.c.

int snd_es1688_reset ( struct snd_es1688 chip)

Definition at line 103 of file es1688_lib.c.