diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /sound/pci/ice1712/ews.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'sound/pci/ice1712/ews.h')
-rw-r--r-- | sound/pci/ice1712/ews.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/sound/pci/ice1712/ews.h b/sound/pci/ice1712/ews.h new file mode 100644 index 000000000000..a12a0b053558 --- /dev/null +++ b/sound/pci/ice1712/ews.h | |||
@@ -0,0 +1,84 @@ | |||
1 | #ifndef __SOUND_EWS_H | ||
2 | #define __SOUND_EWS_H | ||
3 | |||
4 | /* | ||
5 | * ALSA driver for ICEnsemble ICE1712 (Envy24) | ||
6 | * | ||
7 | * Lowlevel functions for Terratec EWS88MT/D, EWX24/96, DMX 6Fire | ||
8 | * | ||
9 | * Copyright (c) 2000 Jaroslav Kysela <perex@suse.cz> | ||
10 | * 2002 Takashi Iwai <tiwai@suse.de> | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License as published by | ||
14 | * the Free Software Foundation; either version 2 of the License, or | ||
15 | * (at your option) any later version. | ||
16 | * | ||
17 | * This program is distributed in the hope that it will be useful, | ||
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
20 | * GNU General Public License for more details. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License | ||
23 | * along with this program; if not, write to the Free Software | ||
24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
25 | * | ||
26 | */ | ||
27 | |||
28 | #define EWS_DEVICE_DESC \ | ||
29 | "{TerraTec,EWX 24/96},"\ | ||
30 | "{TerraTec,EWS 88MT},"\ | ||
31 | "{TerraTec,EWS 88D},"\ | ||
32 | "{TerraTec,DMX 6Fire},"\ | ||
33 | "{TerraTec,Phase 88}," | ||
34 | |||
35 | #define ICE1712_SUBDEVICE_EWX2496 0x3b153011 | ||
36 | #define ICE1712_SUBDEVICE_EWS88MT 0x3b151511 | ||
37 | #define ICE1712_SUBDEVICE_EWS88MT_NEW 0x3b152511 | ||
38 | #define ICE1712_SUBDEVICE_EWS88D 0x3b152b11 | ||
39 | #define ICE1712_SUBDEVICE_DMX6FIRE 0x3b153811 | ||
40 | #define ICE1712_SUBDEVICE_PHASE88 0x3b155111 | ||
41 | |||
42 | /* entry point */ | ||
43 | extern struct snd_ice1712_card_info snd_ice1712_ews_cards[]; | ||
44 | |||
45 | |||
46 | /* TerraTec EWX 24/96 configuration definitions */ | ||
47 | |||
48 | #define ICE1712_EWX2496_AK4524_CS 0x01 /* AK4524 chip select; low = active */ | ||
49 | #define ICE1712_EWX2496_AIN_SEL 0x02 /* input sensitivity switch; high = louder */ | ||
50 | #define ICE1712_EWX2496_AOUT_SEL 0x04 /* output sensitivity switch; high = louder */ | ||
51 | #define ICE1712_EWX2496_RW 0x08 /* read/write switch for i2c; high = write */ | ||
52 | #define ICE1712_EWX2496_SERIAL_DATA 0x10 /* i2c & ak4524 data */ | ||
53 | #define ICE1712_EWX2496_SERIAL_CLOCK 0x20 /* i2c & ak4524 clock */ | ||
54 | #define ICE1712_EWX2496_TX2 0x40 /* MIDI2 (not used) */ | ||
55 | #define ICE1712_EWX2496_RX2 0x80 /* MIDI2 (not used) */ | ||
56 | |||
57 | /* TerraTec EWS 88MT/D configuration definitions */ | ||
58 | /* RW, SDA snd SCLK are identical with EWX24/96 */ | ||
59 | #define ICE1712_EWS88_CS8414_RATE 0x07 /* CS8414 sample rate: gpio 0-2 */ | ||
60 | #define ICE1712_EWS88_RW 0x08 /* read/write switch for i2c; high = write */ | ||
61 | #define ICE1712_EWS88_SERIAL_DATA 0x10 /* i2c & ak4524 data */ | ||
62 | #define ICE1712_EWS88_SERIAL_CLOCK 0x20 /* i2c & ak4524 clock */ | ||
63 | #define ICE1712_EWS88_TX2 0x40 /* MIDI2 (only on 88D) */ | ||
64 | #define ICE1712_EWS88_RX2 0x80 /* MIDI2 (only on 88D) */ | ||
65 | |||
66 | /* i2c address */ | ||
67 | #define ICE1712_EWS88MT_CS8404_ADDR (0x40>>1) | ||
68 | #define ICE1712_EWS88MT_INPUT_ADDR (0x46>>1) | ||
69 | #define ICE1712_EWS88MT_OUTPUT_ADDR (0x48>>1) | ||
70 | #define ICE1712_EWS88MT_OUTPUT_SENSE 0x40 /* mask */ | ||
71 | #define ICE1712_EWS88D_PCF_ADDR (0x40>>1) | ||
72 | |||
73 | /* TerraTec DMX 6Fire configuration definitions */ | ||
74 | #define ICE1712_6FIRE_AK4524_CS_MASK 0x07 /* AK4524 chip select #1-#3 */ | ||
75 | #define ICE1712_6FIRE_RW 0x08 /* read/write switch for i2c; high = write */ | ||
76 | #define ICE1712_6FIRE_SERIAL_DATA 0x10 /* i2c & ak4524 data */ | ||
77 | #define ICE1712_6FIRE_SERIAL_CLOCK 0x20 /* i2c & ak4524 clock */ | ||
78 | #define ICE1712_6FIRE_TX2 0x40 /* MIDI2 */ | ||
79 | #define ICE1712_6FIRE_RX2 0x80 /* MIDI2 */ | ||
80 | |||
81 | #define ICE1712_6FIRE_PCF9554_ADDR (0x40>>1) | ||
82 | #define ICE1712_6FIRE_CS8427_ADDR (0x22) | ||
83 | |||
84 | #endif /* __SOUND_EWS_H */ | ||