aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ice1712/aureon.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-01-29 09:25:40 -0500
committerJaroslav Kysela <perex@suse.cz>2007-02-09 03:03:15 -0500
commit189bc171434e84797f586130fca8eb4df3746e3f (patch)
treea7acde978684639db7ddbb8ccda20e6f0f96d2e0 /sound/pci/ice1712/aureon.c
parentbcb4d788f573805c74ac4f39a622b30955b2f916 (diff)
[ALSA] ice1712 - Reorganize existing eeprom data
Reorganize EEPROM data (in C99 style). Signed-of-by: Philipp Matthias Hahn <pmhahn@pmhahn.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/ice1712/aureon.c')
-rw-r--r--sound/pci/ice1712/aureon.c112
1 files changed, 41 insertions, 71 deletions
diff --git a/sound/pci/ice1712/aureon.c b/sound/pci/ice1712/aureon.c
index a085618d33f9..041d2f07572b 100644
--- a/sound/pci/ice1712/aureon.c
+++ b/sound/pci/ice1712/aureon.c
@@ -2110,84 +2110,54 @@ static int __devinit aureon_init(struct snd_ice1712 *ice)
2110 */ 2110 */
2111 2111
2112static unsigned char aureon51_eeprom[] __devinitdata = { 2112static unsigned char aureon51_eeprom[] __devinitdata = {
2113 0x0a, /* SYSCONF: clock 512, spdif-in/ADC, 3DACs */ 2113 [ICE_EEP2_SYSCONF] = 0x0a, /* clock 512, spdif-in/ADC, 3DACs */
2114 0x80, /* ACLINK: I2S */ 2114 [ICE_EEP2_ACLINK] = 0x80, /* I2S */
2115 0xfc, /* I2S: vol, 96k, 24bit, 192k */ 2115 [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */
2116 0xc3, /* SPDIF: out-en, out-int, spdif-in */ 2116 [ICE_EEP2_SPDIF] = 0xc3, /* out-en, out-int, spdif-in */
2117 0xff, /* GPIO_DIR */ 2117 [ICE_EEP2_GPIO_DIR] = 0xff,
2118 0xff, /* GPIO_DIR1 */ 2118 [ICE_EEP2_GPIO_DIR1] = 0xff,
2119 0x5f, /* GPIO_DIR2 */ 2119 [ICE_EEP2_GPIO_DIR2] = 0x5f,
2120 0x00, /* GPIO_MASK */ 2120 [ICE_EEP2_GPIO_MASK] = 0x00,
2121 0x00, /* GPIO_MASK1 */ 2121 [ICE_EEP2_GPIO_MASK1] = 0x00,
2122 0x00, /* GPIO_MASK2 */ 2122 [ICE_EEP2_GPIO_MASK2] = 0x00,
2123 0x00, /* GPIO_STATE */ 2123 [ICE_EEP2_GPIO_STATE] = 0x00,
2124 0x00, /* GPIO_STATE1 */ 2124 [ICE_EEP2_GPIO_STATE1] = 0x00,
2125 0x00, /* GPIO_STATE2 */ 2125 [ICE_EEP2_GPIO_STATE2] = 0x00,
2126}; 2126};
2127 2127
2128static unsigned char aureon71_eeprom[] __devinitdata = { 2128static unsigned char aureon71_eeprom[] __devinitdata = {
2129 0x0b, /* SYSCONF: clock 512, spdif-in/ADC, 4DACs */ 2129 [ICE_EEP2_SYSCONF] = 0x0b, /* clock 512, spdif-in/ADC, 4DACs */
2130 0x80, /* ACLINK: I2S */ 2130 [ICE_EEP2_ACLINK] = 0x80, /* I2S */
2131 0xfc, /* I2S: vol, 96k, 24bit, 192k */ 2131 [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */
2132 0xc3, /* SPDIF: out-en, out-int, spdif-in */ 2132 [ICE_EEP2_SPDIF] = 0xc3, /* out-en, out-int, spdif-in */
2133 0xff, /* GPIO_DIR */ 2133 [ICE_EEP2_GPIO_DIR] = 0xff,
2134 0xff, /* GPIO_DIR1 */ 2134 [ICE_EEP2_GPIO_DIR1] = 0xff,
2135 0x5f, /* GPIO_DIR2 */ 2135 [ICE_EEP2_GPIO_DIR2] = 0x5f,
2136 0x00, /* GPIO_MASK */ 2136 [ICE_EEP2_GPIO_MASK] = 0x00,
2137 0x00, /* GPIO_MASK1 */ 2137 [ICE_EEP2_GPIO_MASK1] = 0x00,
2138 0x00, /* GPIO_MASK2 */ 2138 [ICE_EEP2_GPIO_MASK2] = 0x00,
2139 0x00, /* GPIO_STATE */ 2139 [ICE_EEP2_GPIO_STATE] = 0x00,
2140 0x00, /* GPIO_STATE1 */ 2140 [ICE_EEP2_GPIO_STATE1] = 0x00,
2141 0x00, /* GPIO_STATE2 */ 2141 [ICE_EEP2_GPIO_STATE2] = 0x00,
2142};
2143
2144static unsigned char prodigy71_eeprom[] __devinitdata = {
2145 0x0b, /* SYSCONF: clock 512, spdif-in/ADC, 4DACs */
2146 0x80, /* ACLINK: I2S */
2147 0xfc, /* I2S: vol, 96k, 24bit, 192k */
2148 0xc3, /* SPDIF: out-en, out-int, spdif-in */
2149 0xff, /* GPIO_DIR */
2150 0xff, /* GPIO_DIR1 */
2151 0x5f, /* GPIO_DIR2 */
2152 0x00, /* GPIO_MASK */
2153 0x00, /* GPIO_MASK1 */
2154 0x00, /* GPIO_MASK2 */
2155 0x00, /* GPIO_STATE */
2156 0x00, /* GPIO_STATE1 */
2157 0x00, /* GPIO_STATE2 */
2158}; 2142};
2143#define prodigy71_eeprom aureon71_eeprom
2159 2144
2160static unsigned char prodigy71lt_eeprom[] __devinitdata = { 2145static unsigned char prodigy71lt_eeprom[] __devinitdata = {
2161 0x4b, /* SYSCINF: clock 512, spdif-in/ADC, 4DACs */ 2146 [ICE_EEP2_SYSCONF] = 0x4b, /* clock 384, spdif-in/ADC, 4DACs */
2162 0x80, /* ACLINK: I2S */ 2147 [ICE_EEP2_ACLINK] = 0x80, /* I2S */
2163 0xfc, /* I2S: vol, 96k, 24bit, 192k */ 2148 [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */
2164 0xc3, /* SPDIF: out-en, out-int, spdif-in */ 2149 [ICE_EEP2_SPDIF] = 0xc3, /* out-en, out-int, spdif-in */
2165 0xff, /* GPIO_DIR */ 2150 [ICE_EEP2_GPIO_DIR] = 0xff,
2166 0xff, /* GPIO_DIR1 */ 2151 [ICE_EEP2_GPIO_DIR1] = 0xff,
2167 0x5f, /* GPIO_DIR2 */ 2152 [ICE_EEP2_GPIO_DIR2] = 0x5f,
2168 0x00, /* GPIO_MASK */ 2153 [ICE_EEP2_GPIO_MASK] = 0x00,
2169 0x00, /* GPIO_MASK1 */ 2154 [ICE_EEP2_GPIO_MASK1] = 0x00,
2170 0x00, /* GPIO_MASK2 */ 2155 [ICE_EEP2_GPIO_MASK2] = 0x00,
2171 0x00, /* GPIO_STATE */ 2156 [ICE_EEP2_GPIO_STATE] = 0x00,
2172 0x00, /* GPIO_STATE1 */ 2157 [ICE_EEP2_GPIO_STATE1] = 0x00,
2173 0x00, /* GPIO_STATE2 */ 2158 [ICE_EEP2_GPIO_STATE2] = 0x00,
2174};
2175
2176static unsigned char prodigy71xt_eeprom[] __devinitdata = {
2177 0x4b, /* SYSCINF: clock 512, spdif-in/ADC, 4DACs */
2178 0x80, /* ACLINK: I2S */
2179 0xfc, /* I2S: vol, 96k, 24bit, 192k */
2180 0xc3, /* SPDIF: out-en, out-int, spdif-in */
2181 0xff, /* GPIO_DIR */
2182 0xff, /* GPIO_DIR1 */
2183 0x5f, /* GPIO_DIR2 */
2184 0x00, /* GPIO_MASK */
2185 0x00, /* GPIO_MASK1 */
2186 0x00, /* GPIO_MASK2 */
2187 0x00, /* GPIO_STATE */
2188 0x00, /* GPIO_STATE1 */
2189 0x00, /* GPIO_STATE2 */
2190}; 2159};
2160#define prodigy71xt_eeprom prodigy71lt_eeprom
2191 2161
2192/* entry point */ 2162/* entry point */
2193struct snd_ice1712_card_info snd_vt1724_aureon_cards[] __devinitdata = { 2163struct snd_ice1712_card_info snd_vt1724_aureon_cards[] __devinitdata = {