Go to the documentation of this file.
14 #define CARD_NAME "Aureal Vortex"
15 #define CARD_NAME_SHORT "au8820"
23 #define NR_MIXOUT 0x10
27 #define VORTEX_ADBDMA_STAT 0x105c0
28 #define POS_MASK 0x00000fff
30 #define ADB_SUBBUF_MASK 0x00003000
31 #define ADB_SUBBUF_SHIFT 0xc
32 #define VORTEX_ADBDMA_CTRL 0x10580
33 #define OFFSET_MASK 0x00000fff
34 #define OFFSET_SHIFT 0x0
35 #define IE_MASK 0x00001000
37 #define DIR_MASK 0x00002000
39 #define FMT_MASK 0x0003c000
42 #define VORTEX_ADBDMA_BUFCFG0 0x10400
43 #define VORTEX_ADBDMA_BUFCFG1 0x10404
44 #define VORTEX_ADBDMA_BUFBASE 0x10200
45 #define VORTEX_ADBDMA_START 0x106c0
46 #define VORTEX_ADBDMA_STATUS 0x10600
49 #define VORTEX_ADB_SR 0x10a00
50 #define VORTEX_ADB_RTBASE 0x10800
51 #define VORTEX_ADB_RTBASE_COUNT 103
52 #define VORTEX_ADB_CHNBASE 0x1099c
53 #define VORTEX_ADB_CHNBASE_COUNT 22
54 #define ROUTE_MASK 0x3fff
59 #define OFFSET_ADBDMA 0x00
60 #define OFFSET_SRCOUT 0x10
61 #define OFFSET_SRCIN 0x10
62 #define OFFSET_MIXOUT 0x20
63 #define OFFSET_MIXIN 0x30
64 #define OFFSET_CODECIN 0x48
65 #define OFFSET_CODECOUT 0x58
66 #define OFFSET_SPORTOUT 0x60
67 #define OFFSET_SPORTIN 0x50
68 #define OFFSET_EFXOUT 0x50
69 #define OFFSET_EFXIN 0x40
70 #define OFFSET_A3DOUT 0x00
71 #define OFFSET_A3DIN 0x00
72 #define OFFSET_WTOUT 0x58
75 #define ADB_DMA(x) (x + OFFSET_ADBDMA)
76 #define ADB_SRCOUT(x) (x + OFFSET_SRCOUT)
77 #define ADB_SRCIN(x) (x + OFFSET_SRCIN)
78 #define ADB_MIXOUT(x) (x + OFFSET_MIXOUT)
79 #define ADB_MIXIN(x) (x + OFFSET_MIXIN)
80 #define ADB_CODECIN(x) (x + OFFSET_CODECIN)
81 #define ADB_CODECOUT(x) (x + OFFSET_CODECOUT)
82 #define ADB_SPORTOUT(x) (x + OFFSET_SPORTOUT)
83 #define ADB_SPORTIN(x) (x + OFFSET_SPORTIN)
84 #define ADB_A3DOUT(x) (x + OFFSET_A3DOUT)
85 #define ADB_A3DIN(x) (x + OFFSET_A3DIN)
86 #define ADB_WTOUT(x,y) (y + OFFSET_WTOUT)
89 #define VORTEX_WTDMA_CTRL 0x10500
90 #define VORTEX_WTDMA_STAT 0x10500
91 #define WT_SUBBUF_MASK (0x3 << WT_SUBBUF_SHIFT)
92 #define WT_SUBBUF_SHIFT 0x15
93 #define VORTEX_WTDMA_BUFBASE 0x10000
94 #define VORTEX_WTDMA_BUFCFG0 0x10300
95 #define VORTEX_WTDMA_BUFCFG1 0x10304
96 #define VORTEX_WTDMA_START 0x10640
98 #define VORTEX_WT_BASE 0x9000
101 #define VORTEX_MIXER_SR 0x9f00
102 #define VORTEX_MIXER_CLIP 0x9f80
103 #define VORTEX_MIXER_CHNBASE 0x9e40
104 #define VORTEX_MIXER_RTBASE 0x9e00
105 #define MIXER_RTBASE_SIZE 0x26
106 #define VORTEX_MIX_ENIN 0x9a00
107 #define VORTEX_MIX_SMP 0x9c00
110 #define VORTEX_MIX_INVOL_A 0x9000
111 #define VORTEX_MIX_INVOL_B 0x8000
112 #define VORTEX_MIX_VOL_A 0x9800
113 #define VORTEX_MIX_VOL_B 0x8800
122 #define MIX_DEFIGAIN 0x08
123 #define MIX_DEFOGAIN 0x08
126 #define VORTEX_SRCBLOCK_SR 0xccc0
127 #define VORTEX_SRC_CHNBASE 0xcc40
128 #define VORTEX_SRC_RTBASE 0xcc00
129 #define VORTEX_SRC_SOURCE 0xccc4
130 #define VORTEX_SRC_SOURCESIZE 0xccc8
131 #define VORTEX_SRC_U0 0xce00
132 #define VORTEX_SRC_DRIFT0 0xce80
133 #define VORTEX_SRC_DRIFT1 0xcec0
134 #define VORTEX_SRC_U1 0xcf00
135 #define VORTEX_SRC_DRIFT2 0xcf40
136 #define VORTEX_SRC_U2 0xcf80
137 #define VORTEX_SRC_DATA 0xc800
138 #define VORTEX_SRC_DATA0 0xc000
139 #define VORTEX_SRC_CONVRATIO 0xce40
144 #define VORTEX_FIFO_ADBCTRL 0xf800
145 #define VORTEX_FIFO_WTCTRL 0xf840
146 #define FIFO_RDONLY 0x00000001
147 #define FIFO_CTRL 0x00000002
148 #define FIFO_VALID 0x00000010
149 #define FIFO_EMPTY 0x00000020
150 #define FIFO_U0 0x00001000
151 #define FIFO_U1 0x00010000
152 #define FIFO_SIZE_BITS 5
153 #define FIFO_SIZE (1<<FIFO_SIZE_BITS) // 0x20
154 #define FIFO_MASK (FIFO_SIZE-1) //0x1f
155 #define VORTEX_FIFO_ADBDATA 0xe000
156 #define VORTEX_FIFO_WTDATA 0xe800
159 #define VORTEX_CODEC_CTRL 0x11984
160 #define VORTEX_CODEC_EN 0x11990
161 #define EN_CODEC 0x00000300
162 #define EN_SPORT 0x00030000
163 #define EN_SPDIF 0x000c0000
164 #define VORTEX_CODEC_CHN 0x11880
165 #define VORTEX_CODEC_IO 0x11988
167 #define VORTEX_SPDIF_FLAGS 0x1005c
168 #define VORTEX_SPDIF_CFG0 0x119D0
169 #define VORTEX_SPDIF_CFG1 0x119D4
170 #define VORTEX_SPDIF_SMPRATE 0x11994
173 #define VORTEX_SMP_TIME 0x11998
176 #define VORTEX_IRQ_SOURCE 0x12800
177 #define VORTEX_IRQ_CTRL 0x12804
179 #define VORTEX_STAT 0x12808
181 #define VORTEX_CTRL 0x1280c
182 #define CTRL_MIDI_EN 0x00000001
183 #define CTRL_MIDI_PORT 0x00000060
184 #define CTRL_GAME_EN 0x00000008
185 #define CTRL_GAME_PORT 0x00000e00
186 #define CTRL_IRQ_ENABLE 0x4000
189 #define VORTEX_IRQ_STAT 0x1199c
192 #define VORTEX_DMA_BUFFER 0x10200
193 #define VORTEX_ENGINE_CTRL 0x1060c
194 #define ENGINE_INIT 0x0L
197 #define VORTEX_MIDI_DATA 0x11000
198 #define VORTEX_MIDI_CMD 0x11004
199 #define VORTEX_GAME_LEGACY 0x11008
200 #define VORTEX_CTRL2 0x1100c
201 #define CTRL2_GAME_ADCMODE 0x40
202 #define VORTEX_GAME_AXIS 0x11010
204 #define AXIS_RANGE 0x1fff