GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / sound / pci / ice1712 / vt1720_mobo.c
blob253c6a0776d14acedd685d67015337e942be952c
1 /*
2 * ALSA driver for VT1720/VT1724 (Envy24PT/Envy24HT)
4 * Lowlevel functions for VT1720-based motherboards
6 * Copyright (c) 2004 Takashi Iwai <tiwai@suse.de>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
24 #include <asm/io.h>
25 #include <linux/delay.h>
26 #include <linux/interrupt.h>
27 #include <linux/init.h>
28 #include <sound/core.h>
30 #include "ice1712.h"
31 #include "envy24ht.h"
32 #include "vt1720_mobo.h"
35 static int __devinit k8x800_init(struct snd_ice1712 *ice)
37 ice->vt1720 = 1;
39 /* VT1616 codec */
40 ice->num_total_dacs = 6;
41 ice->num_total_adcs = 2;
43 /* WM8728 codec */
45 return 0;
48 static int __devinit k8x800_add_controls(struct snd_ice1712 *ice)
50 return 0;
53 /* EEPROM image */
55 static unsigned char k8x800_eeprom[] __devinitdata = {
56 [ICE_EEP2_SYSCONF] = 0x01, /* clock 256, 1ADC, 2DACs */
57 [ICE_EEP2_ACLINK] = 0x02, /* ACLINK, packed */
58 [ICE_EEP2_I2S] = 0x00, /* - */
59 [ICE_EEP2_SPDIF] = 0x00, /* - */
60 [ICE_EEP2_GPIO_DIR] = 0xff,
61 [ICE_EEP2_GPIO_DIR1] = 0xff,
62 [ICE_EEP2_GPIO_DIR2] = 0x00, /* - */
63 [ICE_EEP2_GPIO_MASK] = 0xff,
64 [ICE_EEP2_GPIO_MASK1] = 0xff,
65 [ICE_EEP2_GPIO_MASK2] = 0x00, /* - */
66 [ICE_EEP2_GPIO_STATE] = 0x00,
67 [ICE_EEP2_GPIO_STATE1] = 0x00,
68 [ICE_EEP2_GPIO_STATE2] = 0x00, /* - */
71 static unsigned char sn25p_eeprom[] __devinitdata = {
72 [ICE_EEP2_SYSCONF] = 0x01, /* clock 256, 1ADC, 2DACs */
73 [ICE_EEP2_ACLINK] = 0x02, /* ACLINK, packed */
74 [ICE_EEP2_I2S] = 0x00, /* - */
75 [ICE_EEP2_SPDIF] = 0x41, /* - */
76 [ICE_EEP2_GPIO_DIR] = 0xff,
77 [ICE_EEP2_GPIO_DIR1] = 0xff,
78 [ICE_EEP2_GPIO_DIR2] = 0x00, /* - */
79 [ICE_EEP2_GPIO_MASK] = 0xff,
80 [ICE_EEP2_GPIO_MASK1] = 0xff,
81 [ICE_EEP2_GPIO_MASK2] = 0x00, /* - */
82 [ICE_EEP2_GPIO_STATE] = 0x00,
83 [ICE_EEP2_GPIO_STATE1] = 0x00,
84 [ICE_EEP2_GPIO_STATE2] = 0x00, /* - */
88 /* entry point */
89 struct snd_ice1712_card_info snd_vt1720_mobo_cards[] __devinitdata = {
91 .subvendor = VT1720_SUBDEVICE_K8X800,
92 .name = "Albatron K8X800 Pro II",
93 .model = "k8x800",
94 .chip_init = k8x800_init,
95 .build_controls = k8x800_add_controls,
96 .eeprom_size = sizeof(k8x800_eeprom),
97 .eeprom_data = k8x800_eeprom,
100 .subvendor = VT1720_SUBDEVICE_ZNF3_150,
101 .name = "Chaintech ZNF3-150",
102 /* identical with k8x800 */
103 .chip_init = k8x800_init,
104 .build_controls = k8x800_add_controls,
105 .eeprom_size = sizeof(k8x800_eeprom),
106 .eeprom_data = k8x800_eeprom,
109 .subvendor = VT1720_SUBDEVICE_ZNF3_250,
110 .name = "Chaintech ZNF3-250",
111 /* identical with k8x800 */
112 .chip_init = k8x800_init,
113 .build_controls = k8x800_add_controls,
114 .eeprom_size = sizeof(k8x800_eeprom),
115 .eeprom_data = k8x800_eeprom,
118 .subvendor = VT1720_SUBDEVICE_9CJS,
119 .name = "Chaintech 9CJS",
120 /* identical with k8x800 */
121 .chip_init = k8x800_init,
122 .build_controls = k8x800_add_controls,
123 .eeprom_size = sizeof(k8x800_eeprom),
124 .eeprom_data = k8x800_eeprom,
127 .subvendor = VT1720_SUBDEVICE_SN25P,
128 .name = "Shuttle SN25P",
129 .model = "sn25p",
130 .chip_init = k8x800_init,
131 .build_controls = k8x800_add_controls,
132 .eeprom_size = sizeof(k8x800_eeprom),
133 .eeprom_data = sn25p_eeprom,
135 { } /* terminator */