1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24#include <linux/delay.h>
25#include <linux/interrupt.h>
26#include <linux/init.h>
27#include <sound/core.h>
28
29#include "ice1712.h"
30#include "envy24ht.h"
31#include "vt1720_mobo.h"
32
33
34static int k8x800_init(struct snd_ice1712 *ice)
35{
36 ice->vt1720 = 1;
37
38
39 ice->num_total_dacs = 6;
40 ice->num_total_adcs = 2;
41
42
43
44
45 return 0;
46}
47
48static int k8x800_add_controls(struct snd_ice1712 *ice)
49{
50
51 return 0;
52}
53
54
55
56static unsigned char k8x800_eeprom[] = {
57 [ICE_EEP2_SYSCONF] = 0x01,
58 [ICE_EEP2_ACLINK] = 0x02,
59 [ICE_EEP2_I2S] = 0x00,
60 [ICE_EEP2_SPDIF] = 0x00,
61 [ICE_EEP2_GPIO_DIR] = 0xff,
62 [ICE_EEP2_GPIO_DIR1] = 0xff,
63 [ICE_EEP2_GPIO_DIR2] = 0x00,
64 [ICE_EEP2_GPIO_MASK] = 0xff,
65 [ICE_EEP2_GPIO_MASK1] = 0xff,
66 [ICE_EEP2_GPIO_MASK2] = 0x00,
67 [ICE_EEP2_GPIO_STATE] = 0x00,
68 [ICE_EEP2_GPIO_STATE1] = 0x00,
69 [ICE_EEP2_GPIO_STATE2] = 0x00,
70};
71
72static unsigned char sn25p_eeprom[] = {
73 [ICE_EEP2_SYSCONF] = 0x01,
74 [ICE_EEP2_ACLINK] = 0x02,
75 [ICE_EEP2_I2S] = 0x00,
76 [ICE_EEP2_SPDIF] = 0x41,
77 [ICE_EEP2_GPIO_DIR] = 0xff,
78 [ICE_EEP2_GPIO_DIR1] = 0xff,
79 [ICE_EEP2_GPIO_DIR2] = 0x00,
80 [ICE_EEP2_GPIO_MASK] = 0xff,
81 [ICE_EEP2_GPIO_MASK1] = 0xff,
82 [ICE_EEP2_GPIO_MASK2] = 0x00,
83 [ICE_EEP2_GPIO_STATE] = 0x00,
84 [ICE_EEP2_GPIO_STATE1] = 0x00,
85 [ICE_EEP2_GPIO_STATE2] = 0x00,
86};
87
88
89
90struct snd_ice1712_card_info snd_vt1720_mobo_cards[] = {
91 {
92 .subvendor = VT1720_SUBDEVICE_K8X800,
93 .name = "Albatron K8X800 Pro II",
94 .model = "k8x800",
95 .chip_init = k8x800_init,
96 .build_controls = k8x800_add_controls,
97 .eeprom_size = sizeof(k8x800_eeprom),
98 .eeprom_data = k8x800_eeprom,
99 },
100 {
101 .subvendor = VT1720_SUBDEVICE_ZNF3_150,
102 .name = "Chaintech ZNF3-150",
103
104 .chip_init = k8x800_init,
105 .build_controls = k8x800_add_controls,
106 .eeprom_size = sizeof(k8x800_eeprom),
107 .eeprom_data = k8x800_eeprom,
108 },
109 {
110 .subvendor = VT1720_SUBDEVICE_ZNF3_250,
111 .name = "Chaintech ZNF3-250",
112
113 .chip_init = k8x800_init,
114 .build_controls = k8x800_add_controls,
115 .eeprom_size = sizeof(k8x800_eeprom),
116 .eeprom_data = k8x800_eeprom,
117 },
118 {
119 .subvendor = VT1720_SUBDEVICE_9CJS,
120 .name = "Chaintech 9CJS",
121
122 .chip_init = k8x800_init,
123 .build_controls = k8x800_add_controls,
124 .eeprom_size = sizeof(k8x800_eeprom),
125 .eeprom_data = k8x800_eeprom,
126 },
127 {
128 .subvendor = VT1720_SUBDEVICE_SN25P,
129 .name = "Shuttle SN25P",
130 .model = "sn25p",
131 .chip_init = k8x800_init,
132 .build_controls = k8x800_add_controls,
133 .eeprom_size = sizeof(k8x800_eeprom),
134 .eeprom_data = sn25p_eeprom,
135 },
136 { }
137};
138
139