Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
es1688.h File Reference
#include <sound/control.h>
#include <sound/pcm.h>
#include <linux/interrupt.h>

Go to the source code of this file.

Data Structures

struct  snd_es1688
 

Macros

#define ES1688_HW_AUTO   0x0000
 
#define ES1688_HW_688   0x0001
 
#define ES1688_HW_1688   0x0002
 
#define ES1688_HW_UNDEF   0x0003
 
#define ES1688P(codec, x)   ((codec)->port + e_s_s_ESS1688##x)
 
#define e_s_s_ESS1688RESET   0x6
 
#define e_s_s_ESS1688READ   0xa
 
#define e_s_s_ESS1688WRITE   0xc
 
#define e_s_s_ESS1688COMMAND   0xc
 
#define e_s_s_ESS1688STATUS   0xc
 
#define e_s_s_ESS1688DATA_AVAIL   0xe
 
#define e_s_s_ESS1688DATA_AVAIL_16   0xf
 
#define e_s_s_ESS1688MIXER_ADDR   0x4
 
#define e_s_s_ESS1688MIXER_DATA   0x5
 
#define e_s_s_ESS1688OPL3_LEFT   0x0
 
#define e_s_s_ESS1688OPL3_RIGHT   0x2
 
#define e_s_s_ESS1688OPL3_BOTH   0x8
 
#define e_s_s_ESS1688ENABLE0   0x0
 
#define e_s_s_ESS1688ENABLE1   0x9
 
#define e_s_s_ESS1688ENABLE2   0xb
 
#define e_s_s_ESS1688INIT1   0x7
 
#define ES1688_DSP_CMD_DMAOFF   0xd0
 
#define ES1688_DSP_CMD_SPKON   0xd1
 
#define ES1688_DSP_CMD_SPKOFF   0xd3
 
#define ES1688_DSP_CMD_DMAON   0xd4
 
#define ES1688_PCM_DEV   0x14
 
#define ES1688_MIC_DEV   0x1a
 
#define ES1688_REC_DEV   0x1c
 
#define ES1688_MASTER_DEV   0x32
 
#define ES1688_FM_DEV   0x36
 
#define ES1688_CD_DEV   0x38
 
#define ES1688_AUX_DEV   0x3a
 
#define ES1688_SPEAKER_DEV   0x3c
 
#define ES1688_LINE_DEV   0x3e
 
#define ES1688_RECLEV_DEV   0xb4
 
#define ES1688_MIXS_MASK   0x17
 
#define ES1688_MIXS_MIC   0x00
 
#define ES1688_MIXS_MIC_MASTER   0x01
 
#define ES1688_MIXS_CD   0x02
 
#define ES1688_MIXS_AOUT   0x03
 
#define ES1688_MIXS_MIC1   0x04
 
#define ES1688_MIXS_REC_MIX   0x05
 
#define ES1688_MIXS_LINE   0x06
 
#define ES1688_MIXS_MASTER   0x07
 
#define ES1688_MIXS_MUTE   0x10
 

Functions

void snd_es1688_mixer_write (struct snd_es1688 *chip, unsigned char reg, unsigned char data)
 
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)
 
int snd_es1688_reset (struct snd_es1688 *chip)
 

Macro Definition Documentation

#define e_s_s_ESS1688COMMAND   0xc

Definition at line 63 of file es1688.h.

#define e_s_s_ESS1688DATA_AVAIL   0xe

Definition at line 65 of file es1688.h.

#define e_s_s_ESS1688DATA_AVAIL_16   0xf

Definition at line 66 of file es1688.h.

#define e_s_s_ESS1688ENABLE0   0x0

Definition at line 72 of file es1688.h.

#define e_s_s_ESS1688ENABLE1   0x9

Definition at line 73 of file es1688.h.

#define e_s_s_ESS1688ENABLE2   0xb

Definition at line 74 of file es1688.h.

#define e_s_s_ESS1688INIT1   0x7

Definition at line 75 of file es1688.h.

#define e_s_s_ESS1688MIXER_ADDR   0x4

Definition at line 67 of file es1688.h.

#define e_s_s_ESS1688MIXER_DATA   0x5

Definition at line 68 of file es1688.h.

#define e_s_s_ESS1688OPL3_BOTH   0x8

Definition at line 71 of file es1688.h.

#define e_s_s_ESS1688OPL3_LEFT   0x0

Definition at line 69 of file es1688.h.

#define e_s_s_ESS1688OPL3_RIGHT   0x2

Definition at line 70 of file es1688.h.

#define e_s_s_ESS1688READ   0xa

Definition at line 61 of file es1688.h.

#define e_s_s_ESS1688RESET   0x6

Definition at line 60 of file es1688.h.

#define e_s_s_ESS1688STATUS   0xc

Definition at line 64 of file es1688.h.

#define e_s_s_ESS1688WRITE   0xc

Definition at line 62 of file es1688.h.

#define ES1688_AUX_DEV   0x3a

Definition at line 88 of file es1688.h.

#define ES1688_CD_DEV   0x38

Definition at line 87 of file es1688.h.

#define ES1688_DSP_CMD_DMAOFF   0xd0

Definition at line 77 of file es1688.h.

#define ES1688_DSP_CMD_DMAON   0xd4

Definition at line 80 of file es1688.h.

#define ES1688_DSP_CMD_SPKOFF   0xd3

Definition at line 79 of file es1688.h.

#define ES1688_DSP_CMD_SPKON   0xd1

Definition at line 78 of file es1688.h.

#define ES1688_FM_DEV   0x36

Definition at line 86 of file es1688.h.

#define ES1688_HW_1688   0x0002

Definition at line 31 of file es1688.h.

#define ES1688_HW_688   0x0001

Definition at line 30 of file es1688.h.

#define ES1688_HW_AUTO   0x0000

Definition at line 29 of file es1688.h.

#define ES1688_HW_UNDEF   0x0003

Definition at line 32 of file es1688.h.

#define ES1688_LINE_DEV   0x3e

Definition at line 90 of file es1688.h.

#define ES1688_MASTER_DEV   0x32

Definition at line 85 of file es1688.h.

#define ES1688_MIC_DEV   0x1a

Definition at line 83 of file es1688.h.

#define ES1688_MIXS_AOUT   0x03

Definition at line 97 of file es1688.h.

#define ES1688_MIXS_CD   0x02

Definition at line 96 of file es1688.h.

#define ES1688_MIXS_LINE   0x06

Definition at line 100 of file es1688.h.

#define ES1688_MIXS_MASK   0x17

Definition at line 93 of file es1688.h.

#define ES1688_MIXS_MASTER   0x07

Definition at line 101 of file es1688.h.

#define ES1688_MIXS_MIC   0x00

Definition at line 94 of file es1688.h.

#define ES1688_MIXS_MIC1   0x04

Definition at line 98 of file es1688.h.

#define ES1688_MIXS_MIC_MASTER   0x01

Definition at line 95 of file es1688.h.

#define ES1688_MIXS_MUTE   0x10

Definition at line 102 of file es1688.h.

#define ES1688_MIXS_REC_MIX   0x05

Definition at line 99 of file es1688.h.

#define ES1688_PCM_DEV   0x14

Definition at line 82 of file es1688.h.

#define ES1688_REC_DEV   0x1c

Definition at line 84 of file es1688.h.

#define ES1688_RECLEV_DEV   0xb4

Definition at line 91 of file es1688.h.

#define ES1688_SPEAKER_DEV   0x3c

Definition at line 89 of file es1688.h.

#define ES1688P (   codec,
  x 
)    ((codec)->port + e_s_s_ESS1688##x)

Definition at line 58 of file es1688.h.

Function Documentation

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.