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
24 #include <sound/driver.h>
26 #include <linux/delay.h>
27 #include <linux/interrupt.h>
28 #include <linux/init.h>
29 #include <linux/slab.h>
30 #include <sound/core.h>
33 #include "vt1720_mobo.h"
36 static int __devinit
k8x800_init(ice1712_t
*ice
)
41 ice
->num_total_dacs
= 6;
42 ice
->num_total_adcs
= 2;
50 static int __devinit
k8x800_add_controls(ice1712_t
*ice
)
52 /* FIXME: needs some quirks for VT1616? */
58 static unsigned char k8x800_eeprom
[] __devinitdata
= {
59 0x01, /* SYSCONF: clock 256, 1ADC, 2DACs */
60 0x02, /* ACLINK: ACLINK, packed */
67 0xff, /* GPIO_MASK1 */
69 0x00, /* GPIO_STATE */
70 0x00, /* GPIO_STATE1 */
76 struct snd_ice1712_card_info snd_vt1720_mobo_cards
[] __devinitdata
= {
78 .subvendor
= VT1720_SUBDEVICE_K8X800
,
79 .name
= "Albatron K8X800 Pro II",
81 .chip_init
= k8x800_init
,
82 .build_controls
= k8x800_add_controls
,
83 .eeprom_size
= sizeof(k8x800_eeprom
),
84 .eeprom_data
= k8x800_eeprom
,
87 .subvendor
= VT1720_SUBDEVICE_ZNF3_150
,
88 .name
= "Chaintech ZNF3-150",
89 /* identical with k8x800 */
90 .chip_init
= k8x800_init
,
91 .build_controls
= k8x800_add_controls
,
92 .eeprom_size
= sizeof(k8x800_eeprom
),
93 .eeprom_data
= k8x800_eeprom
,
96 .subvendor
= VT1720_SUBDEVICE_ZNF3_250
,
97 .name
= "Chaintech ZNF3-250",
98 /* identical with k8x800 */
99 .chip_init
= k8x800_init
,
100 .build_controls
= k8x800_add_controls
,
101 .eeprom_size
= sizeof(k8x800_eeprom
),
102 .eeprom_data
= k8x800_eeprom
,
105 .subvendor
= VT1720_SUBDEVICE_9CJS
,
106 .name
= "Chaintech 9CJS",
107 /* identical with k8x800 */
108 .chip_init
= k8x800_init
,
109 .build_controls
= k8x800_add_controls
,
110 .eeprom_size
= sizeof(k8x800_eeprom
),
111 .eeprom_data
= k8x800_eeprom
,