Go to the documentation of this file. 1 #ifndef __SOUND_CS5535AUDIO_H
2 #define __SOUND_CS5535AUDIO_H
4 #define cs_writel(cs5535au, reg, val) outl(val, (cs5535au)->port + reg)
5 #define cs_writeb(cs5535au, reg, val) outb(val, (cs5535au)->port + reg)
6 #define cs_readl(cs5535au, reg) inl((cs5535au)->port + reg)
7 #define cs_readw(cs5535au, reg) inw((cs5535au)->port + reg)
8 #define cs_readb(cs5535au, reg) inb((cs5535au)->port + reg)
10 #define CS5535AUDIO_MAX_DESCRIPTORS 128
13 #define ACC_GPIO_STATUS 0x00
14 #define ACC_CODEC_STATUS 0x08
15 #define ACC_CODEC_CNTL 0x0C
16 #define ACC_IRQ_STATUS 0x12
17 #define ACC_BM0_CMD 0x20
18 #define ACC_BM1_CMD 0x28
19 #define ACC_BM0_PRD 0x24
20 #define ACC_BM1_PRD 0x2C
21 #define ACC_BM0_STATUS 0x21
22 #define ACC_BM1_STATUS 0x29
23 #define ACC_BM0_PNTR 0x60
24 #define ACC_BM1_PNTR 0x64
34 #define BM_EOP_ERR (1<<1)
36 #define BM_CTL_EN 0x01
37 #define BM_CTL_PAUSE 0x03
38 #define BM_CTL_DIS 0x00
39 #define BM_CTL_BYTE_ORD_LE 0x00
40 #define BM_CTL_BYTE_ORD_BE 0x04
42 #define CMD_MASK 0xFF00FFFF
43 #define CMD_NEW 0x00010000
44 #define STS_NEW 0x00020000
45 #define PRM_RDY_STS 0x00800000
46 #define ACC_CODEC_CNTL_WR_CMD (~0x80000000)
47 #define ACC_CODEC_CNTL_RD_CMD 0x80000000
48 #define ACC_CODEC_CNTL_LNK_SHUTDOWN 0x00040000
49 #define ACC_CODEC_CNTL_LNK_WRM_RST 0x00020000
50 #define PRD_JMP 0x2000
51 #define PRD_EOP 0x4000
52 #define PRD_EOT 0x8000
107 static inline void olpc_capture_open(
struct snd_ac97 *ac97)
115 static inline void olpc_capture_close(
struct snd_ac97 *ac97)
132 static inline void olpc_capture_open(
struct snd_ac97 *ac97) { }
133 static inline void olpc_capture_close(
struct snd_ac97 *ac97) { }