0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #include <linux/delay.h>
0011 #include <linux/interrupt.h>
0012 #include <linux/init.h>
0013 #include <sound/core.h>
0014
0015 #include "ice1712.h"
0016 #include "envy24ht.h"
0017 #include "vt1720_mobo.h"
0018
0019
0020 static int k8x800_init(struct snd_ice1712 *ice)
0021 {
0022 ice->vt1720 = 1;
0023
0024
0025 ice->num_total_dacs = 6;
0026 ice->num_total_adcs = 2;
0027
0028
0029
0030
0031 return 0;
0032 }
0033
0034 static int k8x800_add_controls(struct snd_ice1712 *ice)
0035 {
0036
0037 return 0;
0038 }
0039
0040
0041
0042 static const unsigned char k8x800_eeprom[] = {
0043 [ICE_EEP2_SYSCONF] = 0x01,
0044 [ICE_EEP2_ACLINK] = 0x02,
0045 [ICE_EEP2_I2S] = 0x00,
0046 [ICE_EEP2_SPDIF] = 0x00,
0047 [ICE_EEP2_GPIO_DIR] = 0xff,
0048 [ICE_EEP2_GPIO_DIR1] = 0xff,
0049 [ICE_EEP2_GPIO_DIR2] = 0x00,
0050 [ICE_EEP2_GPIO_MASK] = 0xff,
0051 [ICE_EEP2_GPIO_MASK1] = 0xff,
0052 [ICE_EEP2_GPIO_MASK2] = 0x00,
0053 [ICE_EEP2_GPIO_STATE] = 0x00,
0054 [ICE_EEP2_GPIO_STATE1] = 0x00,
0055 [ICE_EEP2_GPIO_STATE2] = 0x00,
0056 };
0057
0058 static const unsigned char sn25p_eeprom[] = {
0059 [ICE_EEP2_SYSCONF] = 0x01,
0060 [ICE_EEP2_ACLINK] = 0x02,
0061 [ICE_EEP2_I2S] = 0x00,
0062 [ICE_EEP2_SPDIF] = 0x41,
0063 [ICE_EEP2_GPIO_DIR] = 0xff,
0064 [ICE_EEP2_GPIO_DIR1] = 0xff,
0065 [ICE_EEP2_GPIO_DIR2] = 0x00,
0066 [ICE_EEP2_GPIO_MASK] = 0xff,
0067 [ICE_EEP2_GPIO_MASK1] = 0xff,
0068 [ICE_EEP2_GPIO_MASK2] = 0x00,
0069 [ICE_EEP2_GPIO_STATE] = 0x00,
0070 [ICE_EEP2_GPIO_STATE1] = 0x00,
0071 [ICE_EEP2_GPIO_STATE2] = 0x00,
0072 };
0073
0074
0075
0076 struct snd_ice1712_card_info snd_vt1720_mobo_cards[] = {
0077 {
0078 .subvendor = VT1720_SUBDEVICE_K8X800,
0079 .name = "Albatron K8X800 Pro II",
0080 .model = "k8x800",
0081 .chip_init = k8x800_init,
0082 .build_controls = k8x800_add_controls,
0083 .eeprom_size = sizeof(k8x800_eeprom),
0084 .eeprom_data = k8x800_eeprom,
0085 },
0086 {
0087 .subvendor = VT1720_SUBDEVICE_ZNF3_150,
0088 .name = "Chaintech ZNF3-150",
0089
0090 .chip_init = k8x800_init,
0091 .build_controls = k8x800_add_controls,
0092 .eeprom_size = sizeof(k8x800_eeprom),
0093 .eeprom_data = k8x800_eeprom,
0094 },
0095 {
0096 .subvendor = VT1720_SUBDEVICE_ZNF3_250,
0097 .name = "Chaintech ZNF3-250",
0098
0099 .chip_init = k8x800_init,
0100 .build_controls = k8x800_add_controls,
0101 .eeprom_size = sizeof(k8x800_eeprom),
0102 .eeprom_data = k8x800_eeprom,
0103 },
0104 {
0105 .subvendor = VT1720_SUBDEVICE_9CJS,
0106 .name = "Chaintech 9CJS",
0107
0108 .chip_init = k8x800_init,
0109 .build_controls = k8x800_add_controls,
0110 .eeprom_size = sizeof(k8x800_eeprom),
0111 .eeprom_data = k8x800_eeprom,
0112 },
0113 {
0114 .subvendor = VT1720_SUBDEVICE_SN25P,
0115 .name = "Shuttle SN25P",
0116 .model = "sn25p",
0117 .chip_init = k8x800_init,
0118 .build_controls = k8x800_add_controls,
0119 .eeprom_size = sizeof(k8x800_eeprom),
0120 .eeprom_data = sn25p_eeprom,
0121 },
0122 { }
0123 };
0124